Completed
Push — 1.10.x ( 8f997c...918380 )
by Yannick
259:37 queued 220:06
created
main/inc/lib/pear/HTML/QuickForm/Renderer/ITStatic.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     function HTML_QuickForm_Renderer_ITStatic(&$tpl)
111 111
     {
112 112
         $this->HTML_QuickForm_Renderer();
113
-        $this->_tpl =& $tpl;
113
+        $this->_tpl = & $tpl;
114 114
     } // end constructor
115 115
 
116 116
    /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         }
155 155
         // add hidden elements, if collected
156 156
         if (!empty($this->_hidden)) {
157
-            $this->_tpl->setVariable($this->_formName . '_hidden', $this->_hidden);
157
+            $this->_tpl->setVariable($this->_formName.'_hidden', $this->_hidden);
158 158
         }
159 159
         // assign form attributes
160 160
         $this->_tpl->setVariable($this->_formName.'_attributes', $form->getAttributes(true));
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                 $this->_elementIndex++;
204 204
             }
205 205
             if ($varName != $this->_inGroup) {
206
-                $varName .= '_' == substr($varName, -1)? '': '_';
206
+                $varName .= '_' == substr($varName, -1) ? '' : '_';
207 207
                 // element name is of type : group[name]
208 208
                 $label = $element->getLabel();
209 209
                 $html = $element->toHtml();
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
     */
267 267
     function renderHidden(&$element)
268 268
     {
269
-        if ($this->_tpl->placeholderExists($this->_formName . '_hidden')) {
269
+        if ($this->_tpl->placeholderExists($this->_formName.'_hidden')) {
270 270
             $this->_hidden .= $element->toHtml();
271 271
         } else {
272 272
             $name = $element->getName();
@@ -307,14 +307,14 @@  discard block
 block discarded – undo
307 307
             // <!-- BEGIN form_group_error -->{form_group_error}<!-- END form_group_error -->
308 308
             if (!empty($error)) {
309 309
                 if ($this->_tpl->placeholderExists($varName.'_error')) {
310
-                    if ($this->_tpl->blockExists($this->_formName . '_error_block')) {
311
-                        $this->_tpl->setVariable($this->_formName . '_error', $error);
312
-                        $error = $this->_getTplBlock($this->_formName . '_error_block');
310
+                    if ($this->_tpl->blockExists($this->_formName.'_error_block')) {
311
+                        $this->_tpl->setVariable($this->_formName.'_error', $error);
312
+                        $error = $this->_getTplBlock($this->_formName.'_error_block');
313 313
                     } elseif (strpos($this->_error, '{html}') !== false || strpos($this->_error, '{label}') !== false) {
314 314
                         $error = str_replace('{error}', $error, $this->_error);
315 315
                     }
316 316
                 }
317
-                $this->_tpl->setVariable($varName . '_error', $error);
317
+                $this->_tpl->setVariable($varName.'_error', $error);
318 318
                 array_pop($this->_errors);
319 319
             }
320 320
         }
@@ -401,17 +401,17 @@  discard block
 block discarded – undo
401 401
     */
402 402
     function _renderRequired(&$label, &$html)
403 403
     {
404
-        if ($this->_tpl->blockExists($tplBlock = $this->_formName . '_required_block')) {
405
-            if (!empty($label) && $this->_tpl->placeholderExists($this->_formName . '_label', $tplBlock)) {
406
-                $this->_tpl->setVariable($this->_formName . '_label', is_array($label)? $label[0]: $label);
404
+        if ($this->_tpl->blockExists($tplBlock = $this->_formName.'_required_block')) {
405
+            if (!empty($label) && $this->_tpl->placeholderExists($this->_formName.'_label', $tplBlock)) {
406
+                $this->_tpl->setVariable($this->_formName.'_label', is_array($label) ? $label[0] : $label);
407 407
                 if (is_array($label)) {
408 408
                     $label[0] = $this->_getTplBlock($tplBlock);
409 409
                 } else {
410 410
                     $label    = $this->_getTplBlock($tplBlock);
411 411
                 }
412 412
             }
413
-            if (!empty($html) && $this->_tpl->placeholderExists($this->_formName . '_html', $tplBlock)) {
414
-                $this->_tpl->setVariable($this->_formName . '_html', $html);
413
+            if (!empty($html) && $this->_tpl->placeholderExists($this->_formName.'_html', $tplBlock)) {
414
+                $this->_tpl->setVariable($this->_formName.'_html', $html);
415 415
                 $html = $this->_getTplBlock($tplBlock);
416 416
             }
417 417
         } else {
@@ -444,21 +444,21 @@  discard block
 block discarded – undo
444 444
     */
445 445
     function _renderError(&$label, &$html, $error)
446 446
     {
447
-        if ($this->_tpl->blockExists($tplBlock = $this->_formName . '_error_block')) {
448
-            $this->_tpl->setVariable($this->_formName . '_error', $error);
449
-            if (!empty($label) && $this->_tpl->placeholderExists($this->_formName . '_label', $tplBlock)) {
450
-                $this->_tpl->setVariable($this->_formName . '_label', is_array($label)? $label[0]: $label);
447
+        if ($this->_tpl->blockExists($tplBlock = $this->_formName.'_error_block')) {
448
+            $this->_tpl->setVariable($this->_formName.'_error', $error);
449
+            if (!empty($label) && $this->_tpl->placeholderExists($this->_formName.'_label', $tplBlock)) {
450
+                $this->_tpl->setVariable($this->_formName.'_label', is_array($label) ? $label[0] : $label);
451 451
                 if (is_array($label)) {
452 452
                     $label[0] = $this->_getTplBlock($tplBlock);
453 453
                 } else {
454 454
                     $label    = $this->_getTplBlock($tplBlock);
455 455
                 }
456
-            } elseif (!empty($html) && $this->_tpl->placeholderExists($this->_formName . '_html', $tplBlock)) {
457
-                $this->_tpl->setVariable($this->_formName . '_html', $html);
456
+            } elseif (!empty($html) && $this->_tpl->placeholderExists($this->_formName.'_html', $tplBlock)) {
457
+                $this->_tpl->setVariable($this->_formName.'_html', $html);
458 458
                 $html = $this->_getTplBlock($tplBlock);
459 459
             }
460 460
             // clean up after ourselves
461
-            $this->_tpl->setVariable($this->_formName . '_error', null);
461
+            $this->_tpl->setVariable($this->_formName.'_error', null);
462 462
         } elseif (!empty($label) && strpos($this->_error, '{label}') !== false) {
463 463
             if (is_array($label)) {
464 464
                 $label[0] = str_replace(array('{label}', '{error}'), array($label[0], $error), $this->_error);
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Renderer/ObjectFlexy.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -103,12 +103,12 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $this->HTML_QuickForm_Renderer_Object(true);
105 105
         $this->_obj = new QuickformFlexyForm();
106
-        $this->_flexy =& $flexy;
106
+        $this->_flexy = & $flexy;
107 107
     } // end constructor
108 108
 
109 109
     function renderHeader(&$header)
110 110
     {
111
-        if($name = $header->getName()) {
111
+        if ($name = $header->getName()) {
112 112
             $this->_obj->header->$name = $header->toHtml();
113 113
         } else {
114 114
             $this->_obj->header[$this->_sectionCount] = $header->toHtml();
@@ -135,15 +135,15 @@  discard block
 block discarded – undo
135 135
     function _elementToObject(&$element, $required, $error)
136 136
     {
137 137
         $ret = parent::_elementToObject($element, $required, $error);
138
-        if($ret->type == 'group') {
138
+        if ($ret->type == 'group') {
139 139
             $ret->html = $element->toHtml();
140 140
             unset($ret->elements);
141 141
         }
142
-        if(!empty($this->_label)) {
142
+        if (!empty($this->_label)) {
143 143
             $this->_renderLabel($ret);
144 144
         }
145 145
 
146
-        if(!empty($this->_html)) {
146
+        if (!empty($this->_html)) {
147 147
             $this->_renderHtml($ret);
148 148
             $ret->error = $error;
149 149
         }
@@ -151,12 +151,12 @@  discard block
 block discarded – undo
151 151
         // Create an element key from the name
152 152
         if (false !== ($pos = strpos($ret->name, '[')) || is_object($this->_currentGroup)) {
153 153
             if (!$pos) {
154
-                $keys = '->{\'' . str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->name) . '\'}';
154
+                $keys = '->{\''.str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->name).'\'}';
155 155
             } else {
156
-                $keys = '->{\'' . str_replace(
156
+                $keys = '->{\''.str_replace(
157 157
                             array('\\', '\'', '[', ']'), array('\\\\', '\\\'', '\'}->{\'', ''),
158 158
                             $ret->name
159
-                        ) . '\'}';
159
+                        ).'\'}';
160 160
             }
161 161
             // special handling for elements in native groups
162 162
             if (is_object($this->_currentGroup)) {
@@ -171,13 +171,13 @@  discard block
 block discarded – undo
171 171
                 }
172 172
             }
173 173
         } elseif (0 == strlen($ret->name)) {
174
-            $keys = '->{\'element_' . $this->_elementIdx . '\'}';
174
+            $keys = '->{\'element_'.$this->_elementIdx.'\'}';
175 175
         } else {
176
-            $keys = '->{\'' . str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->name) . '\'}';
176
+            $keys = '->{\''.str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->name).'\'}';
177 177
         }
178 178
         // for radios: add extra key from value
179 179
         if ('radio' == $ret->type && '[]' != substr($keys, -2)) {
180
-            $keys .= '->{\'' . str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->value) . '\'}';
180
+            $keys .= '->{\''.str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret->value).'\'}';
181 181
         }
182 182
         $ret->keys = $keys;
183 183
         $this->_elementIdx++;
@@ -197,10 +197,10 @@  discard block
 block discarded – undo
197 197
         if ($elObj) {
198 198
             $keys = $elObj->keys;
199 199
             unset($elObj->keys);
200
-            if(is_object($this->_currentGroup) && ('group' != $elObj->type)) {
201
-                $code = '$this->_currentGroup' . $keys . ' = $elObj;';
200
+            if (is_object($this->_currentGroup) && ('group' != $elObj->type)) {
201
+                $code = '$this->_currentGroup'.$keys.' = $elObj;';
202 202
             } else {
203
-                $code = '$this->_obj' . $keys . ' = $elObj;';
203
+                $code = '$this->_obj'.$keys.' = $elObj;';
204 204
             }
205 205
             eval($code);
206 206
         }
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Renderer/QuickHtml.php 1 patch
Spacing   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
         foreach (array_keys($this->renderedElements) as $key) {
79 79
             if (!$this->renderedElements[$key]['rendered']) {
80 80
                 $this->renderedElements[$key]['rendered'] = true;
81
-                $data .= $this->renderedElements[$key]['html'] . "\n";
81
+                $data .= $this->renderedElements[$key]['html']."\n";
82 82
             }
83 83
         }
84 84
 
85 85
         // Insert the extra data and form elements at the end of the form
86
-        $this->_html = str_replace('</form>', $data . "\n</form>", $this->_html);
86
+        $this->_html = str_replace('</form>', $data."\n</form>", $this->_html);
87 87
         return $this->_html;
88 88
     } // end func toHtml
89 89
 
@@ -117,13 +117,11 @@  discard block
 block discarded – undo
117 117
         }
118 118
 
119 119
         if (is_null($elementKey)) {
120
-            $msg = is_null($elementValue) ? "Element $elementName does not exist." :
121
-                "Element $elementName with value of $elementValue does not exist.";
120
+            $msg = is_null($elementValue) ? "Element $elementName does not exist." : "Element $elementName with value of $elementValue does not exist.";
122 121
             return PEAR::raiseError(null, QUICKFORM_UNREGISTERED_ELEMENT, null, E_USER_WARNING, $msg, 'HTML_QuickForm_Error', true);
123 122
         } else {
124 123
             if ($this->renderedElements[$elementKey]['rendered']) {
125
-                $msg = is_null($elementValue) ? "Element $elementName has already been rendered." :
126
-                    "Element $elementName with value of $elementValue has already been rendered.";
124
+                $msg = is_null($elementValue) ? "Element $elementName has already been rendered." : "Element $elementName with value of $elementValue has already been rendered.";
127 125
                 return PEAR::raiseError(null, QUICKFORM_ERROR, null, E_USER_WARNING, $msg, 'HTML_QuickForm_Error', true);
128 126
             } else {
129 127
                 $this->renderedElements[$elementKey]['rendered'] = true;
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Renderer/Default.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     {
183 183
         // _hiddenHtml is cleared in finishForm(), so this only matters when
184 184
         // finishForm() was not called (e.g. group::toHtml(), bug #3511)
185
-        return $this->_hiddenHtml . $this->_html;
185
+        return $this->_hiddenHtml.$this->_html;
186 186
     } // end func toHtml
187 187
 
188 188
    /**
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         $this->_html = str_replace('{content}', $this->_html, $html);
245 245
         // add a validation script
246 246
         if ('' != ($script = $form->getValidationScript())) {
247
-            $this->_html = $script . "\n" . $this->_html;
247
+            $this->_html = $script."\n".$this->_html;
248 248
         }
249 249
     } // end func finishForm
250 250
 
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
             $nameLabel = $label;
290 290
         }
291 291
 
292
-        $labelFor = !empty($labelForId) ? 'for="' . $labelForId . '"' : 'for="' . $element->getName() . '"';
292
+        $labelFor = !empty($labelForId) ? 'for="'.$labelForId.'"' : 'for="'.$element->getName().'"';
293 293
 
294 294
         if (isset($this->_templates[$name])) {
295 295
             // Custom template
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
         }
331 331
         if (is_array($label)) {
332 332
             foreach ($label as $key => $text) {
333
-                $key  = is_int($key)? $key + 2: $key;
333
+                $key  = is_int($key) ? $key + 2 : $key;
334 334
                 $html = str_replace("{label_{$key}}", $text, $html);
335 335
                 $html = str_replace("<!-- BEGIN label_{$key} -->", '', $html);
336 336
                 $html = str_replace("<!-- END label_{$key} -->", '', $html);
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
     */
390 390
     function renderHidden(&$element)
391 391
     {
392
-        $this->_hiddenHtml .= $element->toHtml() . "\n";
392
+        $this->_hiddenHtml .= $element->toHtml()."\n";
393 393
     } // end func renderHidden
394 394
 
395 395
    /**
@@ -417,8 +417,8 @@  discard block
 block discarded – undo
417 417
     {
418 418
         $name = $group->getName();
419 419
         $this->_groupTemplate        = $this->_prepareTemplate($group, $required, $error);
420
-        $this->_groupElementTemplate = empty($this->_groupTemplates[$name])? '': $this->_groupTemplates[$name];
421
-        $this->_groupWrap            = empty($this->_groupWraps[$name])? '': $this->_groupWraps[$name];
420
+        $this->_groupElementTemplate = empty($this->_groupTemplates[$name]) ? '' : $this->_groupTemplates[$name];
421
+        $this->_groupWrap            = empty($this->_groupWraps[$name]) ? '' : $this->_groupWraps[$name];
422 422
         $this->_groupElements        = array();
423 423
         $this->_inGroup              = true;
424 424
     } // end func startGroup
@@ -437,13 +437,13 @@  discard block
 block discarded – undo
437 437
             $count = count($separator);
438 438
             $html  = '';
439 439
             for ($i = 0; $i < count($this->_groupElements); $i++) {
440
-                $html .= (0 == $i? '': $separator[($i - 1) % $count]) . $this->_groupElements[$i];
440
+                $html .= (0 == $i ? '' : $separator[($i - 1) % $count]).$this->_groupElements[$i];
441 441
             }
442 442
         } else {
443 443
             if (is_null($separator)) {
444 444
                 $separator = '&nbsp;';
445 445
             }
446
-            $html = implode((string)$separator, $this->_groupElements);
446
+            $html = implode((string) $separator, $this->_groupElements);
447 447
         }
448 448
         if (!empty($this->_groupWrap)) {
449 449
             $html = str_replace('{content}', $html, $this->_groupWrap);
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Renderer/Array.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     function renderHidden(&$element)
225 225
     {
226 226
         if ($this->_collectHidden) {
227
-            $this->_ary['hidden'] .= $element->toHtml() . "\n";
227
+            $this->_ary['hidden'] .= $element->toHtml()."\n";
228 228
         } else {
229 229
             $this->renderElement($element, false, null);
230 230
         }
@@ -269,12 +269,12 @@  discard block
 block discarded – undo
269 269
         // render label(s)
270 270
         $labels = $element->getLabel();
271 271
         if (is_array($labels) && $this->_staticLabels) {
272
-            foreach($labels as $key => $label) {
273
-                $key = is_int($key)? $key + 1: $key;
272
+            foreach ($labels as $key => $label) {
273
+                $key = is_int($key) ? $key + 1 : $key;
274 274
                 if (1 === $key) {
275 275
                     $ret['label'] = $label;
276 276
                 } else {
277
-                    $ret['label_' . $key] = $label;
277
+                    $ret['label_'.$key] = $label;
278 278
                 }
279 279
             }
280 280
         } else {
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Renderer/ITDynamic.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     function HTML_QuickForm_Renderer_ITDynamic(&$tpl)
96 96
     {
97 97
         $this->HTML_QuickForm_Renderer();
98
-        $this->_tpl =& $tpl;
98
+        $this->_tpl = & $tpl;
99 99
         $this->_tpl->setCurrentBlock('qf_main_loop');
100 100
     }
101 101
 
@@ -141,14 +141,14 @@  discard block
 block discarded – undo
141 141
                 if (is_array($this->_groupSeparator)) {
142 142
                     $this->_tpl->setVariable('qf_separator', $this->_groupSeparator[($this->_groupElementIdx - 1) % count($this->_groupSeparator)]);
143 143
                 } else {
144
-                    $this->_tpl->setVariable('qf_separator', (string)$this->_groupSeparator);
144
+                    $this->_tpl->setVariable('qf_separator', (string) $this->_groupSeparator);
145 145
                 }
146 146
             }
147 147
             $this->_groupElementIdx++;
148 148
 
149
-        } elseif(!empty($error)) {
149
+        } elseif (!empty($error)) {
150 150
             // show the error message or keep it for later use
151
-            if ($this->_tpl->blockExists($blockName . '_error')) {
151
+            if ($this->_tpl->blockExists($blockName.'_error')) {
152 152
                 $this->_tpl->setVariable('qf_error', $error);
153 153
             } else {
154 154
                 $this->_errors[] = $error;
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
         // show an '*' near the required element
158 158
         if ($required) {
159 159
             $this->_showRequired = true;
160
-            if ($this->_tpl->blockExists($blockName . '_required')) {
161
-                $this->_tpl->touchBlock($blockName . '_required');
160
+            if ($this->_tpl->blockExists($blockName.'_required')) {
161
+                $this->_tpl->touchBlock($blockName.'_required');
162 162
             }
163 163
         }
164 164
         // Prepare multiple labels
@@ -175,10 +175,10 @@  discard block
 block discarded – undo
175 175
         }
176 176
         // render extra labels, if any
177 177
         if (is_array($labels)) {
178
-            foreach($labels as $key => $label) {
179
-                $key = is_int($key)? $key + 2: $key;
180
-                if ($this->_tpl->blockExists($blockName . '_label_' . $key)) {
181
-                    $this->_tpl->setVariable('qf_label_' . $key, $label);
178
+            foreach ($labels as $key => $label) {
179
+                $key = is_int($key) ? $key + 2 : $key;
180
+                if ($this->_tpl->blockExists($blockName.'_label_'.$key)) {
181
+                    $this->_tpl->setVariable('qf_label_'.$key, $label);
182 182
                 }
183 183
             }
184 184
         }
@@ -197,19 +197,19 @@  discard block
 block discarded – undo
197 197
     function startGroup(&$group, $required, $error)
198 198
     {
199 199
         $blockName = $this->_matchBlock($group);
200
-        $this->_tpl->setCurrentBlock($blockName . '_loop');
200
+        $this->_tpl->setCurrentBlock($blockName.'_loop');
201 201
         $this->_groupElementIdx = 0;
202
-        $this->_groupSeparator  = is_null($group->_separator)? '&nbsp;': $group->_separator;
202
+        $this->_groupSeparator  = is_null($group->_separator) ? '&nbsp;' : $group->_separator;
203 203
         // show an '*' near the required element
204 204
         if ($required) {
205 205
             $this->_showRequired = true;
206
-            if ($this->_tpl->blockExists($blockName . '_required')) {
207
-                $this->_tpl->touchBlock($blockName . '_required');
206
+            if ($this->_tpl->blockExists($blockName.'_required')) {
207
+                $this->_tpl->touchBlock($blockName.'_required');
208 208
             }
209 209
         }
210 210
         // show the error message or keep it for later use
211 211
         if (!empty($error)) {
212
-            if ($this->_tpl->blockExists($blockName . '_error')) {
212
+            if ($this->_tpl->blockExists($blockName.'_error')) {
213 213
                 $this->_tpl->setVariable('qf_error', $error);
214 214
             } else {
215 215
                 $this->_errors[] = $error;
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         $name = $element->getName();
244 244
         $type = $element->getType();
245 245
         if (isset($this->_elementBlocks[$name]) && $this->_tpl->blockExists($this->_elementBlocks[$name])) {
246
-            if (('group' == $type) || ($this->_elementBlocks[$name] . '_loop' != $this->_tpl->currentBlock)) {
246
+            if (('group' == $type) || ($this->_elementBlocks[$name].'_loop' != $this->_tpl->currentBlock)) {
247 247
                 return $this->_elementBlocks[$name];
248 248
             }
249 249
         }
@@ -252,12 +252,12 @@  discard block
 block discarded – undo
252 252
         } else {
253 253
             $prefix = 'qf';
254 254
         }
255
-        if ($this->_tpl->blockExists($prefix . '_' . $type)) {
256
-            return $prefix . '_' . $type;
257
-        } elseif ($this->_tpl->blockExists($prefix . '_' . $name)) {
258
-            return $prefix . '_' . $name;
255
+        if ($this->_tpl->blockExists($prefix.'_'.$type)) {
256
+            return $prefix.'_'.$type;
257
+        } elseif ($this->_tpl->blockExists($prefix.'_'.$name)) {
258
+            return $prefix.'_'.$name;
259 259
         } else {
260
-            return $prefix . '_element';
260
+            return $prefix.'_element';
261 261
         }
262 262
     }
263 263
 
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Renderer/ArraySmarty.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     function HTML_QuickForm_Renderer_ArraySmarty(&$tpl, $staticLabels = false, $collectHidden = true)
135 135
     {
136 136
         $this->HTML_QuickForm_Renderer_Array($collectHidden, $staticLabels);
137
-        $this->_tpl =& $tpl;
137
+        $this->_tpl = & $tpl;
138 138
     } // end constructor
139 139
 
140 140
    /**
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             // we don't need the elements, see the array structure
189 189
             unset($ret['elements']);
190 190
         }
191
-        if (($required || $error) && !empty($this->_required)){
191
+        if (($required || $error) && !empty($this->_required)) {
192 192
             $this->_renderRequired($ret['label'], $ret['html'], $required, $error);
193 193
         }
194 194
         if ($error && !empty($this->_error)) {
@@ -206,13 +206,13 @@  discard block
 block discarded – undo
206 206
             if (isset($matches[1])) {
207 207
                 $sKeysSub = substr_replace($ret['name'], '', 0, strlen($matches[1]));
208 208
                 $sKeysSub = str_replace(
209
-                    array('\\',   '\'',   '['  ,   ']', '[\'\']'),
210
-                    array('\\\\', '\\\'', '[\'', '\']', '[]'    ),
209
+                    array('\\', '\'', '[', ']', '[\'\']'),
210
+                    array('\\\\', '\\\'', '[\'', '\']', '[]'),
211 211
                     $sKeysSub
212 212
                 );
213
-                $sKeys = '[\'' . str_replace(array('\\', '\''), array('\\\\', '\\\''), $matches[1]) . '\']' . $sKeysSub;
213
+                $sKeys = '[\''.str_replace(array('\\', '\''), array('\\\\', '\\\''), $matches[1]).'\']'.$sKeysSub;
214 214
             } else {
215
-                $sKeys = '[\'' . str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret['name']) . '\']';
215
+                $sKeys = '[\''.str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret['name']).'\']';
216 216
             }
217 217
             // special handling for elements in native groups
218 218
             if ($this->_currentGroup) {
@@ -228,14 +228,14 @@  discard block
 block discarded – undo
228 228
             }
229 229
         // element without a name
230 230
         } elseif ($ret['name'] == '') {
231
-            $sKeys = '[\'element_' . $this->_elementIdx . '\']';
231
+            $sKeys = '[\'element_'.$this->_elementIdx.'\']';
232 232
         // other elements
233 233
         } else {
234
-            $sKeys = '[\'' . str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret['name']) . '\']';
234
+            $sKeys = '[\''.str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret['name']).'\']';
235 235
         }
236 236
         // for radios: add extra key from value
237 237
         if ('radio' == $ret['type'] and substr($sKeys, -2) != '[]') {
238
-            $sKeys .= '[\'' . str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret['value']) . '\']';
238
+            $sKeys .= '[\''.str_replace(array('\\', '\''), array('\\\\', '\\\''), $ret['value']).'\']';
239 239
         }
240 240
         $this->_elementIdx++;
241 241
         $ret['keys'] = $sKeys;
@@ -256,9 +256,9 @@  discard block
 block discarded – undo
256 256
             unset($elAry['keys']);
257 257
             // where should we put this element...
258 258
             if (is_array($this->_currentGroup) && ('group' != $elAry['type'])) {
259
-                $toEval = '$this->_currentGroup' . $sKeys . ' = $elAry;';
259
+                $toEval = '$this->_currentGroup'.$sKeys.' = $elAry;';
260 260
             } else {
261
-                $toEval = '$this->_ary' . $sKeys . ' = $elAry;';
261
+                $toEval = '$this->_ary'.$sKeys.' = $elAry;';
262 262
             }
263 263
             eval($toEval);
264 264
         }
@@ -287,10 +287,10 @@  discard block
 block discarded – undo
287 287
             'required' => $required,
288 288
             'error'    => $error
289 289
         ));
290
-        if (!empty($label) && strpos($this->_required, $this->_tpl->left_delimiter . '$label') !== false) {
290
+        if (!empty($label) && strpos($this->_required, $this->_tpl->left_delimiter.'$label') !== false) {
291 291
             $label = $this->_tplFetch($this->_required);
292 292
         }
293
-        if (!empty($html) && strpos($this->_required, $this->_tpl->left_delimiter . '$html') !== false) {
293
+        if (!empty($html) && strpos($this->_required, $this->_tpl->left_delimiter.'$html') !== false) {
294 294
             $html = $this->_tplFetch($this->_required);
295 295
         }
296 296
         $this->_tpl->clear_assign(array('label', 'html', 'required'));
@@ -316,9 +316,9 @@  discard block
 block discarded – undo
316 316
         $error = $this->_tplFetch($this->_error);
317 317
         $this->_tpl->assign(array('label' => $label, 'html'  => $html));
318 318
 
319
-        if (!empty($label) && strpos($this->_error, $this->_tpl->left_delimiter . '$label') !== false) {
319
+        if (!empty($label) && strpos($this->_error, $this->_tpl->left_delimiter.'$label') !== false) {
320 320
             $label = $this->_tplFetch($this->_error);
321
-        } elseif (!empty($html) && strpos($this->_error, $this->_tpl->left_delimiter . '$html') !== false) {
321
+        } elseif (!empty($html) && strpos($this->_error, $this->_tpl->left_delimiter.'$html') !== false) {
322 322
             $html = $this->_tplFetch($this->_error);
323 323
         }
324 324
         $this->_tpl->clear_assign(array('label', 'html', 'error'));
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
     function _tplFetch($tplSource)
338 338
     {
339 339
         if (!function_exists('smarty_function_eval')) {
340
-            require SMARTY_DIR . '/plugins/function.eval.php';
340
+            require SMARTY_DIR.'/plugins/function.eval.php';
341 341
         }
342 342
         return smarty_function_eval(array('var' => $tplSource), $this->_tpl);
343 343
     }// end func _tplFetch
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/CAPTCHA/Figlet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         unset($attr['name']);
102 102
 
103 103
         $html = $this->_getTabs()
104
-                . '<div' . $this->_getAttrString($attr) . '>'
104
+                . '<div'.$this->_getAttrString($attr).'>'
105 105
                 . $_SESSION[$this->_options['sessionVar']]->getCAPTCHA()
106 106
                 . '</div>';
107 107
         return $html;
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/date.php 1 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.