Completed
Push — 1.10.x ( f409b5...1f80a0 )
by Julito
112:29 queued 56:28
created
main/inc/lib/pear/HTML/QuickForm/CAPTCHA/Image.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -174,15 +174,15 @@  discard block
 block discarded – undo
174 174
         unset($attr['name']);
175 175
 
176 176
         $html = $tabs.'<a href="'.$this->_options['callback']
177
-               .'" target="_blank" '
178
-               .$this->_getAttrString($attr)
179
-               .' onclick="var cancelClick = false; '
180
-               .$this->getOnclickJs($imgName)
181
-               .' return !cancelClick;"><img src="'
182
-               .$this->_options['callback'].'" name="'.$imgName
183
-               .'" id="'.$imgName.'" width="'.$this->_options['width']
184
-               .'" height="'.$this->_options['height'].'" title="'
185
-               .htmlspecialchars($this->_options['alt']).'" /></a>';
177
+                .'" target="_blank" '
178
+                .$this->_getAttrString($attr)
179
+                .' onclick="var cancelClick = false; '
180
+                .$this->getOnclickJs($imgName)
181
+                .' return !cancelClick;"><img src="'
182
+                .$this->_options['callback'].'" name="'.$imgName
183
+                .'" id="'.$imgName.'" width="'.$this->_options['width']
184
+                .'" height="'.$this->_options['height'].'" title="'
185
+                .htmlspecialchars($this->_options['alt']).'" /></a>';
186 186
 
187 187
         return $html;
188 188
     }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
             .'  var img = new Image();'
204 204
             .'  var d = new Date();'
205 205
             .'  img.src = this.href + ((this.href.indexOf(\'?\') == -1) '
206
-                                     .'? \'?\' : \'&\') + d.getTime();'
206
+                                        .'? \'?\' : \'&\') + d.getTime();'
207 207
             .'  document.images[\''.addslashes($imageName).'\'].src = img.src;'
208 208
             .'  cancelClick = true;'
209 209
             .'}';
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/date.php 2 patches
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
 {
38 38
     // {{{ properties
39 39
 
40
-   /**
41
-    * Various options to control the element's display.
42
-    *
43
-    * @access   private
44
-    * @var      array
45
-    */
40
+    /**
41
+     * Various options to control the element's display.
42
+     *
43
+     * @access   private
44
+     * @var      array
45
+     */
46 46
     var $_options = array(
47 47
         'language'         => 'en',
48 48
         'format'           => 'dMY',
@@ -54,22 +54,22 @@  discard block
 block discarded – undo
54 54
         'optionIncrement'  => array('i' => 1, 's' => 1)
55 55
     );
56 56
 
57
-   /**
58
-    * These complement separators, they are appended to the resultant HTML
59
-    * @access   private
60
-    * @var      array
61
-    */
57
+    /**
58
+     * These complement separators, they are appended to the resultant HTML
59
+     * @access   private
60
+     * @var      array
61
+     */
62 62
     var $_wrap = array('', '');
63 63
 
64
-   /**
65
-    * Options in different languages
66
-    *
67
-    * Note to potential translators: to avoid encoding problems please send
68
-    * your translations with "weird" letters encoded as HTML Unicode entities
69
-    *
70
-    * @access   private
71
-    * @var      array
72
-    */
64
+    /**
65
+     * Options in different languages
66
+     *
67
+     * Note to potential translators: to avoid encoding problems please send
68
+     * your translations with "weird" letters encoded as HTML Unicode entities
69
+     *
70
+     * @access   private
71
+     * @var      array
72
+     */
73 73
     var $_locale = array(
74 74
         'en' => array (
75 75
             'weekdays_short'=> array ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'),
@@ -232,43 +232,43 @@  discard block
 block discarded – undo
232 232
     // }}}
233 233
     // {{{ constructor
234 234
 
235
-   /**
236
-    * Class constructor
237
-    *
238
-    * The following keys may appear in $options array:
239
-    * - 'language': date language
240
-    * - 'format': Format of the date, based on PHP's date() function.
241
-    *   The following characters are currently recognised in format string:
242
-    *   <pre>
243
-    *       D => Short names of days
244
-    *       l => Long names of days
245
-    *       d => Day numbers
246
-    *       M => Short names of months
247
-    *       F => Long names of months
248
-    *       m => Month numbers
249
-    *       Y => Four digit year
250
-    *       y => Two digit year
251
-    *       h => 12 hour format
252
-    *       H => 23 hour  format
253
-    *       i => Minutes
254
-    *       s => Seconds
255
-    *       a => am/pm
256
-    *       A => AM/PM
257
-    *   </pre>
258
-    * - 'minYear': Minimum year in year select
259
-    * - 'maxYear': Maximum year in year select
260
-    * - 'addEmptyOption': Should an empty option be added to the top of
261
-    *    each select box?
262
-    * - 'emptyOptionValue': The value passed by the empty option.
263
-    * - 'emptyOptionText': The text displayed for the empty option.
264
-    * - 'optionIncrement': Step to increase the option values by (works for 'i' and 's')
265
-    *
266
-    * @access   public
267
-    * @param    string  Element's name
268
-    * @param    mixed   Label(s) for an element
269
-    * @param    array   Options to control the element's display
270
-    * @param    mixed   Either a typical HTML attribute string or an associative array
271
-    */
235
+    /**
236
+     * Class constructor
237
+     *
238
+     * The following keys may appear in $options array:
239
+     * - 'language': date language
240
+     * - 'format': Format of the date, based on PHP's date() function.
241
+     *   The following characters are currently recognised in format string:
242
+     *   <pre>
243
+     *       D => Short names of days
244
+     *       l => Long names of days
245
+     *       d => Day numbers
246
+     *       M => Short names of months
247
+     *       F => Long names of months
248
+     *       m => Month numbers
249
+     *       Y => Four digit year
250
+     *       y => Two digit year
251
+     *       h => 12 hour format
252
+     *       H => 23 hour  format
253
+     *       i => Minutes
254
+     *       s => Seconds
255
+     *       a => am/pm
256
+     *       A => AM/PM
257
+     *   </pre>
258
+     * - 'minYear': Minimum year in year select
259
+     * - 'maxYear': Maximum year in year select
260
+     * - 'addEmptyOption': Should an empty option be added to the top of
261
+     *    each select box?
262
+     * - 'emptyOptionValue': The value passed by the empty option.
263
+     * - 'emptyOptionText': The text displayed for the empty option.
264
+     * - 'optionIncrement': Step to increase the option values by (works for 'i' and 's')
265
+     *
266
+     * @access   public
267
+     * @param    string  Element's name
268
+     * @param    mixed   Label(s) for an element
269
+     * @param    array   Options to control the element's display
270
+     * @param    mixed   Either a typical HTML attribute string or an associative array
271
+     */
272 272
     function HTML_QuickForm_date($elementName = null, $elementLabel = null, $options = array(), $attributes = null)
273 273
     {
274 274
         $this->HTML_QuickForm_element($elementName, $elementLabel, $attributes);
@@ -412,15 +412,15 @@  discard block
 block discarded – undo
412 412
     // }}}
413 413
     // {{{ _createOptionList()
414 414
 
415
-   /**
416
-    * Creates an option list containing the numbers from the start number to the end, inclusive
417
-    *
418
-    * @param    int     The start number
419
-    * @param    int     The end number
420
-    * @param    int     Increment by this value
421
-    * @access   private
422
-    * @return   array   An array of numeric options.
423
-    */
415
+    /**
416
+     * Creates an option list containing the numbers from the start number to the end, inclusive
417
+     *
418
+     * @param    int     The start number
419
+     * @param    int     The end number
420
+     * @param    int     Increment by this value
421
+     * @access   private
422
+     * @return   array   An array of numeric options.
423
+     */
424 424
     function _createOptionList($start, $end, $step = 1)
425 425
     {
426 426
         for ($i = $start, $options = array(); $start > $end? $i >= $end: $i <= $end; $i += $step) {
@@ -432,12 +432,12 @@  discard block
 block discarded – undo
432 432
     // }}}
433 433
     // {{{ _trimLeadingZeros()
434 434
 
435
-   /**
436
-    * Trims leading zeros from the (numeric) string
437
-    *
438
-    * @param    string  A numeric string, possibly with leading zeros
439
-    * @return   string  String with leading zeros removed
440
-    */
435
+    /**
436
+     * Trims leading zeros from the (numeric) string
437
+     *
438
+     * @param    string  A numeric string, possibly with leading zeros
439
+     * @return   string  String with leading zeros removed
440
+     */
441 441
     function _trimLeadingZeros($str)
442 442
     {
443 443
         if (0 == strcmp($str, $this->_options['emptyOptionValue'])) {
Please login to merge, or discard this patch.
Spacing   +141 added lines, -141 removed lines patch added patch discarded remove patch
@@ -71,161 +71,161 @@  discard block
 block discarded – undo
71 71
     * @var      array
72 72
     */
73 73
     var $_locale = array(
74
-        'en' => array (
75
-            'weekdays_short'=> array ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'),
76
-            'weekdays_long' => array ('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'),
77
-            'months_short'  => array ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'),
78
-            'months_long'   => array ('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December')
74
+        'en' => array(
75
+            'weekdays_short'=> array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'),
76
+            'weekdays_long' => array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'),
77
+            'months_short'  => array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'),
78
+            'months_long'   => array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December')
79 79
         ),
80
-        'de' => array (
81
-            'weekdays_short'=> array ('So', 'Mon', 'Di', 'Mi', 'Do', 'Fr', 'Sa'),
82
-            'weekdays_long' => array ('Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'),
83
-            'months_short'  => array ('Jan', 'Feb', 'M&#xe4;rz', 'April', 'Mai', 'Juni', 'Juli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dez'),
84
-            'months_long'   => array ('Januar', 'Februar', 'M&#xe4;rz', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember')
80
+        'de' => array(
81
+            'weekdays_short'=> array('So', 'Mon', 'Di', 'Mi', 'Do', 'Fr', 'Sa'),
82
+            'weekdays_long' => array('Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'),
83
+            'months_short'  => array('Jan', 'Feb', 'M&#xe4;rz', 'April', 'Mai', 'Juni', 'Juli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dez'),
84
+            'months_long'   => array('Januar', 'Februar', 'M&#xe4;rz', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember')
85 85
         ),
86
-        'fr' => array (
87
-            'weekdays_short'=> array ('Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'),
88
-            'weekdays_long' => array ('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'),
89
-            'months_short'  => array ('Jan', 'F&#xe9;v', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Ao&#xfb;t', 'Sep', 'Oct', 'Nov', 'D&#xe9;c'),
90
-            'months_long'   => array ('Janvier', 'F&#xe9;vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao&#xfb;t', 'Septembre', 'Octobre', 'Novembre', 'D&#xe9;cembre')
86
+        'fr' => array(
87
+            'weekdays_short'=> array('Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'),
88
+            'weekdays_long' => array('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'),
89
+            'months_short'  => array('Jan', 'F&#xe9;v', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Ao&#xfb;t', 'Sep', 'Oct', 'Nov', 'D&#xe9;c'),
90
+            'months_long'   => array('Janvier', 'F&#xe9;vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao&#xfb;t', 'Septembre', 'Octobre', 'Novembre', 'D&#xe9;cembre')
91 91
         ),
92
-        'hu'    => array (
93
-            'weekdays_short'=> array ('V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'),
94
-            'weekdays_long' => array ('vas&#xe1;rnap', 'h&#xe9;tf&#x151;', 'kedd', 'szerda', 'cs&#xfc;t&#xf6;rt&#xf6;k', 'p&#xe9;ntek', 'szombat'),
95
-            'months_short'  => array ('jan', 'feb', 'm&#xe1;rc', '&#xe1;pr', 'm&#xe1;j', 'j&#xfa;n', 'j&#xfa;l', 'aug', 'szept', 'okt', 'nov', 'dec'),
96
-            'months_long'   => array ('janu&#xe1;r', 'febru&#xe1;r', 'm&#xe1;rcius', '&#xe1;prilis', 'm&#xe1;jus', 'j&#xfa;nius', 'j&#xfa;lius', 'augusztus', 'szeptember', 'okt&#xf3;ber', 'november', 'december')
92
+        'hu'    => array(
93
+            'weekdays_short'=> array('V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'),
94
+            'weekdays_long' => array('vas&#xe1;rnap', 'h&#xe9;tf&#x151;', 'kedd', 'szerda', 'cs&#xfc;t&#xf6;rt&#xf6;k', 'p&#xe9;ntek', 'szombat'),
95
+            'months_short'  => array('jan', 'feb', 'm&#xe1;rc', '&#xe1;pr', 'm&#xe1;j', 'j&#xfa;n', 'j&#xfa;l', 'aug', 'szept', 'okt', 'nov', 'dec'),
96
+            'months_long'   => array('janu&#xe1;r', 'febru&#xe1;r', 'm&#xe1;rcius', '&#xe1;prilis', 'm&#xe1;jus', 'j&#xfa;nius', 'j&#xfa;lius', 'augusztus', 'szeptember', 'okt&#xf3;ber', 'november', 'december')
97 97
         ),
98
-        'pl'    => array (
99
-            'weekdays_short'=> array ('Nie', 'Pn', 'Wt', '&#x15a;r', 'Czw', 'Pt', 'Sob'),
100
-            'weekdays_long' => array ('Niedziela', 'Poniedzia&#x142;ek', 'Wtorek', '&#x15a;roda', 'Czwartek', 'Pi&#x105;tek', 'Sobota'),
101
-            'months_short'  => array ('Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Pa&#x17a;', 'Lis', 'Gru'),
102
-            'months_long'   => array ('Stycze&#x144;', 'Luty', 'Marzec', 'Kwiecie&#x144;', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpie&#x144;', 'Wrzesie&#x144;', 'Pa&#x17a;dziernik', 'Listopad', 'Grudzie&#x144;')
98
+        'pl'    => array(
99
+            'weekdays_short'=> array('Nie', 'Pn', 'Wt', '&#x15a;r', 'Czw', 'Pt', 'Sob'),
100
+            'weekdays_long' => array('Niedziela', 'Poniedzia&#x142;ek', 'Wtorek', '&#x15a;roda', 'Czwartek', 'Pi&#x105;tek', 'Sobota'),
101
+            'months_short'  => array('Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Pa&#x17a;', 'Lis', 'Gru'),
102
+            'months_long'   => array('Stycze&#x144;', 'Luty', 'Marzec', 'Kwiecie&#x144;', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpie&#x144;', 'Wrzesie&#x144;', 'Pa&#x17a;dziernik', 'Listopad', 'Grudzie&#x144;')
103 103
         ),
104
-        'sl'    => array (
105
-            'weekdays_short'=> array ('Ned', 'Pon', 'Tor', 'Sre', 'Cet', 'Pet', 'Sob'),
106
-            'weekdays_long' => array ('Nedelja', 'Ponedeljek', 'Torek', 'Sreda', 'Cetrtek', 'Petek', 'Sobota'),
107
-            'months_short'  => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Avg', 'Sep', 'Okt', 'Nov', 'Dec'),
108
-            'months_long'   => array ('Januar', 'Februar', 'Marec', 'April', 'Maj', 'Junij', 'Julij', 'Avgust', 'September', 'Oktober', 'November', 'December')
104
+        'sl'    => array(
105
+            'weekdays_short'=> array('Ned', 'Pon', 'Tor', 'Sre', 'Cet', 'Pet', 'Sob'),
106
+            'weekdays_long' => array('Nedelja', 'Ponedeljek', 'Torek', 'Sreda', 'Cetrtek', 'Petek', 'Sobota'),
107
+            'months_short'  => array('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Avg', 'Sep', 'Okt', 'Nov', 'Dec'),
108
+            'months_long'   => array('Januar', 'Februar', 'Marec', 'April', 'Maj', 'Junij', 'Julij', 'Avgust', 'September', 'Oktober', 'November', 'December')
109 109
         ),
110
-        'ru'    => array (
111
-            'weekdays_short'=> array ('&#x412;&#x441;', '&#x41f;&#x43d;', '&#x412;&#x442;', '&#x421;&#x440;', '&#x427;&#x442;', '&#x41f;&#x442;', '&#x421;&#x431;'),
112
-            'weekdays_long' => array ('&#x412;&#x43e;&#x441;&#x43a;&#x440;&#x435;&#x441;&#x435;&#x43d;&#x44c;&#x435;', '&#x41f;&#x43e;&#x43d;&#x435;&#x434;&#x435;&#x43b;&#x44c;&#x43d;&#x438;&#x43a;', '&#x412;&#x442;&#x43e;&#x440;&#x43d;&#x438;&#x43a;', '&#x421;&#x440;&#x435;&#x434;&#x430;', '&#x427;&#x435;&#x442;&#x432;&#x435;&#x440;&#x433;', '&#x41f;&#x44f;&#x442;&#x43d;&#x438;&#x446;&#x430;', '&#x421;&#x443;&#x431;&#x431;&#x43e;&#x442;&#x430;'),
113
-            'months_short'  => array ('&#x42f;&#x43d;&#x432;', '&#x424;&#x435;&#x432;', '&#x41c;&#x430;&#x440;', '&#x410;&#x43f;&#x440;', '&#x41c;&#x430;&#x439;', '&#x418;&#x44e;&#x43d;', '&#x418;&#x44e;&#x43b;', '&#x410;&#x432;&#x433;', '&#x421;&#x435;&#x43d;', '&#x41e;&#x43a;&#x442;', '&#x41d;&#x43e;&#x44f;', '&#x414;&#x435;&#x43a;'),
114
-            'months_long'   => array ('&#x42f;&#x43d;&#x432;&#x430;&#x440;&#x44c;', '&#x424;&#x435;&#x432;&#x440;&#x430;&#x43b;&#x44c;', '&#x41c;&#x430;&#x440;&#x442;', '&#x410;&#x43f;&#x440;&#x435;&#x43b;&#x44c;', '&#x41c;&#x430;&#x439;', '&#x418;&#x44e;&#x43d;&#x44c;', '&#x418;&#x44e;&#x43b;&#x44c;', '&#x410;&#x432;&#x433;&#x443;&#x441;&#x442;', '&#x421;&#x435;&#x43d;&#x442;&#x44f;&#x431;&#x440;&#x44c;', '&#x41e;&#x43a;&#x442;&#x44f;&#x431;&#x440;&#x44c;', '&#x41d;&#x43e;&#x44f;&#x431;&#x440;&#x44c;', '&#x414;&#x435;&#x43a;&#x430;&#x431;&#x440;&#x44c;')
110
+        'ru'    => array(
111
+            'weekdays_short'=> array('&#x412;&#x441;', '&#x41f;&#x43d;', '&#x412;&#x442;', '&#x421;&#x440;', '&#x427;&#x442;', '&#x41f;&#x442;', '&#x421;&#x431;'),
112
+            'weekdays_long' => array('&#x412;&#x43e;&#x441;&#x43a;&#x440;&#x435;&#x441;&#x435;&#x43d;&#x44c;&#x435;', '&#x41f;&#x43e;&#x43d;&#x435;&#x434;&#x435;&#x43b;&#x44c;&#x43d;&#x438;&#x43a;', '&#x412;&#x442;&#x43e;&#x440;&#x43d;&#x438;&#x43a;', '&#x421;&#x440;&#x435;&#x434;&#x430;', '&#x427;&#x435;&#x442;&#x432;&#x435;&#x440;&#x433;', '&#x41f;&#x44f;&#x442;&#x43d;&#x438;&#x446;&#x430;', '&#x421;&#x443;&#x431;&#x431;&#x43e;&#x442;&#x430;'),
113
+            'months_short'  => array('&#x42f;&#x43d;&#x432;', '&#x424;&#x435;&#x432;', '&#x41c;&#x430;&#x440;', '&#x410;&#x43f;&#x440;', '&#x41c;&#x430;&#x439;', '&#x418;&#x44e;&#x43d;', '&#x418;&#x44e;&#x43b;', '&#x410;&#x432;&#x433;', '&#x421;&#x435;&#x43d;', '&#x41e;&#x43a;&#x442;', '&#x41d;&#x43e;&#x44f;', '&#x414;&#x435;&#x43a;'),
114
+            'months_long'   => array('&#x42f;&#x43d;&#x432;&#x430;&#x440;&#x44c;', '&#x424;&#x435;&#x432;&#x440;&#x430;&#x43b;&#x44c;', '&#x41c;&#x430;&#x440;&#x442;', '&#x410;&#x43f;&#x440;&#x435;&#x43b;&#x44c;', '&#x41c;&#x430;&#x439;', '&#x418;&#x44e;&#x43d;&#x44c;', '&#x418;&#x44e;&#x43b;&#x44c;', '&#x410;&#x432;&#x433;&#x443;&#x441;&#x442;', '&#x421;&#x435;&#x43d;&#x442;&#x44f;&#x431;&#x440;&#x44c;', '&#x41e;&#x43a;&#x442;&#x44f;&#x431;&#x440;&#x44c;', '&#x41d;&#x43e;&#x44f;&#x431;&#x440;&#x44c;', '&#x414;&#x435;&#x43a;&#x430;&#x431;&#x440;&#x44c;')
115 115
         ),
116
-        'es'    => array (
117
-            'weekdays_short'=> array ('Dom', 'Lun', 'Mar', 'Mi&#xe9;', 'Jue', 'Vie', 'S&#xe1;b'),
118
-            'weekdays_long' => array ('Domingo', 'Lunes', 'Martes', 'Mi&#xe9;rcoles', 'Jueves', 'Viernes', 'S&#xe1;bado'),
119
-            'months_short'  => array ('Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'),
120
-            'months_long'   => array ('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre')
116
+        'es'    => array(
117
+            'weekdays_short'=> array('Dom', 'Lun', 'Mar', 'Mi&#xe9;', 'Jue', 'Vie', 'S&#xe1;b'),
118
+            'weekdays_long' => array('Domingo', 'Lunes', 'Martes', 'Mi&#xe9;rcoles', 'Jueves', 'Viernes', 'S&#xe1;bado'),
119
+            'months_short'  => array('Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'),
120
+            'months_long'   => array('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre')
121 121
         ),
122
-        'da'    => array (
123
-            'weekdays_short'=> array ('S&#xf8;n', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'L&#xf8;r'),
124
-            'weekdays_long' => array ('S&#xf8;ndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'L&#xf8;rdag'),
125
-            'months_short'  => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'),
126
-            'months_long'   => array ('Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December')
122
+        'da'    => array(
123
+            'weekdays_short'=> array('S&#xf8;n', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'L&#xf8;r'),
124
+            'weekdays_long' => array('S&#xf8;ndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'L&#xf8;rdag'),
125
+            'months_short'  => array('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'),
126
+            'months_long'   => array('Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December')
127 127
         ),
128
-        'is'    => array (
129
-            'weekdays_short'=> array ('Sun', 'M&#xe1;n', '&#xde;ri', 'Mi&#xf0;', 'Fim', 'F&#xf6;s', 'Lau'),
130
-            'weekdays_long' => array ('Sunnudagur', 'M&#xe1;nudagur', '&#xde;ri&#xf0;judagur', 'Mi&#xf0;vikudagur', 'Fimmtudagur', 'F&#xf6;studagur', 'Laugardagur'),
131
-            'months_short'  => array ('Jan', 'Feb', 'Mar', 'Apr', 'Ma&#xed;', 'J&#xfa;n', 'J&#xfa;l', '&#xc1;g&#xfa;', 'Sep', 'Okt', 'N&#xf3;v', 'Des'),
132
-            'months_long'   => array ('Jan&#xfa;ar', 'Febr&#xfa;ar', 'Mars', 'Apr&#xed;l', 'Ma&#xed;', 'J&#xfa;n&#xed;', 'J&#xfa;l&#xed;', '&#xc1;g&#xfa;st', 'September', 'Okt&#xf3;ber', 'N&#xf3;vember', 'Desember')
128
+        'is'    => array(
129
+            'weekdays_short'=> array('Sun', 'M&#xe1;n', '&#xde;ri', 'Mi&#xf0;', 'Fim', 'F&#xf6;s', 'Lau'),
130
+            'weekdays_long' => array('Sunnudagur', 'M&#xe1;nudagur', '&#xde;ri&#xf0;judagur', 'Mi&#xf0;vikudagur', 'Fimmtudagur', 'F&#xf6;studagur', 'Laugardagur'),
131
+            'months_short'  => array('Jan', 'Feb', 'Mar', 'Apr', 'Ma&#xed;', 'J&#xfa;n', 'J&#xfa;l', '&#xc1;g&#xfa;', 'Sep', 'Okt', 'N&#xf3;v', 'Des'),
132
+            'months_long'   => array('Jan&#xfa;ar', 'Febr&#xfa;ar', 'Mars', 'Apr&#xed;l', 'Ma&#xed;', 'J&#xfa;n&#xed;', 'J&#xfa;l&#xed;', '&#xc1;g&#xfa;st', 'September', 'Okt&#xf3;ber', 'N&#xf3;vember', 'Desember')
133 133
         ),
134
-        'it'    => array (
135
-            'weekdays_short'=> array ('Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'),
136
-            'weekdays_long' => array ('Domenica', 'Luned&#xec;', 'Marted&#xec;', 'Mercoled&#xec;', 'Gioved&#xec;', 'Venerd&#xec;', 'Sabato'),
137
-            'months_short'  => array ('Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'),
138
-            'months_long'   => array ('Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre')
134
+        'it'    => array(
135
+            'weekdays_short'=> array('Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'),
136
+            'weekdays_long' => array('Domenica', 'Luned&#xec;', 'Marted&#xec;', 'Mercoled&#xec;', 'Gioved&#xec;', 'Venerd&#xec;', 'Sabato'),
137
+            'months_short'  => array('Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'),
138
+            'months_long'   => array('Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre')
139 139
         ),
140
-        'sk'    => array (
141
-            'weekdays_short'=> array ('Ned', 'Pon', 'Uto', 'Str', '&#x8a;tv', 'Pia', 'Sob'),
142
-            'weekdays_long' => array ('Nede&#x17e;a', 'Pondelok', 'Utorok', 'Streda', '&#x8a;tvrtok', 'Piatok', 'Sobota'),
143
-            'months_short'  => array ('Jan', 'Feb', 'Mar', 'Apr', 'M&#xe1;j', 'J&#xfa;n', 'J&#xfa;l', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'),
144
-            'months_long'   => array ('Janu&#xe1;r', 'Febru&#xe1;r', 'Marec', 'Apr&#xed;l', 'M&#xe1;j', 'J&#xfa;n', 'J&#xfa;l', 'August', 'September', 'Okt&#xf3;ber', 'November', 'December')
140
+        'sk'    => array(
141
+            'weekdays_short'=> array('Ned', 'Pon', 'Uto', 'Str', '&#x8a;tv', 'Pia', 'Sob'),
142
+            'weekdays_long' => array('Nede&#x17e;a', 'Pondelok', 'Utorok', 'Streda', '&#x8a;tvrtok', 'Piatok', 'Sobota'),
143
+            'months_short'  => array('Jan', 'Feb', 'Mar', 'Apr', 'M&#xe1;j', 'J&#xfa;n', 'J&#xfa;l', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'),
144
+            'months_long'   => array('Janu&#xe1;r', 'Febru&#xe1;r', 'Marec', 'Apr&#xed;l', 'M&#xe1;j', 'J&#xfa;n', 'J&#xfa;l', 'August', 'September', 'Okt&#xf3;ber', 'November', 'December')
145 145
         ),
146
-        'cs'    => array (
147
-            'weekdays_short'=> array ('Ne', 'Po', '&#xda;t', 'St', '&#x10c;t', 'P&#xe1;', 'So'),
148
-            'weekdays_long' => array ('Ned&#x11b;le', 'Pond&#x11b;l&#xed;', '&#xda;ter&#xfd;', 'St&#x159;eda', '&#x10c;tvrtek', 'P&#xe1;tek', 'Sobota'),
149
-            'months_short'  => array ('Led', '&#xda;no', 'B&#x159;e', 'Dub', 'Kv&#x11b;', '&#x10c;en', '&#x10c;ec', 'Srp', 'Z&#xe1;&#x159;', '&#x158;&#xed;j', 'Lis', 'Pro'),
150
-            'months_long'   => array ('Leden', '&#xda;nor', 'B&#x159;ezen', 'Duben', 'Kv&#x11b;ten', '&#x10c;erven', '&#x10c;ervenec', 'Srpen', 'Z&#xe1;&#x159;&#xed;', '&#x158;&#xed;jen', 'Listopad', 'Prosinec')
146
+        'cs'    => array(
147
+            'weekdays_short'=> array('Ne', 'Po', '&#xda;t', 'St', '&#x10c;t', 'P&#xe1;', 'So'),
148
+            'weekdays_long' => array('Ned&#x11b;le', 'Pond&#x11b;l&#xed;', '&#xda;ter&#xfd;', 'St&#x159;eda', '&#x10c;tvrtek', 'P&#xe1;tek', 'Sobota'),
149
+            'months_short'  => array('Led', '&#xda;no', 'B&#x159;e', 'Dub', 'Kv&#x11b;', '&#x10c;en', '&#x10c;ec', 'Srp', 'Z&#xe1;&#x159;', '&#x158;&#xed;j', 'Lis', 'Pro'),
150
+            'months_long'   => array('Leden', '&#xda;nor', 'B&#x159;ezen', 'Duben', 'Kv&#x11b;ten', '&#x10c;erven', '&#x10c;ervenec', 'Srpen', 'Z&#xe1;&#x159;&#xed;', '&#x158;&#xed;jen', 'Listopad', 'Prosinec')
151 151
         ),
152
-        'hy'    => array (
153
-            'weekdays_short'=> array ('&#x53f;&#x580;&#x56f;', '&#x535;&#x580;&#x56f;', '&#x535;&#x580;&#x584;', '&#x549;&#x580;&#x584;', '&#x540;&#x576;&#x563;', '&#x548;&#x582;&#x580;', '&#x547;&#x562;&#x569;'),
154
-            'weekdays_long' => array ('&#x53f;&#x56b;&#x580;&#x561;&#x56f;&#x56b;', '&#x535;&#x580;&#x56f;&#x578;&#x582;&#x577;&#x561;&#x562;&#x569;&#x56b;', '&#x535;&#x580;&#x565;&#x584;&#x577;&#x561;&#x562;&#x569;&#x56b;', '&#x549;&#x578;&#x580;&#x565;&#x584;&#x577;&#x561;&#x562;&#x569;&#x56b;', '&#x540;&#x56b;&#x576;&#x563;&#x577;&#x561;&#x562;&#x569;&#x56b;', '&#x548;&#x582;&#x580;&#x562;&#x561;&#x569;', '&#x547;&#x561;&#x562;&#x561;&#x569;'),
155
-            'months_short'  => array ('&#x540;&#x576;&#x57e;', '&#x553;&#x57f;&#x580;', '&#x544;&#x580;&#x57f;', '&#x531;&#x57a;&#x580;', '&#x544;&#x575;&#x57d;', '&#x540;&#x576;&#x57d;', '&#x540;&#x56c;&#x57d;', '&#x555;&#x563;&#x57d;', '&#x54d;&#x57a;&#x57f;', '&#x540;&#x56f;&#x57f;', '&#x546;&#x575;&#x574;', '&#x534;&#x56f;&#x57f;'),
156
-            'months_long'   => array ('&#x540;&#x578;&#x582;&#x576;&#x57e;&#x561;&#x580;', '&#x553;&#x565;&#x57f;&#x580;&#x57e;&#x561;&#x580;', '&#x544;&#x561;&#x580;&#x57f;', '&#x531;&#x57a;&#x580;&#x56b;&#x56c;', '&#x544;&#x561;&#x575;&#x56b;&#x57d;', '&#x540;&#x578;&#x582;&#x576;&#x56b;&#x57d;', '&#x540;&#x578;&#x582;&#x56c;&#x56b;&#x57d;', '&#x555;&#x563;&#x578;&#x57d;&#x57f;&#x578;&#x57d;', '&#x54d;&#x565;&#x57a;&#x57f;&#x565;&#x574;&#x562;&#x565;&#x580;', '&#x540;&#x578;&#x56f;&#x57f;&#x565;&#x574;&#x562;&#x565;&#x580;', '&#x546;&#x578;&#x575;&#x565;&#x574;&#x562;&#x565;&#x580;', '&#x534;&#x565;&#x56f;&#x57f;&#x565;&#x574;&#x562;&#x565;&#x580;')
152
+        'hy'    => array(
153
+            'weekdays_short'=> array('&#x53f;&#x580;&#x56f;', '&#x535;&#x580;&#x56f;', '&#x535;&#x580;&#x584;', '&#x549;&#x580;&#x584;', '&#x540;&#x576;&#x563;', '&#x548;&#x582;&#x580;', '&#x547;&#x562;&#x569;'),
154
+            'weekdays_long' => array('&#x53f;&#x56b;&#x580;&#x561;&#x56f;&#x56b;', '&#x535;&#x580;&#x56f;&#x578;&#x582;&#x577;&#x561;&#x562;&#x569;&#x56b;', '&#x535;&#x580;&#x565;&#x584;&#x577;&#x561;&#x562;&#x569;&#x56b;', '&#x549;&#x578;&#x580;&#x565;&#x584;&#x577;&#x561;&#x562;&#x569;&#x56b;', '&#x540;&#x56b;&#x576;&#x563;&#x577;&#x561;&#x562;&#x569;&#x56b;', '&#x548;&#x582;&#x580;&#x562;&#x561;&#x569;', '&#x547;&#x561;&#x562;&#x561;&#x569;'),
155
+            'months_short'  => array('&#x540;&#x576;&#x57e;', '&#x553;&#x57f;&#x580;', '&#x544;&#x580;&#x57f;', '&#x531;&#x57a;&#x580;', '&#x544;&#x575;&#x57d;', '&#x540;&#x576;&#x57d;', '&#x540;&#x56c;&#x57d;', '&#x555;&#x563;&#x57d;', '&#x54d;&#x57a;&#x57f;', '&#x540;&#x56f;&#x57f;', '&#x546;&#x575;&#x574;', '&#x534;&#x56f;&#x57f;'),
156
+            'months_long'   => array('&#x540;&#x578;&#x582;&#x576;&#x57e;&#x561;&#x580;', '&#x553;&#x565;&#x57f;&#x580;&#x57e;&#x561;&#x580;', '&#x544;&#x561;&#x580;&#x57f;', '&#x531;&#x57a;&#x580;&#x56b;&#x56c;', '&#x544;&#x561;&#x575;&#x56b;&#x57d;', '&#x540;&#x578;&#x582;&#x576;&#x56b;&#x57d;', '&#x540;&#x578;&#x582;&#x56c;&#x56b;&#x57d;', '&#x555;&#x563;&#x578;&#x57d;&#x57f;&#x578;&#x57d;', '&#x54d;&#x565;&#x57a;&#x57f;&#x565;&#x574;&#x562;&#x565;&#x580;', '&#x540;&#x578;&#x56f;&#x57f;&#x565;&#x574;&#x562;&#x565;&#x580;', '&#x546;&#x578;&#x575;&#x565;&#x574;&#x562;&#x565;&#x580;', '&#x534;&#x565;&#x56f;&#x57f;&#x565;&#x574;&#x562;&#x565;&#x580;')
157 157
         ),
158
-        'nl'    => array (
159
-            'weekdays_short'=> array ('Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za'),
160
-            'weekdays_long' => array ('Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'),
161
-            'months_short'  => array ('Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'),
162
-            'months_long'   => array ('Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December')
158
+        'nl'    => array(
159
+            'weekdays_short'=> array('Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za'),
160
+            'weekdays_long' => array('Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'),
161
+            'months_short'  => array('Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'),
162
+            'months_long'   => array('Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December')
163 163
         ),
164
-        'et'    => array (
165
-            'weekdays_short'=> array ('P', 'E', 'T', 'K', 'N', 'R', 'L'),
166
-            'weekdays_long' => array ('P&#xfc;hap&#xe4;ev', 'Esmasp&#xe4;ev', 'Teisip&#xe4;ev', 'Kolmap&#xe4;ev', 'Neljap&#xe4;ev', 'Reede', 'Laup&#xe4;ev'),
167
-            'months_short'  => array ('Jaan', 'Veebr', 'M&#xe4;rts', 'Aprill', 'Mai', 'Juuni', 'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'),
168
-            'months_long'   => array ('Jaanuar', 'Veebruar', 'M&#xe4;rts', 'Aprill', 'Mai', 'Juuni', 'Juuli', 'August', 'September', 'Oktoober', 'November', 'Detsember')
164
+        'et'    => array(
165
+            'weekdays_short'=> array('P', 'E', 'T', 'K', 'N', 'R', 'L'),
166
+            'weekdays_long' => array('P&#xfc;hap&#xe4;ev', 'Esmasp&#xe4;ev', 'Teisip&#xe4;ev', 'Kolmap&#xe4;ev', 'Neljap&#xe4;ev', 'Reede', 'Laup&#xe4;ev'),
167
+            'months_short'  => array('Jaan', 'Veebr', 'M&#xe4;rts', 'Aprill', 'Mai', 'Juuni', 'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'),
168
+            'months_long'   => array('Jaanuar', 'Veebruar', 'M&#xe4;rts', 'Aprill', 'Mai', 'Juuni', 'Juuli', 'August', 'September', 'Oktoober', 'November', 'Detsember')
169 169
         ),
170
-        'tr'    => array (
171
-            'weekdays_short'=> array ('Paz', 'Pzt', 'Sal', '&#xc7;ar', 'Per', 'Cum', 'Cts'),
172
-            'weekdays_long' => array ('Pazar', 'Pazartesi', 'Sal&#x131;', '&#xc7;ar&#x15f;amba', 'Per&#x15f;embe', 'Cuma', 'Cumartesi'),
173
-            'months_short'  => array ('Ock', '&#x15e;bt', 'Mrt', 'Nsn', 'Mys', 'Hzrn', 'Tmmz', 'A&#x11f;st', 'Eyl', 'Ekm', 'Ksm', 'Arlk'),
174
-            'months_long'   => array ('Ocak', '&#x15e;ubat', 'Mart', 'Nisan', 'May&#x131;s', 'Haziran', 'Temmuz', 'A&#x11f;ustos', 'Eyl&#xfc;l', 'Ekim', 'Kas&#x131;m', 'Aral&#x131;k')
170
+        'tr'    => array(
171
+            'weekdays_short'=> array('Paz', 'Pzt', 'Sal', '&#xc7;ar', 'Per', 'Cum', 'Cts'),
172
+            'weekdays_long' => array('Pazar', 'Pazartesi', 'Sal&#x131;', '&#xc7;ar&#x15f;amba', 'Per&#x15f;embe', 'Cuma', 'Cumartesi'),
173
+            'months_short'  => array('Ock', '&#x15e;bt', 'Mrt', 'Nsn', 'Mys', 'Hzrn', 'Tmmz', 'A&#x11f;st', 'Eyl', 'Ekm', 'Ksm', 'Arlk'),
174
+            'months_long'   => array('Ocak', '&#x15e;ubat', 'Mart', 'Nisan', 'May&#x131;s', 'Haziran', 'Temmuz', 'A&#x11f;ustos', 'Eyl&#xfc;l', 'Ekim', 'Kas&#x131;m', 'Aral&#x131;k')
175 175
         ),
176
-        'no'    => array (
177
-            'weekdays_short'=> array ('S&#xf8;n', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'L&#xf8;r'),
178
-            'weekdays_long' => array ('S&#xf8;ndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'L&#xf8;rdag'),
179
-            'months_short'  => array ('Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'),
180
-            'months_long'   => array ('Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember')
176
+        'no'    => array(
177
+            'weekdays_short'=> array('S&#xf8;n', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'L&#xf8;r'),
178
+            'weekdays_long' => array('S&#xf8;ndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'L&#xf8;rdag'),
179
+            'months_short'  => array('Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'),
180
+            'months_long'   => array('Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember')
181 181
         ),
182
-        'eo'    => array (
183
-            'weekdays_short'=> array ('Dim', 'Lun', 'Mar', 'Mer', '&#x134;a&#x16D;', 'Ven', 'Sab'),
184
-            'weekdays_long' => array ('Diman&#x109;o', 'Lundo', 'Mardo', 'Merkredo', '&#x134;a&#x16D;do', 'Vendredo', 'Sabato'),
185
-            'months_short'  => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'A&#x16D;g', 'Sep', 'Okt', 'Nov', 'Dec'),
186
-            'months_long'   => array ('Januaro', 'Februaro', 'Marto', 'Aprilo', 'Majo', 'Junio', 'Julio', 'A&#x16D;gusto', 'Septembro', 'Oktobro', 'Novembro', 'Decembro')
182
+        'eo'    => array(
183
+            'weekdays_short'=> array('Dim', 'Lun', 'Mar', 'Mer', '&#x134;a&#x16D;', 'Ven', 'Sab'),
184
+            'weekdays_long' => array('Diman&#x109;o', 'Lundo', 'Mardo', 'Merkredo', '&#x134;a&#x16D;do', 'Vendredo', 'Sabato'),
185
+            'months_short'  => array('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'A&#x16D;g', 'Sep', 'Okt', 'Nov', 'Dec'),
186
+            'months_long'   => array('Januaro', 'Februaro', 'Marto', 'Aprilo', 'Majo', 'Junio', 'Julio', 'A&#x16D;gusto', 'Septembro', 'Oktobro', 'Novembro', 'Decembro')
187 187
         ),
188
-        'ua'    => array (
188
+        'ua'    => array(
189 189
             'weekdays_short'=> array('&#x41d;&#x434;&#x43b;', '&#x41f;&#x43d;&#x434;', '&#x412;&#x442;&#x440;', '&#x421;&#x440;&#x434;', '&#x427;&#x442;&#x432;', '&#x41f;&#x442;&#x43d;', '&#x421;&#x431;&#x442;'),
190 190
             'weekdays_long' => array('&#x41d;&#x435;&#x434;&#x456;&#x43b;&#x44f;', '&#x41f;&#x43e;&#x43d;&#x435;&#x434;&#x456;&#x43b;&#x43e;&#x43a;', '&#x412;&#x456;&#x432;&#x442;&#x43e;&#x440;&#x43e;&#x43a;', '&#x421;&#x435;&#x440;&#x435;&#x434;&#x430;', '&#x427;&#x435;&#x442;&#x432;&#x435;&#x440;', '&#x41f;\'&#x44f;&#x442;&#x43d;&#x438;&#x446;&#x44f;', '&#x421;&#x443;&#x431;&#x43e;&#x442;&#x430;'),
191 191
             'months_short'  => array('&#x421;&#x456;&#x447;', '&#x41b;&#x44e;&#x442;', '&#x411;&#x435;&#x440;', '&#x41a;&#x432;&#x456;', '&#x422;&#x440;&#x430;', '&#x427;&#x435;&#x440;', '&#x41b;&#x438;&#x43f;', '&#x421;&#x435;&#x440;', '&#x412;&#x435;&#x440;', '&#x416;&#x43e;&#x432;', '&#x41b;&#x438;&#x441;', '&#x413;&#x440;&#x443;'),
192 192
             'months_long'   => array('&#x421;&#x456;&#x447;&#x435;&#x43d;&#x44c;', '&#x41b;&#x44e;&#x442;&#x438;&#x439;', '&#x411;&#x435;&#x440;&#x435;&#x437;&#x435;&#x43d;&#x44c;', '&#x41a;&#x432;&#x456;&#x442;&#x435;&#x43d;&#x44c;', '&#x422;&#x440;&#x430;&#x432;&#x435;&#x43d;&#x44c;', '&#x427;&#x435;&#x440;&#x432;&#x435;&#x43d;&#x44c;', '&#x41b;&#x438;&#x43f;&#x435;&#x43d;&#x44c;', '&#x421;&#x435;&#x440;&#x43f;&#x435;&#x43d;&#x44c;', '&#x412;&#x435;&#x440;&#x435;&#x441;&#x435;&#x43d;&#x44c;', '&#x416;&#x43e;&#x432;&#x442;&#x435;&#x43d;&#x44c;', '&#x41b;&#x438;&#x441;&#x442;&#x43e;&#x43f;&#x430;&#x434;', '&#x413;&#x440;&#x443;&#x434;&#x435;&#x43d;&#x44c;')
193 193
         ),
194
-        'ro'    => array (
195
-            'weekdays_short'=> array ('Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sam'),
196
-            'weekdays_long' => array ('Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata'),
197
-            'months_short'  => array ('Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', 'Iul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'),
198
-            'months_long'   => array ('Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulie', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie')
194
+        'ro'    => array(
195
+            'weekdays_short'=> array('Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sam'),
196
+            'weekdays_long' => array('Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata'),
197
+            'months_short'  => array('Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', 'Iul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'),
198
+            'months_long'   => array('Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulie', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie')
199 199
         ),
200
-        'he'    => array (
201
-            'weekdays_short'=> array ('&#1512;&#1488;&#1513;&#1493;&#1503;', '&#1513;&#1504;&#1497;', '&#1513;&#1500;&#1497;&#1513;&#1497;', '&#1512;&#1489;&#1497;&#1506;&#1497;', '&#1495;&#1502;&#1497;&#1513;&#1497;', '&#1513;&#1497;&#1513;&#1497;', '&#1513;&#1489;&#1514;'),
202
-            'weekdays_long' => array ('&#1497;&#1493;&#1501; &#1512;&#1488;&#1513;&#1493;&#1503;', '&#1497;&#1493;&#1501; &#1513;&#1504;&#1497;', '&#1497;&#1493;&#1501; &#1513;&#1500;&#1497;&#1513;&#1497;', '&#1497;&#1493;&#1501; &#1512;&#1489;&#1497;&#1506;&#1497;', '&#1497;&#1493;&#1501; &#1495;&#1502;&#1497;&#1513;&#1497;', '&#1497;&#1493;&#1501; &#1513;&#1497;&#1513;&#1497;', '&#1513;&#1489;&#1514;'),
203
-            'months_short'  => array ('&#1497;&#1504;&#1493;&#1488;&#1512;', '&#1508;&#1489;&#1512;&#1493;&#1488;&#1512;', '&#1502;&#1512;&#1509;', '&#1488;&#1508;&#1512;&#1497;&#1500;', '&#1502;&#1488;&#1497;', '&#1497;&#1493;&#1504;&#1497;', '&#1497;&#1493;&#1500;&#1497;', '&#1488;&#1493;&#1490;&#1493;&#1505;&#1496;', '&#1505;&#1508;&#1496;&#1502;&#1489;&#1512;', '&#1488;&#1493;&#1511;&#1496;&#1493;&#1489;&#1512;', '&#1504;&#1493;&#1489;&#1502;&#1489;&#1512;', '&#1491;&#1510;&#1502;&#1489;&#1512;'),
204
-            'months_long'   => array ('&#1497;&#1504;&#1493;&#1488;&#1512;', '&#1508;&#1489;&#1512;&#1493;&#1488;&#1512;', '&#1502;&#1512;&#1509;', '&#1488;&#1508;&#1512;&#1497;&#1500;', '&#1502;&#1488;&#1497;', '&#1497;&#1493;&#1504;&#1497;', '&#1497;&#1493;&#1500;&#1497;', '&#1488;&#1493;&#1490;&#1493;&#1505;&#1496;', '&#1505;&#1508;&#1496;&#1502;&#1489;&#1512;', '&#1488;&#1493;&#1511;&#1496;&#1493;&#1489;&#1512;', '&#1504;&#1493;&#1489;&#1502;&#1489;&#1512;', '&#1491;&#1510;&#1502;&#1489;&#1512;')
200
+        'he'    => array(
201
+            'weekdays_short'=> array('&#1512;&#1488;&#1513;&#1493;&#1503;', '&#1513;&#1504;&#1497;', '&#1513;&#1500;&#1497;&#1513;&#1497;', '&#1512;&#1489;&#1497;&#1506;&#1497;', '&#1495;&#1502;&#1497;&#1513;&#1497;', '&#1513;&#1497;&#1513;&#1497;', '&#1513;&#1489;&#1514;'),
202
+            'weekdays_long' => array('&#1497;&#1493;&#1501; &#1512;&#1488;&#1513;&#1493;&#1503;', '&#1497;&#1493;&#1501; &#1513;&#1504;&#1497;', '&#1497;&#1493;&#1501; &#1513;&#1500;&#1497;&#1513;&#1497;', '&#1497;&#1493;&#1501; &#1512;&#1489;&#1497;&#1506;&#1497;', '&#1497;&#1493;&#1501; &#1495;&#1502;&#1497;&#1513;&#1497;', '&#1497;&#1493;&#1501; &#1513;&#1497;&#1513;&#1497;', '&#1513;&#1489;&#1514;'),
203
+            'months_short'  => array('&#1497;&#1504;&#1493;&#1488;&#1512;', '&#1508;&#1489;&#1512;&#1493;&#1488;&#1512;', '&#1502;&#1512;&#1509;', '&#1488;&#1508;&#1512;&#1497;&#1500;', '&#1502;&#1488;&#1497;', '&#1497;&#1493;&#1504;&#1497;', '&#1497;&#1493;&#1500;&#1497;', '&#1488;&#1493;&#1490;&#1493;&#1505;&#1496;', '&#1505;&#1508;&#1496;&#1502;&#1489;&#1512;', '&#1488;&#1493;&#1511;&#1496;&#1493;&#1489;&#1512;', '&#1504;&#1493;&#1489;&#1502;&#1489;&#1512;', '&#1491;&#1510;&#1502;&#1489;&#1512;'),
204
+            'months_long'   => array('&#1497;&#1504;&#1493;&#1488;&#1512;', '&#1508;&#1489;&#1512;&#1493;&#1488;&#1512;', '&#1502;&#1512;&#1509;', '&#1488;&#1508;&#1512;&#1497;&#1500;', '&#1502;&#1488;&#1497;', '&#1497;&#1493;&#1504;&#1497;', '&#1497;&#1493;&#1500;&#1497;', '&#1488;&#1493;&#1490;&#1493;&#1505;&#1496;', '&#1505;&#1508;&#1496;&#1502;&#1489;&#1512;', '&#1488;&#1493;&#1511;&#1496;&#1493;&#1489;&#1512;', '&#1504;&#1493;&#1489;&#1502;&#1489;&#1512;', '&#1491;&#1510;&#1502;&#1489;&#1512;')
205 205
         ),
206
-        'sv'    => array (
207
-            'weekdays_short'=> array ('S&#xf6;n', 'M&#xe5;n', 'Tis', 'Ons', 'Tor', 'Fre', 'L&#xf6;r'),
208
-            'weekdays_long' => array ('S&#xf6;ndag', 'M&#xe5;ndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'L&#xf6;rdag'),
209
-            'months_short'  => array ('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'),
210
-            'months_long'   => array ('Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli', 'Augusti', 'September', 'Oktober', 'November', 'December')
206
+        'sv'    => array(
207
+            'weekdays_short'=> array('S&#xf6;n', 'M&#xe5;n', 'Tis', 'Ons', 'Tor', 'Fre', 'L&#xf6;r'),
208
+            'weekdays_long' => array('S&#xf6;ndag', 'M&#xe5;ndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'L&#xf6;rdag'),
209
+            'months_short'  => array('Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'),
210
+            'months_long'   => array('Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli', 'Augusti', 'September', 'Oktober', 'November', 'December')
211 211
         ),
212
-        'pt'    => array (
213
-            'weekdays_short'=> array ('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'S&aacute;b'),
214
-            'weekdays_long' => array ('Domingo', 'Segunda-feira', 'Ter&ccedil;a-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'S&aacute;bado'),
215
-            'months_short'  => array ('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'),
216
-            'months_long'   => array ('Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro')
212
+        'pt'    => array(
213
+            'weekdays_short'=> array('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'S&aacute;b'),
214
+            'weekdays_long' => array('Domingo', 'Segunda-feira', 'Ter&ccedil;a-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'S&aacute;bado'),
215
+            'months_short'  => array('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'),
216
+            'months_long'   => array('Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro')
217 217
         ),
218
-        'tw'    => array (
219
-            'weekdays_short'=> array ('&#36913;&#26085;','&#36913;&#19968;', '&#36913;&#20108;','&#36913;&#19977;', '&#36913;&#22235;','&#36913;&#20116;', '&#36913;&#20845;'),
220
-            'weekdays_long' => array ('&#26143;&#26399;&#26085;', '&#26143;&#26399;&#19968;', '&#26143;&#26399;&#20108;', '&#26143;&#26399;&#19977;', '&#26143;&#26399;&#22235;', '&#26143;&#26399;&#20116;', '&#26143;&#26399;&#20845;'),
221
-            'months_short'  => array ('&#19968;&#26376;', '&#20108;&#26376;', '&#19977;&#26376;', '&#22235;&#26376;', '&#20116;&#26376;', '&#20845;&#26376;', '&#19971;&#26376;', '&#20843;&#26376;', '&#20061;&#26376;', '&#21313;&#26376;', '&#21313;&#19968;&#26376;', '&#21313;&#20108;&#26376;'),
222
-            'months_long'   => array ('&#19968;&#26376;', '&#20108;&#26376;', '&#19977;&#26376;', '&#22235;&#26376;', '&#20116;&#26376;', '&#20845;&#26376;', '&#19971;&#26376;', '&#20843;&#26376;', '&#20061;&#26376;', '&#21313;&#26376;', '&#21313;&#19968;&#26376;', '&#21313;&#20108;&#26376;')
218
+        'tw'    => array(
219
+            'weekdays_short'=> array('&#36913;&#26085;', '&#36913;&#19968;', '&#36913;&#20108;', '&#36913;&#19977;', '&#36913;&#22235;', '&#36913;&#20116;', '&#36913;&#20845;'),
220
+            'weekdays_long' => array('&#26143;&#26399;&#26085;', '&#26143;&#26399;&#19968;', '&#26143;&#26399;&#20108;', '&#26143;&#26399;&#19977;', '&#26143;&#26399;&#22235;', '&#26143;&#26399;&#20116;', '&#26143;&#26399;&#20845;'),
221
+            'months_short'  => array('&#19968;&#26376;', '&#20108;&#26376;', '&#19977;&#26376;', '&#22235;&#26376;', '&#20116;&#26376;', '&#20845;&#26376;', '&#19971;&#26376;', '&#20843;&#26376;', '&#20061;&#26376;', '&#21313;&#26376;', '&#21313;&#19968;&#26376;', '&#21313;&#20108;&#26376;'),
222
+            'months_long'   => array('&#19968;&#26376;', '&#20108;&#26376;', '&#19977;&#26376;', '&#22235;&#26376;', '&#20116;&#26376;', '&#20845;&#26376;', '&#19971;&#26376;', '&#20843;&#26376;', '&#20061;&#26376;', '&#21313;&#26376;', '&#21313;&#19968;&#26376;', '&#21313;&#20108;&#26376;')
223 223
         ),
224
-        'pt-br' => array (
225
-            'weekdays_short'=> array ('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'S&aacute;b'),
226
-            'weekdays_long' => array ('Domingo', 'Segunda', 'Ter&ccedil;a', 'Quarta', 'Quinta', 'Sexta', 'S&aacute;bado'),
227
-            'months_short'  => array ('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'),
228
-            'months_long'   => array ('Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro')
224
+        'pt-br' => array(
225
+            'weekdays_short'=> array('Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'S&aacute;b'),
226
+            'weekdays_long' => array('Domingo', 'Segunda', 'Ter&ccedil;a', 'Quarta', 'Quinta', 'Sexta', 'S&aacute;bado'),
227
+            'months_short'  => array('Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'),
228
+            'months_long'   => array('Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro')
229 229
         )
230 230
     );
231 231
 
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
         if (is_array($options)) {
285 285
             foreach ($options as $name => $value) {
286 286
                 if ('language' == $name) {
287
-                    $this->_options['language'] = isset($this->_locale[$value])? $value: 'en';
287
+                    $this->_options['language'] = isset($this->_locale[$value]) ? $value : 'en';
288 288
                 } elseif (isset($this->_options[$name])) {
289 289
                     if (is_array($value) && is_array($this->_options[$name])) {
290 290
                         $this->_options[$name] = @array_merge($this->_options[$name], $value);
@@ -299,9 +299,9 @@  discard block
 block discarded – undo
299 299
     function _createElements()
300 300
     {
301 301
         $this->_separator = $this->_elements = array();
302
-        $separator =  '';
303
-        $locale    =& $this->_locale[$this->_options['language']];
304
-        $backslash =  false;
302
+        $separator = '';
303
+        $locale    = & $this->_locale[$this->_options['language']];
304
+        $backslash = false;
305 305
         // Modified by Ivan Tcholakov, 16-MAR-2010.
306 306
         for ($i = 0, $length = api_strlen($this->_options['format']); $i < $length; $i++) {
307 307
             $sign = api_substr($this->_options['format'], $i, 1);
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
                         break;
325 325
                     case 'M':
326 326
                         $options = $locale['months_short'];
327
-                        array_unshift($options , '');
327
+                        array_unshift($options, '');
328 328
                         unset($options[0]);
329 329
                         break;
330 330
                     case 'm':
@@ -332,23 +332,23 @@  discard block
 block discarded – undo
332 332
                         break;
333 333
                     case 'F':
334 334
                         $options = $locale['months_long'];
335
-                        array_unshift($options , '');
335
+                        array_unshift($options, '');
336 336
                         unset($options[0]);
337 337
                         break;
338 338
                     case 'Y':
339 339
                         $options = $this->_createOptionList(
340 340
                             $this->_options['minYear'],
341 341
                             $this->_options['maxYear'],
342
-                            $this->_options['minYear'] > $this->_options['maxYear']? -1: 1
342
+                            $this->_options['minYear'] > $this->_options['maxYear'] ? -1 : 1
343 343
                         );
344 344
                         break;
345 345
                     case 'y':
346 346
                         $options = $this->_createOptionList(
347 347
                             $this->_options['minYear'],
348 348
                             $this->_options['maxYear'],
349
-                            $this->_options['minYear'] > $this->_options['maxYear']? -1: 1
349
+                            $this->_options['minYear'] > $this->_options['maxYear'] ? -1 : 1
350 350
                         );
351
-                        array_walk($options, create_function('&$v,$k','$v = substr($v,-2);'));
351
+                        array_walk($options, create_function('&$v,$k', '$v = substr($v,-2);'));
352 352
                         break;
353 353
                     case 'h':
354 354
                         $options = $this->_createOptionList(1, 12);
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
                         $loadSelect = false;
381 381
                         break;
382 382
                     default:
383
-                        $separator .= (' ' == $sign? '&nbsp;': $sign);
383
+                        $separator .= (' ' == $sign ? '&nbsp;' : $sign);
384 384
                         $loadSelect = false;
385 385
                 }
386 386
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
                 }
407 407
             }
408 408
         }
409
-        $this->_wrap[1] = $separator . ($backslash? '\\': '');
409
+        $this->_wrap[1] = $separator.($backslash ? '\\' : '');
410 410
     }
411 411
 
412 412
     // }}}
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
     */
424 424
     function _createOptionList($start, $end, $step = 1)
425 425
     {
426
-        for ($i = $start, $options = array(); $start > $end? $i >= $end: $i <= $end; $i += $step) {
426
+        for ($i = $start, $options = array(); $start > $end ? $i >= $end : $i <= $end; $i += $step) {
427 427
             $options[$i] = sprintf('%02d', $i);
428 428
         }
429 429
         return $options;
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
             return $str;
445 445
         }
446 446
         $trimmed = ltrim($str, '0');
447
-        return strlen($trimmed)? $trimmed: '0';
447
+        return strlen($trimmed) ? $trimmed : '0';
448 448
     }
449 449
 
450 450
     // }}}
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
                 $value = strtotime($value);
460 460
             }
461 461
             // might be a unix epoch, then we fill all possible values
462
-            $arr = explode('-', date('w-j-n-Y-g-G-i-s-a-A-W', (int)$value));
462
+            $arr = explode('-', date('w-j-n-Y-g-G-i-s-a-A-W', (int) $value));
463 463
             $value = array(
464 464
                 'D' => $arr[0],
465 465
                 'l' => $arr[0],
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
         $renderer = new HTML_QuickForm_Renderer_Default();
494 494
         $renderer->setElementTemplate('{element}');
495 495
         parent::accept($renderer);
496
-        return $this->_wrap[0] . $renderer->toHtml() . $this->_wrap[1];
496
+        return $this->_wrap[0].$renderer->toHtml().$this->_wrap[1];
497 497
     }
498 498
 
499 499
     // }}}
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Renderer.php 1 patch
Indentation   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -35,121 +35,121 @@
 block discarded – undo
35 35
  */
36 36
 class HTML_QuickForm_Renderer
37 37
 {
38
-   /**
39
-    * Constructor
40
-    *
41
-    * @access public
42
-    */
38
+    /**
39
+     * Constructor
40
+     *
41
+     * @access public
42
+     */
43 43
     function HTML_QuickForm_Renderer()
44 44
     {
45 45
     } // end constructor
46 46
 
47
-   /**
48
-    * Called when visiting a form, before processing any form elements
49
-    *
50
-    * @param    HTML_QuickForm  a form being visited
51
-    * @access   public
52
-    * @return   void
53
-    * @abstract
54
-    */
47
+    /**
48
+     * Called when visiting a form, before processing any form elements
49
+     *
50
+     * @param    HTML_QuickForm  a form being visited
51
+     * @access   public
52
+     * @return   void
53
+     * @abstract
54
+     */
55 55
     function startForm(&$form)
56 56
     {
57 57
         return;
58 58
     } // end func startForm
59 59
 
60
-   /**
61
-    * Called when visiting a form, after processing all form elements
62
-    *
63
-    * @param    HTML_QuickForm  a form being visited
64
-    * @access   public
65
-    * @return   void
66
-    * @abstract
67
-    */
60
+    /**
61
+     * Called when visiting a form, after processing all form elements
62
+     *
63
+     * @param    HTML_QuickForm  a form being visited
64
+     * @access   public
65
+     * @return   void
66
+     * @abstract
67
+     */
68 68
     function finishForm(&$form)
69 69
     {
70 70
         return;
71 71
     } // end func finishForm
72 72
 
73
-   /**
74
-    * Called when visiting a header element
75
-    *
76
-    * @param    HTML_QuickForm_header   a header element being visited
77
-    * @access   public
78
-    * @return   void
79
-    * @abstract
80
-    */
73
+    /**
74
+     * Called when visiting a header element
75
+     *
76
+     * @param    HTML_QuickForm_header   a header element being visited
77
+     * @access   public
78
+     * @return   void
79
+     * @abstract
80
+     */
81 81
     function renderHeader(&$header)
82 82
     {
83 83
         return;
84 84
     } // end func renderHeader
85 85
 
86
-   /**
87
-    * Called when visiting an element
88
-    *
89
-    * @param    HTML_QuickForm_element  form element being visited
90
-    * @param    bool                    Whether an element is required
91
-    * @param    string                  An error message associated with an element
92
-    * @access   public
93
-    * @return   void
94
-    * @abstract
95
-    */
86
+    /**
87
+     * Called when visiting an element
88
+     *
89
+     * @param    HTML_QuickForm_element  form element being visited
90
+     * @param    bool                    Whether an element is required
91
+     * @param    string                  An error message associated with an element
92
+     * @access   public
93
+     * @return   void
94
+     * @abstract
95
+     */
96 96
     function renderElement(&$element, $required, $error)
97 97
     {
98 98
         return;
99 99
     } // end func renderElement
100 100
 
101
-   /**
102
-    * Called when visiting a hidden element
103
-    *
104
-    * @param    HTML_QuickForm_element  a hidden element being visited
105
-    * @access   public
106
-    * @return   void
107
-    * @abstract
108
-    */
101
+    /**
102
+     * Called when visiting a hidden element
103
+     *
104
+     * @param    HTML_QuickForm_element  a hidden element being visited
105
+     * @access   public
106
+     * @return   void
107
+     * @abstract
108
+     */
109 109
     function renderHidden(&$element)
110 110
     {
111 111
         return;
112 112
     } // end func renderHidden
113 113
 
114
-   /**
115
-    * Called when visiting a raw HTML/text pseudo-element
116
-    *
117
-    * Only implemented in Default renderer. Usage of 'html' elements is
118
-    * discouraged, templates should be used instead.
119
-    *
120
-    * @param    HTML_QuickForm_html     a 'raw html' element being visited
121
-    * @access   public
122
-    * @return   void
123
-    * @abstract
124
-    */
114
+    /**
115
+     * Called when visiting a raw HTML/text pseudo-element
116
+     *
117
+     * Only implemented in Default renderer. Usage of 'html' elements is
118
+     * discouraged, templates should be used instead.
119
+     *
120
+     * @param    HTML_QuickForm_html     a 'raw html' element being visited
121
+     * @access   public
122
+     * @return   void
123
+     * @abstract
124
+     */
125 125
     function renderHtml(&$data)
126 126
     {
127 127
         return;
128 128
     } // end func renderHtml
129 129
 
130
-   /**
131
-    * Called when visiting a group, before processing any group elements
132
-    *
133
-    * @param    HTML_QuickForm_group    A group being visited
134
-    * @param    bool                    Whether a group is required
135
-    * @param    string                  An error message associated with a group
136
-    * @access   public
137
-    * @return   void
138
-    * @abstract
139
-    */
130
+    /**
131
+     * Called when visiting a group, before processing any group elements
132
+     *
133
+     * @param    HTML_QuickForm_group    A group being visited
134
+     * @param    bool                    Whether a group is required
135
+     * @param    string                  An error message associated with a group
136
+     * @access   public
137
+     * @return   void
138
+     * @abstract
139
+     */
140 140
     function startGroup(&$group, $required, $error)
141 141
     {
142 142
         return;
143 143
     } // end func startGroup
144 144
 
145
-   /**
146
-    * Called when visiting a group, after processing all group elements
147
-    *
148
-    * @param    HTML_QuickForm_group    A group being visited
149
-    * @access   public
150
-    * @return   void
151
-    * @abstract
152
-    */
145
+    /**
146
+     * Called when visiting a group, after processing all group elements
147
+     *
148
+     * @param    HTML_QuickForm_group    A group being visited
149
+     * @access   public
150
+     * @return   void
151
+     * @abstract
152
+     */
153 153
     function finishGroup(&$group)
154 154
     {
155 155
         return;
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Action.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,17 +36,17 @@
 block discarded – undo
36 36
  */
37 37
 class HTML_QuickForm_Action
38 38
 {
39
-   /**
40
-    * Processes the request. This method should be overriden by child classes to
41
-    * provide the necessary logic.
42
-    *
43
-    * @access   public
44
-    * @param    HTML_QuickForm_Page    The current form-page
45
-    * @param    string                 Current action name, as one Action object
46
-    *                                  can serve multiple actions
47
-    * @throws   PEAR_Error
48
-    * @abstract
49
-    */
39
+    /**
40
+     * Processes the request. This method should be overriden by child classes to
41
+     * provide the necessary logic.
42
+     *
43
+     * @access   public
44
+     * @param    HTML_QuickForm_Page    The current form-page
45
+     * @param    string                 Current action name, as one Action object
46
+     *                                  can serve multiple actions
47
+     * @throws   PEAR_Error
48
+     * @abstract
49
+     */
50 50
     function perform(&$page, $actionName)
51 51
     {
52 52
     }
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/image.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      * @access    public
48 48
      * @return    void
49 49
      */
50
-    function HTML_QuickForm_image($elementName=null, $src='', $attributes=null)
50
+    function HTML_QuickForm_image($elementName = null, $src = '', $attributes = null)
51 51
     {
52 52
         parent::__construct($elementName, null, $attributes);
53 53
         $this->setType('image');
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * Freeze the element so that only its value is returned
61 61
      *
62 62
      * @access    public
63
-     * @return    void
63
+     * @return    boolean
64 64
      */
65 65
     function freeze()
66 66
     {
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
238 238
         if ($this->_flagFrozen) {
239 239
             return $this->getFrozenHtml();
240 240
         } else {
241
-            return '<input ' . $this->_getAttrString($this->_attributes) . ' />';
241
+            return '<input '.$this->_getAttrString($this->_attributes).' />';
242 242
         }
243 243
     }
244 244
 }
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Page.php 2 patches
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -37,59 +37,59 @@  discard block
 block discarded – undo
37 37
  */
38 38
 class HTML_QuickForm_Page extends HTML_QuickForm
39 39
 {
40
-   /**
41
-    * Contains the mapping of actions to corresponding HTML_QuickForm_Action objects
42
-    * @var array
43
-    */
40
+    /**
41
+     * Contains the mapping of actions to corresponding HTML_QuickForm_Action objects
42
+     * @var array
43
+     */
44 44
     var $_actions = array();
45 45
 
46
-   /**
47
-    * Contains a reference to a Controller object containing this page
48
-    * @var      HTML_QuickForm_Controller
49
-    * @access   public
50
-    */
46
+    /**
47
+     * Contains a reference to a Controller object containing this page
48
+     * @var      HTML_QuickForm_Controller
49
+     * @access   public
50
+     */
51 51
     var $controller = null;
52 52
 
53
-   /**
54
-    * Should be set to true on first call to buildForm()
55
-    * @var bool
56
-    */
53
+    /**
54
+     * Should be set to true on first call to buildForm()
55
+     * @var bool
56
+     */
57 57
     var $_formBuilt = false;
58 58
 
59
-   /**
60
-    * Class constructor
61
-    *
62
-    * @access public
63
-    */
59
+    /**
60
+     * Class constructor
61
+     *
62
+     * @access public
63
+     */
64 64
     function HTML_QuickForm_Page($formName, $method = 'post', $target = '', $attributes = null)
65 65
     {
66 66
         $this->HTML_QuickForm($formName, $method, '', $target, $attributes);
67 67
     }
68 68
 
69 69
 
70
-   /**
71
-    * Registers a handler for a specific action.
72
-    *
73
-    * @access public
74
-    * @param  string                name of the action
75
-    * @param  HTML_QuickForm_Action the handler for the action
76
-    */
70
+    /**
71
+     * Registers a handler for a specific action.
72
+     *
73
+     * @access public
74
+     * @param  string                name of the action
75
+     * @param  HTML_QuickForm_Action the handler for the action
76
+     */
77 77
     function addAction($actionName, &$action)
78 78
     {
79 79
         $this->_actions[$actionName] =& $action;
80 80
     }
81 81
 
82 82
 
83
-   /**
84
-    * Handles an action.
85
-    *
86
-    * If an Action object was not registered here, controller's handle()
87
-    * method will be called.
88
-    *
89
-    * @access public
90
-    * @param  string Name of the action
91
-    * @throws PEAR_Error
92
-    */
83
+    /**
84
+     * Handles an action.
85
+     *
86
+     * If an Action object was not registered here, controller's handle()
87
+     * method will be called.
88
+     *
89
+     * @access public
90
+     * @param  string Name of the action
91
+     * @throws PEAR_Error
92
+     */
93 93
     function handle($actionName)
94 94
     {
95 95
         if (isset($this->_actions[$actionName])) {
@@ -100,27 +100,27 @@  discard block
 block discarded – undo
100 100
     }
101 101
 
102 102
 
103
-   /**
104
-    * Returns a name for a submit button that will invoke a specific action.
105
-    *
106
-    * @access public
107
-    * @param  string  Name of the action
108
-    * @return string  "name" attribute for a submit button
109
-    */
103
+    /**
104
+     * Returns a name for a submit button that will invoke a specific action.
105
+     *
106
+     * @access public
107
+     * @param  string  Name of the action
108
+     * @return string  "name" attribute for a submit button
109
+     */
110 110
     function getButtonName($actionName)
111 111
     {
112 112
         return '_qf_' . $this->getAttribute('id') . '_' . $actionName;
113 113
     }
114 114
 
115 115
 
116
-   /**
117
-    * Loads the submit values from the array.
118
-    *
119
-    * The method is NOT intended for general usage.
120
-    *
121
-    * @param array  'submit' values
122
-    * @access public
123
-    */
116
+    /**
117
+     * Loads the submit values from the array.
118
+     *
119
+     * The method is NOT intended for general usage.
120
+     *
121
+     * @param array  'submit' values
122
+     * @access public
123
+     */
124 124
     function loadValues($values)
125 125
     {
126 126
         $this->_flagSubmitted = true;
@@ -131,46 +131,46 @@  discard block
 block discarded – undo
131 131
     }
132 132
 
133 133
 
134
-   /**
135
-    * Builds a form.
136
-    *
137
-    * You should override this method when you subclass HTML_QuickForm_Page,
138
-    * it should contain all the necessary addElement(), applyFilter(), addRule()
139
-    * and possibly setDefaults() and setConstants() calls. The method will be
140
-    * called on demand, so please be sure to set $_formBuilt property to true to
141
-    * assure that the method works only once.
142
-    *
143
-    * @access public
144
-    * @abstract
145
-    */
134
+    /**
135
+     * Builds a form.
136
+     *
137
+     * You should override this method when you subclass HTML_QuickForm_Page,
138
+     * it should contain all the necessary addElement(), applyFilter(), addRule()
139
+     * and possibly setDefaults() and setConstants() calls. The method will be
140
+     * called on demand, so please be sure to set $_formBuilt property to true to
141
+     * assure that the method works only once.
142
+     *
143
+     * @access public
144
+     * @abstract
145
+     */
146 146
     function buildForm()
147 147
     {
148 148
         $this->_formBuilt = true;
149 149
     }
150 150
 
151 151
 
152
-   /**
153
-    * Checks whether the form was already built.
154
-    *
155
-    * @access public
156
-    * @return bool
157
-    */
152
+    /**
153
+     * Checks whether the form was already built.
154
+     *
155
+     * @access public
156
+     * @return bool
157
+     */
158 158
     function isFormBuilt()
159 159
     {
160 160
         return $this->_formBuilt;
161 161
     }
162 162
 
163 163
 
164
-   /**
165
-    * Sets the default action invoked on page-form submit
166
-    *
167
-    * This is necessary as the user may just press Enter instead of
168
-    * clicking one of the named submit buttons and then no action name will
169
-    * be passed to the script.
170
-    *
171
-    * @access public
172
-    * @param  string    default action name
173
-    */
164
+    /**
165
+     * Sets the default action invoked on page-form submit
166
+     *
167
+     * This is necessary as the user may just press Enter instead of
168
+     * clicking one of the named submit buttons and then no action name will
169
+     * be passed to the script.
170
+     *
171
+     * @access public
172
+     * @param  string    default action name
173
+     */
174 174
     function setDefaultAction($actionName)
175 175
     {
176 176
         if ($this->elementExists('_qf_default')) {
@@ -182,12 +182,12 @@  discard block
 block discarded – undo
182 182
     }
183 183
 
184 184
 
185
-   /**
186
-    * Returns 'safe' elements' values
187
-    *
188
-    * @param   mixed   Array/string of element names, whose values we want. If not set then return all elements.
189
-    * @param   bool    Whether to remove internal (_qf_...) values from the resultant array
190
-    */
185
+    /**
186
+     * Returns 'safe' elements' values
187
+     *
188
+     * @param   mixed   Array/string of element names, whose values we want. If not set then return all elements.
189
+     * @param   bool    Whether to remove internal (_qf_...) values from the resultant array
190
+     */
191 191
     function exportValues($elementList = null, $filterInternal = false)
192 192
     {
193 193
         $values = parent::exportValues($elementList);
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     */
77 77
     function addAction($actionName, &$action)
78 78
     {
79
-        $this->_actions[$actionName] =& $action;
79
+        $this->_actions[$actionName] = & $action;
80 80
     }
81 81
 
82 82
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     */
110 110
     function getButtonName($actionName)
111 111
     {
112
-        return '_qf_' . $this->getAttribute('id') . '_' . $actionName;
112
+        return '_qf_'.$this->getAttribute('id').'_'.$actionName;
113 113
     }
114 114
 
115 115
 
@@ -174,10 +174,10 @@  discard block
 block discarded – undo
174 174
     function setDefaultAction($actionName)
175 175
     {
176 176
         if ($this->elementExists('_qf_default')) {
177
-            $element =& $this->getElement('_qf_default');
178
-            $element->setValue($this->getAttribute('id') . ':' . $actionName);
177
+            $element = & $this->getElement('_qf_default');
178
+            $element->setValue($this->getAttribute('id').':'.$actionName);
179 179
         } else {
180
-            $this->addElement('hidden', '_qf_default', $this->getAttribute('id') . ':' . $actionName);
180
+            $this->addElement('hidden', '_qf_default', $this->getAttribute('id').':'.$actionName);
181 181
         }
182 182
     }
183 183
 
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/header.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 {
35 35
     // {{{ constructor
36 36
 
37
-   /**
38
-    * Class constructor
39
-    *
40
-    * @param string $elementName    Header name
41
-    * @param string $text           Header text
42
-    * @access public
43
-    * @return void
44
-    */
37
+    /**
38
+     * Class constructor
39
+     *
40
+     * @param string $elementName    Header name
41
+     * @param string $text           Header text
42
+     * @access public
43
+     * @return void
44
+     */
45 45
     function HTML_QuickForm_header($elementName = null, $text = null)
46 46
     {
47 47
         if (!empty($elementName)) {
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
     // }}}
55 55
     // {{{ accept()
56 56
 
57
-   /**
58
-    * Accepts a renderer
59
-    *
60
-    * @param HTML_QuickForm_Renderer    renderer object
61
-    * @access public
62
-    * @return void
63
-    */
57
+    /**
58
+     * Accepts a renderer
59
+     *
60
+     * @param HTML_QuickForm_Renderer    renderer object
61
+     * @access public
62
+     * @return void
63
+     */
64 64
     function accept(&$renderer, $required=false, $error=null)
65 65
     {
66 66
         $renderer->renderHeader($this);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     * @access public
62 62
     * @return void
63 63
     */
64
-    function accept(&$renderer, $required=false, $error=null)
64
+    function accept(&$renderer, $required = false, $error = null)
65 65
     {
66 66
         $renderer->renderHeader($this);
67 67
     } // end func accept
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/link.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * @return    void
61 61
      * @throws
62 62
      */
63
-    function HTML_QuickForm_link($elementName=null, $elementLabel=null, $href=null, $text=null, $attributes=null)
63
+    function HTML_QuickForm_link($elementName = null, $elementLabel = null, $href = null, $text = null, $attributes = null)
64 64
     {
65 65
         parent::__construct($elementName, $elementLabel, $attributes);
66 66
         $this->_persistantFreeze = false;
Please login to merge, or discard this patch.