Completed
Push — 1.11.x ( 566ea6...b264ab )
by José
110:20 queued 69:00
created
main/inc/lib/internationalization.lib.php 4 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1710,8 +1710,7 @@
 block discarded – undo
1710 1710
             }
1711 1711
         }
1712 1712
         return false;
1713
-    }
1714
-    elseif (is_array($encoding2)) {
1713
+    } elseif (is_array($encoding2)) {
1715 1714
         foreach ($encoding2 as $encoding) {
1716 1715
             if (api_equal_encodings($encoding1, $encoding, $strict)) {
1717 1716
                 return true;
Please login to merge, or discard this patch.
Doc Comments   +20 added lines, -14 removed lines patch added patch discarded remove patch
@@ -422,6 +422,7 @@  discard block
 block discarded – undo
422 422
  * If null, the timezone will be determined based on user preference,
423 423
  * or timezone chosen by the admin for the platform.
424 424
  * @param string The timezone to be converted from. If null, UTC will be assumed.
425
+ * @param string $to_timezone
425 426
  * @return string The converted time formatted as Y-m-d H:i:s
426 427
  *
427 428
  * @author Guillaume Viguier <[email protected]>
@@ -666,6 +667,7 @@  discard block
 block discarded – undo
666 667
  * @param mixed The time to be converted
667 668
  * @param mixed Format to be used (TIME_NO_SEC_FORMAT, DATE_FORMAT_SHORT, DATE_FORMAT_LONG, DATE_TIME_FORMAT_LONG)
668 669
  * @param string Timezone to be converted from. If null, UTC will be assumed.
670
+ * @param string $from_timezone
669 671
  * @return string Converted and localized date
670 672
  *
671 673
  * @author Guillaume Viguier <[email protected]>
@@ -735,7 +737,7 @@  discard block
 block discarded – undo
735 737
  * @param int|string $format (optional)	The person name format. It may be a pattern-string (for example '%t %l, %f' or '%T %F %L', ...) or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
736 738
  * @param string $language (optional)	The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
737 739
  * @param string $encoding (optional)	The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
738
- * @return bool							The result is sort of full name of the person.
740
+ * @return string							The result is sort of full name of the person.
739 741
  * Sample results:
740 742
  * Peter Ustinoff or Dr. Peter Ustinoff     - the Western order
741 743
  * Ustinoff Peter or Dr. Ustinoff Peter     - the Eastern order
@@ -1054,8 +1056,8 @@  discard block
 block discarded – undo
1054 1056
 
1055 1057
 /**
1056 1058
  * This function returns a string or an array with all occurrences of search in subject (ignoring case) replaced with the given replace value.
1057
- * @param mixed $search					String or array of strings to be found.
1058
- * @param mixed $replace				String or array of strings used for replacement.
1059
+ * @param string $search					String or array of strings to be found.
1060
+ * @param string $replace				String or array of strings used for replacement.
1059 1061
  * @param mixed $subject				String or array of strings being searched.
1060 1062
  * @param int $count (optional)			The number of matched and replaced needles will be returned in count, which is passed by reference.
1061 1063
  * @param string $encoding (optional)	The used internally by this function character encoding.
@@ -1118,10 +1120,10 @@  discard block
 block discarded – undo
1118 1120
 /**
1119 1121
  * Finds first occurrence of a string within another, case insensitive.
1120 1122
  * @param string $haystack					The string from which to get the first occurrence.
1121
- * @param mixed $needle						The string to be found.
1123
+ * @param string $needle						The string to be found.
1122 1124
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1123 1125
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1124
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1126
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1125 1127
  * Notes:
1126 1128
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1127 1129
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1177,7 +1179,7 @@  discard block
 block discarded – undo
1177 1179
  * @param mixed $needle						The string which first character is to be found.
1178 1180
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1179 1181
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1180
- * @return mixed							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1182
+ * @return false|string							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1181 1183
  * Notes:
1182 1184
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1183 1185
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence.
@@ -1244,7 +1246,7 @@  discard block
 block discarded – undo
1244 1246
  * @param mixed $needle						The string to be found.
1245 1247
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1246 1248
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1247
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1249
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1248 1250
  * Notes:
1249 1251
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1250 1252
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1387,7 +1389,7 @@  discard block
 block discarded – undo
1387 1389
  * 										Note that this changes the return value in an array where every element is an array consisting of the matched string at index 0 and its string offset into subject at index 1.
1388 1390
  * @param int $offset (optional)		Normally, the search starts from the beginning of the subject string. The optional parameter offset can be used to specify the alternate place from which to start the search.
1389 1391
  * @param string $encoding (optional)	The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1390
- * @return int|boolean					Returns the number of times pattern matches or FALSE if an error occurred.
1392
+ * @return integer					Returns the number of times pattern matches or FALSE if an error occurred.
1391 1393
  * @link http://php.net/preg_match
1392 1394
  */
1393 1395
 function api_preg_match($pattern, $subject, &$matches = null, $flags = 0, $offset = 0, $encoding = null) {
@@ -1410,7 +1412,7 @@  discard block
 block discarded – undo
1410 1412
  * If no order flag is given, PREG_PATTERN_ORDER is assumed.
1411 1413
  * @param int $offset (optional)		Normally, the search starts from the beginning of the subject string. The optional parameter offset can be used to specify the alternate place from which to start the search.
1412 1414
  * @param string $encoding (optional)	The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1413
- * @return int|boolean					Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred.
1415
+ * @return integer					Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred.
1414 1416
  * @link http://php.net/preg_match_all
1415 1417
  */
1416 1418
 function api_preg_match_all($pattern, $subject, &$matches, $flags = PREG_PATTERN_ORDER, $offset = 0, $encoding = null) {
@@ -1425,8 +1427,8 @@  discard block
 block discarded – undo
1425 1427
 
1426 1428
 /**
1427 1429
  * Performs a regular expression search and replace, UTF-8 aware when it is applicable.
1428
- * @param string|array $pattern			The pattern to search for. It can be either a string or an array with strings.
1429
- * @param string|array $replacement		The string or an array with strings to replace.
1430
+ * @param string $pattern			The pattern to search for. It can be either a string or an array with strings.
1431
+ * @param string $replacement		The string or an array with strings to replace.
1430 1432
  * @param string|array $subject			The string or an array with strings to search and replace.
1431 1433
  * @param int $limit					The maximum possible replacements for each pattern in each subject string. Defaults to -1 (no limit).
1432 1434
  * @param int &$count					If specified, this variable will be filled with the number of replacements done.
@@ -1574,7 +1576,7 @@  discard block
 block discarded – undo
1574 1576
 
1575 1577
 /**
1576 1578
  * This function checks whether two $encoding are equal (same, equvalent).
1577
- * @param string|array $encoding1		The first encoding
1579
+ * @param string $encoding1		The first encoding
1578 1580
  * @param string|array $encoding2		The second encoding
1579 1581
  * @param bool $strict					When this parameter is TRUE the comparison ignores aliases of encodings.
1580 1582
  * When the parameter is FALSE, aliases are taken into account.
@@ -1678,6 +1680,7 @@  discard block
 block discarded – undo
1678 1680
 /**
1679 1681
  * Checks a string for UTF-8 validity.
1680 1682
  *
1683
+ * @param string $string
1681 1684
  */
1682 1685
 function api_is_valid_utf8(&$string)
1683 1686
 {
@@ -1820,7 +1823,7 @@  discard block
 block discarded – undo
1820 1823
 /**
1821 1824
  * Replaces non-valid formats for person names with the default (English) format.
1822 1825
  * @param string $format	The input format to be verified.
1823
- * @return bool				Returns the same format if is is valid, otherwise returns a valid English format.
1826
+ * @return string				Returns the same format if is is valid, otherwise returns a valid English format.
1824 1827
  */
1825 1828
 function _api_validate_person_name_format($format) {
1826 1829
     if (empty($format) || stripos($format, '%f') === false || stripos($format, '%l') === false) {
@@ -1947,6 +1950,9 @@  discard block
 block discarded – undo
1947 1950
 
1948 1951
 // This function checks whether the function _api_convert_encoding() (the php-
1949 1952
 // implementation) is able to convert from/to a given encoding.
1953
+/**
1954
+ * @param string $encoding
1955
+ */
1950 1956
 function _api_convert_encoding_supports($encoding) {
1951 1957
     static $supports = array();
1952 1958
     if (!isset($supports[$encoding])) {
@@ -1957,7 +1963,7 @@  discard block
 block discarded – undo
1957 1963
 
1958 1964
 /**
1959 1965
  * Given a date object, return a human or ISO format, with or without h:m:s
1960
- * @param object $date The Date object
1966
+ * @param DateTime $date The Date object
1961 1967
  * @param bool $showTime Whether to show the time and date (true) or only the date (false)
1962 1968
  * @param bool $humanForm Whether to show day-month-year (true) or year-month-day (false)
1963 1969
  * @return string Formatted date
Please login to merge, or discard this patch.
Indentation   +25 added lines, -26 removed lines patch added patch discarded remove patch
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
     if (isset($_configuration['language_measure_frequency']) &&
96 96
         $_configuration['language_measure_frequency'] == 1
97 97
     ) {
98
-      require_once api_get_path(SYS_CODE_PATH).'/cron/lang/langstats.class.php';
99
-      global $langstats;
100
-      $langstats->add_use($variable,'');
98
+        require_once api_get_path(SYS_CODE_PATH).'/cron/lang/langstats.class.php';
99
+        global $langstats;
100
+        $langstats->add_use($variable,'');
101 101
     }
102 102
 
103 103
     if (!isset($used_lang_vars)) {
104
-    	$used_lang_vars = array();
104
+        $used_lang_vars = array();
105 105
     }
106 106
 
107 107
     // Caching results from some API functions, for speed.
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
     static $text_direction = array();
292 292
 
293 293
     if (empty($language)) {
294
-    	$language = api_get_interface_language();
294
+        $language = api_get_interface_language();
295 295
     }
296 296
     if (!isset($text_direction[$language])) {
297 297
         $text_direction[$language] = in_array(api_purify_language_id($language),
@@ -528,24 +528,24 @@  discard block
 block discarded – undo
528 528
             case DATE_FORMAT_ONLY_DAYNAME:
529 529
                 $date_format = get_lang('dateFormatOnlyDayName', '', $language);
530 530
                 if (INTL_INSTALLED) {
531
-        			$datetype = IntlDateFormatter::SHORT;
532
-        			$timetype = IntlDateFormatter::NONE;
533
-        		}
531
+                    $datetype = IntlDateFormatter::SHORT;
532
+                    $timetype = IntlDateFormatter::NONE;
533
+                }
534 534
                 break;
535 535
             case DATE_FORMAT_NUMBER_NO_YEAR:
536 536
                 $date_format = get_lang('dateFormatShortNumberNoYear', '', $language);
537
-        		if (INTL_INSTALLED) {
538
-        			$datetype = IntlDateFormatter::SHORT;
539
-        			$timetype = IntlDateFormatter::NONE;
540
-        		}
537
+                if (INTL_INSTALLED) {
538
+                    $datetype = IntlDateFormatter::SHORT;
539
+                    $timetype = IntlDateFormatter::NONE;
540
+                }
541
+                break;
542
+            case DATE_FORMAT_NUMBER:
543
+                $date_format = get_lang('dateFormatShortNumber', '', $language);
544
+                if (INTL_INSTALLED) {
545
+                    $datetype = IntlDateFormatter::SHORT;
546
+                    $timetype = IntlDateFormatter::NONE;
547
+                }
541 548
                 break;
542
-        	case DATE_FORMAT_NUMBER:
543
-        		$date_format = get_lang('dateFormatShortNumber', '', $language);
544
-        		if (INTL_INSTALLED) {
545
-        			$datetype = IntlDateFormatter::SHORT;
546
-        			$timetype = IntlDateFormatter::NONE;
547
-        		}
548
-        		break;
549 549
             case TIME_NO_SEC_FORMAT:
550 550
                 $date_format = get_lang('timeNoSecFormat', '', $language);
551 551
                 if (INTL_INSTALLED) {
@@ -581,14 +581,14 @@  discard block
 block discarded – undo
581 581
                     $timetype = IntlDateFormatter::SHORT;
582 582
                 }
583 583
                 break;
584
-			case DATE_TIME_FORMAT_SHORT:
584
+            case DATE_TIME_FORMAT_SHORT:
585 585
                 $date_format = get_lang('dateTimeFormatShort', '', $language);
586 586
                 if (INTL_INSTALLED) {
587 587
                     $datetype = IntlDateFormatter::FULL;
588 588
                     $timetype = IntlDateFormatter::SHORT;
589 589
                 }
590 590
                 break;
591
-			case DATE_TIME_FORMAT_SHORT_TIME_FIRST:
591
+            case DATE_TIME_FORMAT_SHORT_TIME_FIRST:
592 592
                 $date_format = get_lang('dateTimeFormatShortTimeFirst', '', $language);
593 593
                 if (INTL_INSTALLED) {
594 594
                     $datetype = IntlDateFormatter::FULL;
@@ -1700,7 +1700,6 @@  discard block
 block discarded – undo
1700 1700
 
1701 1701
 /**
1702 1702
  * Return true a date is valid
1703
-
1704 1703
  * @param string $date example: 2014-06-30 13:05:05
1705 1704
  * @param string $format example: "Y-m-d H:i:s"
1706 1705
  *
@@ -1969,15 +1968,15 @@  discard block
 block discarded – undo
1969 1968
 function apiGetHumanDateTime($date, $showTime = true, $humanForm = false) {
1970 1969
     if ($showTime) {
1971 1970
         if ($humanForm) {
1972
-           return $date->format('j M Y H:i:s');
1971
+            return $date->format('j M Y H:i:s');
1973 1972
         } else {
1974
-           return $date->format('Y-m-d H:i:s');
1973
+            return $date->format('Y-m-d H:i:s');
1975 1974
         }
1976 1975
     } else {
1977 1976
         if ($humanForm) {
1978
-           return $date->format('j M Y');
1977
+            return $date->format('j M Y');
1979 1978
         } else {
1980
-           return $date->format('Y-m-d');
1979
+            return $date->format('Y-m-d');
1981 1980
         }
1982 1981
     }
1983 1982
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     ) {
98 98
       require_once api_get_path(SYS_CODE_PATH).'/cron/lang/langstats.class.php';
99 99
       global $langstats;
100
-      $langstats->add_use($variable,'');
100
+      $langstats->add_use($variable, '');
101 101
     }
102 102
 
103 103
     if (!isset($used_lang_vars)) {
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
     if ($use_users_timezone == 'true') {
359 359
         $userId = api_get_user_id();
360 360
         // Get the timezone based on user preference, if it exists
361
-        $timezone_user = UserManager::get_extra_user_data_by_field($userId,'timezone');
361
+        $timezone_user = UserManager::get_extra_user_data_by_field($userId, 'timezone');
362 362
         if (isset($timezone_user['timezone']) && $timezone_user['timezone'] != null) {
363 363
             $to_timezone = $timezone_user['timezone'];
364 364
         }
@@ -628,10 +628,10 @@  discard block
 block discarded – undo
628 628
         // We replace %a %A %b %B masks of date format with translated strings
629 629
         $translated = &_api_get_day_month_names($language);
630 630
         $date_format = str_replace(array('%A', '%a', '%B', '%b'),
631
-        array($translated['days_long'][(int)strftime('%w', $time )],
632
-            $translated['days_short'][(int)strftime('%w', $time)],
633
-            $translated['months_long'][(int)strftime('%m', $time) - 1],
634
-            $translated['months_short'][(int)strftime('%m', $time) - 1]),
631
+        array($translated['days_long'][(int) strftime('%w', $time)],
632
+            $translated['days_short'][(int) strftime('%w', $time)],
633
+            $translated['months_long'][(int) strftime('%m', $time) - 1],
634
+            $translated['months_short'][(int) strftime('%m', $time) - 1]),
635 635
         $date_format);
636 636
         $formatted_date = api_to_system_encoding(strftime($date_format, $time), 'UTF-8');
637 637
     }
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
 
656 656
 function date_to_str_ago($date, $timeZone = 'UTC')
657 657
 {
658
-    if ($date === '0000-00-00 00:00:00')  {
658
+    if ($date === '0000-00-00 00:00:00') {
659 659
         
660 660
         return '';
661 661
     }
@@ -1570,7 +1570,7 @@  discard block
 block discarded – undo
1570 1570
  * @return string					Returns the encoding identificator modified in suitable for comparison way.
1571 1571
  */
1572 1572
 function api_refine_encoding_id($encoding) {
1573
-    if (is_array($encoding)){
1573
+    if (is_array($encoding)) {
1574 1574
         return array_map('api_refine_encoding_id', $encoding);
1575 1575
     }
1576 1576
     return strtoupper(str_replace('_', '-', $encoding));
Please login to merge, or discard this patch.
main/inc/lib/plugin.lib.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
173 173
     }
174 174
 
175 175
     /**
176
-    * @param string $pluginName
177
-    * @param int    $urlId
178
-    */
176
+     * @param string $pluginName
177
+     * @param int    $urlId
178
+     */
179 179
     public function uninstall($pluginName, $urlId = null)
180 180
     {
181 181
         if (empty($urlId)) {
@@ -252,12 +252,12 @@  discard block
 block discarded – undo
252 252
     }
253 253
 
254 254
     /**
255
-    * @param string $region
256
-    * @param string $template
257
-    * @param bool   $forced
258
-    *
259
-    * @return null|string
260
-    */
255
+     * @param string $region
256
+     * @param string $template
257
+     * @param bool   $forced
258
+     *
259
+     * @return null|string
260
+     */
261 261
     public function load_region($region, $template, $forced = false)
262 262
     {
263 263
         if ($region == 'course_tool_plugin') {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
             //extra options
426 426
             $plugin_settings = api_get_settings_params(
427 427
                 array(
428
-                    "subkey = ? AND category = ? AND type = ? " => array($plugin_name, 'Plugins','setting')
428
+                    "subkey = ? AND category = ? AND type = ? " => array($plugin_name, 'Plugins', 'setting')
429 429
                 )
430 430
             );
431 431
             $settings_filtered = array();
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
             if (!empty($obj->course_settings)) {
531 531
                 if (is_file(api_get_path(SYS_CODE_PATH).'img/icons/'.ICON_SIZE_SMALL.'/'.$plugin_name.'.png')) {
532 532
                     $icon = Display::return_icon(
533
-                        $plugin_name . '.png',
533
+                        $plugin_name.'.png',
534 534
                         Security::remove_XSS($pluginTitle),
535 535
                         '',
536 536
                         ICON_SIZE_SMALL
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     * @param string $template
257 257
     * @param bool   $forced
258 258
     *
259
-    * @return null|string
259
+    * @return string
260 260
     */
261 261
     public function load_region($region, $template, $forced = false)
262 262
     {
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
 
629 629
     /**
630 630
      * Get first SMS plugin name
631
-     * @return string|boolean
631
+     * @return string|false
632 632
      */
633 633
     public function getSMSPluginName()
634 634
     {
Please login to merge, or discard this patch.
main/inc/lib/lp_item.lib.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
     public $search_did = 0;
35 35
     public $audio = "";
36 36
 
37
-    public function __construct($in_c_id=0, $in_id=0)
37
+    public function __construct($in_c_id = 0, $in_id = 0)
38 38
     {
39
-        if ($in_c_id > 0 && $in_id >0) {
39
+        if ($in_c_id > 0 && $in_id > 0) {
40 40
             $item_view_table = Database::get_course_table(TABLE_LP_ITEM);
41 41
             $sql = "SELECT * FROM $item_view_table
42 42
                     WHERE
Please login to merge, or discard this patch.
main/inc/lib/course_request.lib.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
         $exemplary_content
66 66
     ) {
67 67
         $wanted_code = trim($wanted_code);
68
-        $user_id = (int)$user_id;
69
-        $exemplary_content = (bool)$exemplary_content ? 1 : 0;
68
+        $user_id = (int) $user_id;
69
+        $exemplary_content = (bool) $exemplary_content ? 1 : 0;
70 70
 
71 71
         if ($wanted_code == '') {
72 72
             return false;
@@ -254,10 +254,10 @@  discard block
 block discarded – undo
254 254
         $user_id,
255 255
         $exemplary_content
256 256
     ) {
257
-        $id = (int)$id;
257
+        $id = (int) $id;
258 258
         $wanted_code = trim($wanted_code);
259
-        $user_id = (int)$user_id;
260
-        $exemplary_content = (bool)$exemplary_content ? 1 : 0;
259
+        $user_id = (int) $user_id;
260
+        $exemplary_content = (bool) $exemplary_content ? 1 : 0;
261 261
 
262 262
         if ($wanted_code == '') {
263 263
             return false;
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
      */
361 361
     public static function delete_course_request($id)
362 362
     {
363
-        $id = (int)$id;
363
+        $id = (int) $id;
364 364
         $sql = "DELETE FROM ".Database :: get_main_table(TABLE_MAIN_COURSE_REQUEST)."
365 365
                 WHERE id = ".$id;
366 366
         $result = Database::query($sql);
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
         if (is_null($status)) {
378 378
             $sql = "SELECT COUNT(id) AS number FROM ".$course_table;
379 379
         } else {
380
-            $status = (int)$status;
380
+            $status = (int) $status;
381 381
             $sql = "SELECT COUNT(id) AS number FROM ".$course_table."
382 382
                     WHERE status = ".$status;
383 383
         }
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
      */
396 396
     public static function get_course_request_info($id)
397 397
     {
398
-        $id = (int)$id;
398
+        $id = (int) $id;
399 399
         $sql = "SELECT *
400 400
                 FROM ".Database :: get_main_table(TABLE_MAIN_COURSE_REQUEST)."
401 401
                 WHERE id = ".$id;
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
      */
414 414
     public static function get_course_request_code($id)
415 415
     {
416
-        $id = (int)$id;
416
+        $id = (int) $id;
417 417
         $sql = "SELECT code
418 418
                 FROM ".Database :: get_main_table(TABLE_MAIN_COURSE_REQUEST)."
419 419
                 WHERE id = ".$id;
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
      */
435 435
     public static function accept_course_request($id)
436 436
     {
437
-        $id = (int)$id;
437
+        $id = (int) $id;
438 438
 
439 439
         // Retrieve request's data
440 440
         $course_request_info = self::get_course_request_info($id);
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
             return false;
448 448
         }*/
449 449
 
450
-        $user_id = (int)$course_request_info['user_id'];
450
+        $user_id = (int) $course_request_info['user_id'];
451 451
         if ($user_id <= 0) {
452 452
             return false;
453 453
         }
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
      */
532 532
     public static function reject_course_request($id)
533 533
     {
534
-        $id = (int)$id;
534
+        $id = (int) $id;
535 535
         // Retrieve request's data
536 536
         $course_request_info = self::get_course_request_info($id);
537 537
         if (!is_array($course_request_info)) {
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
      */
610 610
     public static function ask_for_additional_info($id)
611 611
     {
612
-        $id = (int)$id;
612
+        $id = (int) $id;
613 613
 
614 614
         // Retrieve request's data
615 615
         $course_request_info = self::get_course_request_info($id);
@@ -700,7 +700,7 @@  discard block
 block discarded – undo
700 700
      */
701 701
     public static function additional_info_asked($id)
702 702
     {
703
-        $id = (int)$id;
703
+        $id = (int) $id;
704 704
         $sql = "SELECT id FROM ".Database :: get_main_table(TABLE_MAIN_COURSE_REQUEST)."
705 705
                 WHERE (id = ".$id." AND info > 0)";
706 706
         $result = Database::num_rows(Database::query($sql));
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      * @param string $objetives
52 52
      * @param string $target_audience
53 53
      * @param int $user_id
54
-     * @return mixed The database id of the newly created course request or FALSE on failure.
54
+     * @return false|string The database id of the newly created course request or FALSE on failure.
55 55
      */
56 56
     public static function create_course_request(
57 57
         $wanted_code,
Please login to merge, or discard this patch.
main/inc/lib/access_url_edit_sessions_to_url_functions.lib.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,17 +44,17 @@
 block discarded – undo
44 44
                     ORDER BY name, id
45 45
                     LIMIT 11';
46 46
             $rs = Database::query($sql);
47
-            $i=0;
47
+            $i = 0;
48 48
             while ($session = Database :: fetch_array($rs)) {
49 49
                 $i++;
50
-                if ($i<=10) {
50
+                if ($i <= 10) {
51 51
                      $return .= '<a href="#" onclick="add_user_to_url(\''.addslashes($session['id']).'\',\''.addslashes($session['name']).' ('.addslashes($session['id']).')'.'\')">'.$session['name'].' </a><br />';
52 52
                 } else {
53 53
                     $return .= '...<br />';
54 54
                 }
55 55
             }
56 56
         }
57
-        $xajax_response -> addAssign('ajax_list_courses','innerHTML',api_utf8_encode($return));
57
+        $xajax_response -> addAssign('ajax_list_courses', 'innerHTML', api_utf8_encode($return));
58 58
         return $xajax_response;
59 59
     }
60 60
 }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             while ($session = Database :: fetch_array($rs)) {
49 49
                 $i++;
50 50
                 if ($i<=10) {
51
-                     $return .= '<a href="#" onclick="add_user_to_url(\''.addslashes($session['id']).'\',\''.addslashes($session['name']).' ('.addslashes($session['id']).')'.'\')">'.$session['name'].' </a><br />';
51
+                        $return .= '<a href="#" onclick="add_user_to_url(\''.addslashes($session['id']).'\',\''.addslashes($session['name']).' ('.addslashes($session['id']).')'.'\')">'.$session['name'].' </a><br />';
52 52
                 } else {
53 53
                     $return .= '...<br />';
54 54
                 }
Please login to merge, or discard this patch.
main/inc/lib/mp3player/is_autostart.as.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@
 block discarded – undo
12 12
 switch ($_SESSION['whereami']) {
13 13
 
14 14
 
15
-	case 'lp/build' :
16
-	case 'document/create' :
17
-	case 'document/edit' :
18
-		$autostart = 'false';
19
-	break;
20
-	default :
21
-		$autostart = 'true';
15
+    case 'lp/build' :
16
+    case 'document/create' :
17
+    case 'document/edit' :
18
+        $autostart = 'false';
19
+    break;
20
+    default :
21
+        $autostart = 'true';
22 22
 
23 23
 }
24 24
 echo utf8_encode('autostart='.$autostart);
Please login to merge, or discard this patch.
main/inc/lib/internationalization_database/name_order_conventions.php 2 patches
Indentation   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -19,82 +19,82 @@
 block discarded – undo
19 19
  * last_name                   - sorting names with priority for the last name.
20 20
  */
21 21
 return array(
22
-	'afrikaans' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
23
-	'albanian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
24
-	'alemannic' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
25
-	'amharic' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
26
-	'armenian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
27
-	'arabic' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
28
-	'asturian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
29
-	'bosnian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
30
-	'brazilian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
31
-	'breton' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
32
-	'bulgarian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
33
-	'catalan' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
34
-	'croatian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
35
-	'czech' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
36
-	'danish' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
37
-	'dari' =>             array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
38
-	'dutch' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
39
-	'english' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
40
-	'esperanto' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
41
-	'estonian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
42
-	'basque'  =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
43
-	'finnish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
44
-	'french' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
45
-	'frisian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
46
-	'friulian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
22
+    'afrikaans' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
23
+    'albanian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
24
+    'alemannic' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
25
+    'amharic' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
26
+    'armenian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
27
+    'arabic' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
28
+    'asturian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
29
+    'bosnian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
30
+    'brazilian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
31
+    'breton' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
32
+    'bulgarian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
33
+    'catalan' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
34
+    'croatian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
35
+    'czech' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
36
+    'danish' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
37
+    'dari' =>             array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
38
+    'dutch' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
39
+    'english' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
40
+    'esperanto' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
41
+    'estonian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
42
+    'basque'  =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
43
+    'finnish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
44
+    'french' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
45
+    'frisian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
46
+    'friulian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
47 47
     'galician' =>         array('format' => 'title last_name first_name',  'sort_by' => 'last_name'),
48
-	'georgian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
49
-	'german' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
50
-	'greek' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
51
-	'hawaiian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
52
-	'hebrew' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
53
-	'hindi' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
54
-	'hungarian' =>        array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
55
-	'icelandic' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
56
-	'indonesian' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
57
-	'irish' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
58
-	'italian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
59
-	'japanese' =>         array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
60
-	'korean' =>           array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
61
-	'latin' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
62
-	'latvian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
63
-	'lithuanian' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
64
-	'macedonian' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
65
-	'malay' =>            array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
66
-	'manx' =>             array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
67
-	'marathi' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
68
-	'middle_frisian' =>   array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
69
-	'mingo' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
70
-	'nepali' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
71
-	'norwegian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
72
-	'occitan' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
73
-	'pashto' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
74
-	'persian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
75
-	'polish' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
76
-	'portuguese' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
77
-	'quechua_cusco' =>    array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
78
-	'romanian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
79
-	'rumantsch' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
80
-	'russian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
81
-	'sanskrit' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
82
-	'serbian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
83
-	'serbian_cyrillic' => array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
84
-	'simpl_chinese' =>    array('format' => 'title last_name first_name',  'sort_by' => 'last_name' ), // Eastern order
85
-	'slovak' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
86
-	'slovenian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
87
-	'spanish' =>          array('format' => 'title last_name, first_name',  'sort_by' => 'last_name'), // Library order
88
-	'swahili' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
89
-	'swedish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
90
-	'tagalog' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
91
-	'tamil' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
92
-	'thai' =>             array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
93
-	'trad_chinese' =>     array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
94
-	'turkish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
95
-	'ukrainian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
96
-	'vietnamese' =>       array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
97
-	'welsh' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
98
-	'yiddish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
99
-	'yoruba' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name')
48
+    'georgian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
49
+    'german' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
50
+    'greek' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
51
+    'hawaiian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
52
+    'hebrew' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
53
+    'hindi' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
54
+    'hungarian' =>        array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
55
+    'icelandic' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
56
+    'indonesian' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
57
+    'irish' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
58
+    'italian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
59
+    'japanese' =>         array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
60
+    'korean' =>           array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
61
+    'latin' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
62
+    'latvian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
63
+    'lithuanian' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
64
+    'macedonian' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
65
+    'malay' =>            array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
66
+    'manx' =>             array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
67
+    'marathi' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
68
+    'middle_frisian' =>   array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
69
+    'mingo' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
70
+    'nepali' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
71
+    'norwegian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
72
+    'occitan' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
73
+    'pashto' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
74
+    'persian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
75
+    'polish' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
76
+    'portuguese' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
77
+    'quechua_cusco' =>    array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
78
+    'romanian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
79
+    'rumantsch' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
80
+    'russian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
81
+    'sanskrit' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
82
+    'serbian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
83
+    'serbian_cyrillic' => array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
84
+    'simpl_chinese' =>    array('format' => 'title last_name first_name',  'sort_by' => 'last_name' ), // Eastern order
85
+    'slovak' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
86
+    'slovenian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
87
+    'spanish' =>          array('format' => 'title last_name, first_name',  'sort_by' => 'last_name'), // Library order
88
+    'swahili' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
89
+    'swedish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
90
+    'tagalog' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
91
+    'tamil' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
92
+    'thai' =>             array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
93
+    'trad_chinese' =>     array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
94
+    'turkish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
95
+    'ukrainian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
96
+    'vietnamese' =>       array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
97
+    'welsh' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
98
+    'yiddish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
99
+    'yoruba' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name')
100 100
 );
Please login to merge, or discard this patch.
Spacing   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -19,82 +19,82 @@
 block discarded – undo
19 19
  * last_name                   - sorting names with priority for the last name.
20 20
  */
21 21
 return array(
22
-	'afrikaans' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
23
-	'albanian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
24
-	'alemannic' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
25
-	'amharic' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
26
-	'armenian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
27
-	'arabic' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
28
-	'asturian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
29
-	'bosnian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
30
-	'brazilian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
31
-	'breton' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
32
-	'bulgarian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
33
-	'catalan' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
34
-	'croatian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
35
-	'czech' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
36
-	'danish' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
37
-	'dari' =>             array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
38
-	'dutch' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
39
-	'english' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
40
-	'esperanto' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
41
-	'estonian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
42
-	'basque'  =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
43
-	'finnish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
44
-	'french' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
45
-	'frisian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
46
-	'friulian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
47
-    'galician' =>         array('format' => 'title last_name first_name',  'sort_by' => 'last_name'),
48
-	'georgian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
49
-	'german' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
50
-	'greek' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
51
-	'hawaiian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
52
-	'hebrew' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
53
-	'hindi' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
54
-	'hungarian' =>        array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
55
-	'icelandic' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
56
-	'indonesian' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
57
-	'irish' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
58
-	'italian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
59
-	'japanese' =>         array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
60
-	'korean' =>           array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
61
-	'latin' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
62
-	'latvian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
63
-	'lithuanian' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
64
-	'macedonian' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
65
-	'malay' =>            array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
66
-	'manx' =>             array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
67
-	'marathi' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
68
-	'middle_frisian' =>   array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
69
-	'mingo' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
70
-	'nepali' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
71
-	'norwegian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
72
-	'occitan' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
73
-	'pashto' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
74
-	'persian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
75
-	'polish' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
76
-	'portuguese' =>       array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
77
-	'quechua_cusco' =>    array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
78
-	'romanian' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
79
-	'rumantsch' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
80
-	'russian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
81
-	'sanskrit' =>         array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
82
-	'serbian' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
83
-	'serbian_cyrillic' => array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
84
-	'simpl_chinese' =>    array('format' => 'title last_name first_name',  'sort_by' => 'last_name' ), // Eastern order
85
-	'slovak' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
86
-	'slovenian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
87
-	'spanish' =>          array('format' => 'title last_name, first_name',  'sort_by' => 'last_name'), // Library order
88
-	'swahili' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
89
-	'swedish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
90
-	'tagalog' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
91
-	'tamil' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
92
-	'thai' =>             array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
93
-	'trad_chinese' =>     array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
94
-	'turkish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
95
-	'ukrainian' =>        array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
96
-	'vietnamese' =>       array('format' => 'title last_name first_name',  'sort_by' => 'last_name'), // Eastern order
97
-	'welsh' =>            array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
98
-	'yiddish' =>          array('format' => 'title first_name last_name',  'sort_by' => 'first_name'),
99
-	'yoruba' =>           array('format' => 'title first_name last_name',  'sort_by' => 'first_name')
22
+	'afrikaans' =>        array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
23
+	'albanian' =>         array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
24
+	'alemannic' =>        array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
25
+	'amharic' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
26
+	'armenian' =>         array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
27
+	'arabic' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
28
+	'asturian' =>         array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
29
+	'bosnian' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
30
+	'brazilian' =>        array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
31
+	'breton' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
32
+	'bulgarian' =>        array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
33
+	'catalan' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
34
+	'croatian' =>         array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
35
+	'czech' =>            array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
36
+	'danish' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
37
+	'dari' =>             array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
38
+	'dutch' =>            array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
39
+	'english' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
40
+	'esperanto' =>        array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
41
+	'estonian' =>         array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
42
+	'basque'  =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
43
+	'finnish' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
44
+	'french' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
45
+	'frisian' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
46
+	'friulian' =>         array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
47
+    'galician' =>         array('format' => 'title last_name first_name', 'sort_by' => 'last_name'),
48
+	'georgian' =>         array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
49
+	'german' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
50
+	'greek' =>            array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
51
+	'hawaiian' =>         array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
52
+	'hebrew' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
53
+	'hindi' =>            array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
54
+	'hungarian' =>        array('format' => 'title last_name first_name', 'sort_by' => 'last_name'), // Eastern order
55
+	'icelandic' =>        array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
56
+	'indonesian' =>       array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
57
+	'irish' =>            array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
58
+	'italian' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
59
+	'japanese' =>         array('format' => 'title last_name first_name', 'sort_by' => 'last_name'), // Eastern order
60
+	'korean' =>           array('format' => 'title last_name first_name', 'sort_by' => 'last_name'), // Eastern order
61
+	'latin' =>            array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
62
+	'latvian' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
63
+	'lithuanian' =>       array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
64
+	'macedonian' =>       array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
65
+	'malay' =>            array('format' => 'title last_name first_name', 'sort_by' => 'last_name'), // Eastern order
66
+	'manx' =>             array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
67
+	'marathi' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
68
+	'middle_frisian' =>   array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
69
+	'mingo' =>            array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
70
+	'nepali' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
71
+	'norwegian' =>        array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
72
+	'occitan' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
73
+	'pashto' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
74
+	'persian' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
75
+	'polish' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
76
+	'portuguese' =>       array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
77
+	'quechua_cusco' =>    array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
78
+	'romanian' =>         array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
79
+	'rumantsch' =>        array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
80
+	'russian' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
81
+	'sanskrit' =>         array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
82
+	'serbian' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
83
+	'serbian_cyrillic' => array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
84
+	'simpl_chinese' =>    array('format' => 'title last_name first_name', 'sort_by' => 'last_name'), // Eastern order
85
+	'slovak' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
86
+	'slovenian' =>        array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
87
+	'spanish' =>          array('format' => 'title last_name, first_name', 'sort_by' => 'last_name'), // Library order
88
+	'swahili' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
89
+	'swedish' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
90
+	'tagalog' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
91
+	'tamil' =>            array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
92
+	'thai' =>             array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
93
+	'trad_chinese' =>     array('format' => 'title last_name first_name', 'sort_by' => 'last_name'), // Eastern order
94
+	'turkish' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
95
+	'ukrainian' =>        array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
96
+	'vietnamese' =>       array('format' => 'title last_name first_name', 'sort_by' => 'last_name'), // Eastern order
97
+	'welsh' =>            array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
98
+	'yiddish' =>          array('format' => 'title first_name last_name', 'sort_by' => 'first_name'),
99
+	'yoruba' =>           array('format' => 'title first_name last_name', 'sort_by' => 'first_name')
100 100
 );
Please login to merge, or discard this patch.
main/inc/lib/internationalization_database/transliteration/x70.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 // $Id: x70.php,v 1.1.8.1 2008/06/12 20:34:31 smk Exp $
3 3
 
4 4
 return array(
5
-  'en' => array('You ', 'Yang ', 'Lu ', 'Si ', 'Jie ', 'Ying ', 'Du ', 'Wang ', 'Hui ', 'Xie ', 'Pan ', 'Shen ', 'Biao ', 'Chan ', 'Mo ', 'Liu ',
5
+    'en' => array('You ', 'Yang ', 'Lu ', 'Si ', 'Jie ', 'Ying ', 'Du ', 'Wang ', 'Hui ', 'Xie ', 'Pan ', 'Shen ', 'Biao ', 'Chan ', 'Mo ', 'Liu ',
6 6
     'Jian ', 'Pu ', 'Se ', 'Cheng ', 'Gu ', 'Bin ', 'Huo ', 'Xian ', 'Lu ', 'Qin ', 'Han ', 'Ying ', 'Yong ', 'Li ', 'Jing ', 'Xiao ',
7 7
     'Ying ', 'Sui ', 'Wei ', 'Xie ', 'Huai ', 'Hao ', 'Zhu ', 'Long ', 'Lai ', 'Dui ', 'Fan ', 'Hu ', 'Lai ', NULL, NULL, 'Ying ',
8 8
     'Mi ', 'Ji ', 'Lian ', 'Jian ', 'Ying ', 'Fen ', 'Lin ', 'Yi ', 'Jian ', 'Yue ', 'Chan ', 'Dai ', 'Rang ', 'Jian ', 'Lan ', 'Fan ',
Please login to merge, or discard this patch.
main/inc/lib/internationalization_database/transliteration/xce.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 // $Id: xce.php,v 1.1.8.1 2008/06/12 20:34:32 smk Exp $
3 3
 
4 4
 return array(
5
-  'en' => array('cwik', 'cwit', 'cwip', 'cwih', 'cyu', 'cyug', 'cyugg', 'cyugs', 'cyun', 'cyunj', 'cyunh', 'cyud', 'cyul', 'cyulg', 'cyulm', 'cyulb',
5
+    'en' => array('cwik', 'cwit', 'cwip', 'cwih', 'cyu', 'cyug', 'cyugg', 'cyugs', 'cyun', 'cyunj', 'cyunh', 'cyud', 'cyul', 'cyulg', 'cyulm', 'cyulb',
6 6
     'cyuls', 'cyult', 'cyulp', 'cyulh', 'cyum', 'cyub', 'cyubs', 'cyus', 'cyuss', 'cyung', 'cyuj', 'cyuc', 'cyuk', 'cyut', 'cyup', 'cyuh',
7 7
     'ceu', 'ceug', 'ceugg', 'ceugs', 'ceun', 'ceunj', 'ceunh', 'ceud', 'ceul', 'ceulg', 'ceulm', 'ceulb', 'ceuls', 'ceult', 'ceulp', 'ceulh',
8 8
     'ceum', 'ceub', 'ceubs', 'ceus', 'ceuss', 'ceung', 'ceuj', 'ceuc', 'ceuk', 'ceut', 'ceup', 'ceuh', 'cyi', 'cyig', 'cyigg', 'cyigs',
Please login to merge, or discard this patch.