Minor - format code

pull/2487/head
jmontoyaa 9 years ago
parent 1437a3f7e4
commit 656b2cad31
  1. 13
      main/admin/course_request_accepted.php
  2. 26
      main/inc/lib/display.lib.php

@ -39,12 +39,10 @@ if ($course_validation_feature) {
$message = sprintf(get_lang('CourseRequestDeletionFailed'), $course_request_code);
$is_error_message = true;
}
}
/**
* Form actions: delete.
*/
elseif (isset($_POST['action'])) {
} elseif (isset($_POST['action'])) {
/**
* Form actions: delete.
*/
switch ($_POST['action']) {
// Delete selected courses
case 'delete_course_requests':
@ -69,7 +67,8 @@ if ($course_validation_feature) {
/**
* Get the number of courses which will be displayed.
*/
function get_number_of_requests() {
function get_number_of_requests()
{
return CourseRequestManager::count_course_requests(COURSE_REQUEST_ACCEPTED);
}

@ -386,21 +386,19 @@ class Display
/**
* Displays a table with a special configuration
* @param array $header Titles for the table header
* each item in this array can contain 3 values
* - 1st element: the column title
* - 2nd element: true or false (column sortable?)
* - 3th element: additional attributes for
* th-tag (eg for column-width)
* - 4the element: additional attributes for the td-tags
* each item in this array can contain 3 values
* - 1st element: the column title
* - 2nd element: true or false (column sortable?)
* - 3th element: additional attributes for th-tag (eg for column-width)
* - 4the element: additional attributes for the td-tags
* @param array $content 2D-array with the tables content
* @param array $sorting_options Keys are:
* 'column' = The column to use as sort-key
* 'direction' = SORT_ASC or SORT_DESC
* 'column' = The column to use as sort-key
* 'direction' = SORT_ASC or SORT_DESC
* @param array $paging_options Keys are:
* 'per_page_default' = items per page when switching from
* full- list to per-page-view
* 'per_page' = number of items to show per page
* 'page_nr' = The page to display
* 'per_page_default' = items per page when switching from full list to per-page-view
* 'per_page' = number of items to show per page
* 'page_nr' = The page to display
* @param array $query_vars Additional variables to add in the query-string
* @param array $column_show Array of binaries 1= show columns 0. hide a column
* @param array $column_order An array of integers that let us decide how the columns are going to be sort.
@ -494,7 +492,7 @@ class Display
* @deprecated use Display::addFlash with Display::return_message
* @return void
*/
public static function display_confirmation_message ($message, $filter = true, $returnValue = false)
public static function display_confirmation_message($message, $filter = true, $returnValue = false)
{
$message = self::return_message($message, 'confirm', $filter);
if ($returnValue) {
@ -513,7 +511,7 @@ class Display
*
* @return void
*/
public static function display_error_message ($message, $filter = true, $returnValue = false)
public static function display_error_message($message, $filter = true, $returnValue = false)
{
$message = self::return_message($message, 'error', $filter);
if ($returnValue) {

Loading…
Cancel
Save