Completed
Push — master ( 92c65a...a0a739 )
by Michael
02:30
created
class/form/formfilecheckbox.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 class ExtcalFormFileCheckBox extends XoopsFormCheckBox
7 7
 {
8 8
     /**
9
-     * @param      $caption
10
-     * @param      $name
9
+     * @param      string $caption
10
+     * @param      string $name
11 11
      * @param null $value
12 12
      *
13 13
      * @return ExtcalFormFileCheckBox
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
     {
44 44
         $ret = '';
45 45
         if (count($this->getOptions()) > 1 && '[]' !== substr($this->getName(), -2, 2)) {
46
-            $newname = $this->getName() . '[]';
46
+            $newname = $this->getName().'[]';
47 47
             $this->setName($newname);
48 48
         }
49 49
         foreach ($this->getOptions() as $value => $name) {
50
-            $ret .= "<input type='checkbox' name='" . $this->getName() . "' value='" . $value . "'";
50
+            $ret .= "<input type='checkbox' name='".$this->getName()."' value='".$value."'";
51 51
             $ret .= ' checked';
52
-            $ret .= $this->getExtra() . '>' . $name . "<br>\n";
52
+            $ret .= $this->getExtra().'>'.$name."<br>\n";
53 53
         }
54 54
 
55 55
         return $ret;
Please login to merge, or discard this patch.
class/form/formrrulecheckbox.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 class ExtcalFormRRuleCheckBox extends XoopsFormCheckBox
7 7
 {
8 8
     /**
9
-     * @param      $caption
10
-     * @param      $name
11
-     * @param null $value
9
+     * @param      string $caption
10
+     * @param      string $name
11
+     * @param string $value
12 12
      */
13 13
     public function __construct($caption, $name, $value = null)
14 14
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,18 +42,18 @@
 block discarded – undo
42 42
         $ret = '<table><tr>';
43 43
         $i   = 0;
44 44
         if (count($this->getOptions()) > 1 && '[]' !== substr($this->getName(), -2, 2)) {
45
-            $newname = $this->getName() . '[]';
45
+            $newname = $this->getName().'[]';
46 46
             $this->setName($newname);
47 47
         }
48 48
         foreach ($this->getOptions() as $value => $name) {
49 49
             if (0 == (++$i) % 6) {
50 50
                 $ret .= '</tr><tr>';
51 51
             }
52
-            $ret .= "<td><input type='checkbox' name='" . $this->getName() . "' value='" . $value . "'";
52
+            $ret .= "<td><input type='checkbox' name='".$this->getName()."' value='".$value."'";
53 53
             if (count($this->getValue()) > 0 && in_array($value, $this->getValue())) {
54 54
                 $ret .= ' checked';
55 55
             }
56
-            $ret .= $this->getExtra() . '>' . $name . "</td>\n";
56
+            $ret .= $this->getExtra().'>'.$name."</td>\n";
57 57
         }
58 58
         $ret .= '</tr></table>';
59 59
 
Please login to merge, or discard this patch.
class/form/spin/formspin.php 2 patches
Doc Comments   +16 added lines, -11 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     /**
179 179
      * Set the value.
180 180
      *
181
-     * @param  $value int
181
+     * @param  integer $value int
182 182
      */
183 183
     public function setValue($value)
184 184
     {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * Set the min value.
199 199
      *
200
-     * @param  $min int
200
+     * @param  integer $min int
201 201
      */
202 202
     public function setMin($min)
203 203
     {
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     /**
216 216
      * Set the max value - must be more great then min.
217 217
      *
218
-     * @param  $max int
218
+     * @param  integer $max int
219 219
      */
220 220
     public function setMax($max)
221 221
     {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      * Set the small increment when click a short time on up down nutton
236 236
      * must be  " > 0 ".
237 237
      *
238
-     * @param $smallIncrement
238
+     * @param integer $smallIncrement
239 239
      *
240 240
      * @internal param int $value
241 241
      */
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * Set the large increment when click a long time on up down nutton.
261 261
      *
262
-     * @param  $largeIncrement int
262
+     * @param  integer $largeIncrement int
263 263
      */
264 264
     public function setLargeIncrement($largeIncrement)
265 265
     {
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      * Set the size in nb car of the input text for the value
283 283
      * must be 2 car min.
284 284
      *
285
-     * @param  $size mixed
285
+     * @param  integer $size mixed
286 286
      */
287 287
     public function setSize($size)
288 288
     {
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
     /**
308 308
      * Set the shortname of the folder images.
309 309
      *
310
-     * @param  $folder string
310
+     * @param  string $folder string
311 311
      */
312 312
     public function setImgFolder($folder)
313 313
     {
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     /**
328 328
      * Set the label of unites between value and buttons.
329 329
      *
330
-     * @param  $unite string
330
+     * @param  string $unite string
331 331
      */
332 332
     public function setUnite($unite)
333 333
     {
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     /**
346 346
      * Set the style CSS of the text.
347 347
      *
348
-     * @param  $style string
348
+     * @param  string $style string
349 349
      */
350 350
     public function setStyleText($style)
351 351
     {
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     /**
366 366
      * Set the style CSS of the frame.
367 367
      *
368
-     * @param  $style string
368
+     * @param  string $style string
369 369
      */
370 370
     public function setStyleBordure($style)
371 371
     {
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
     /**
386 386
      * Set  MinMaxVisible : show the button to go min and max value.
387 387
      *
388
-     * @param  $visible bool
388
+     * @param  boolean $visible bool
389 389
      */
390 390
     public function setMinMaxVisible($visible)
391 391
     {
@@ -494,6 +494,11 @@  discard block
 block discarded – undo
494 494
      * @param string $default
495 495
      * @return string
496 496
      */
497
+
498
+    /**
499
+     * @param string $attribut
500
+     * @param string $value
501
+     */
497 502
     public function htmlAddAttribut($attribut, $value, $default = '')
498 503
     {
499 504
         $r = '';
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function setMin($min)
203 203
     {
204
-        $this->_min = (int)$min;
204
+        $this->_min = (int) $min;
205 205
     }
206 206
     /*-----------------------------------------------------------------*/
207 207
     /**
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     public function setMax($max)
221 221
     {
222
-        $this->_max = (int)$max;
222
+        $this->_max = (int) $max;
223 223
     }
224 224
 
225 225
     /*-----------------------------------------------------------------*/
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      */
242 242
     public function setSmallIncrement($smallIncrement)
243 243
     {
244
-        $this->_smallIncrement = (int)$smallIncrement;
244
+        $this->_smallIncrement = (int) $smallIncrement;
245 245
         if (0 == $this->_smallIncrement) {
246 246
             $this->_smallIncrement = 1;
247 247
         }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      */
264 264
     public function setLargeIncrement($largeIncrement)
265 265
     {
266
-        $this->_largeIncrement = (int)$largeIncrement;
266
+        $this->_largeIncrement = (int) $largeIncrement;
267 267
         if (0 == $this->_largeIncrement) {
268 268
             $this->_largeIncrement = 10;
269 269
         }
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
         $sFolderImg  = "{$sSpinFolder}/images/{$this->getImgFolder()}/";
405 405
 
406 406
         $prefixe  = $this->getName();
407
-        $prefixe2 = 'spin' . $prefixe;
407
+        $prefixe2 = 'spin'.$prefixe;
408 408
 
409 409
         $smallIncrement = $this->getSmallIncrement();
410 410
         $largeIncrement = $this->getLargeIncrement();
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
         $t = [];
424 424
 
425 425
         if ($this->_loadJS) {
426
-            $js  = $sSpinFolder . '/js/spin.js';
426
+            $js  = $sSpinFolder.'/js/spin.js';
427 427
             $t[] = "<script src='{$js}' type='text/javascript'></script>";
428 428
         }
429 429
 
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         //-------------------------------------------------------
469 469
 
470 470
         $t[] = '  </tr>';
471
-        $t[] = '</table>' . "\n";
471
+        $t[] = '</table>'."\n";
472 472
         $t[] = '</div>';
473 473
         //-------------------------------------------
474 474
         $html = implode("\n", $t);
Please login to merge, or discard this patch.
class/pcltrace.lib.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -146,9 +146,9 @@  discard block
 block discarded – undo
146 146
     //   $p_level : Level of trace required.
147 147
     // --------------------------------------------------------------------------------
148 148
     /**
149
-     * @param        $p_file
150
-     * @param        $p_line
151
-     * @param        $p_name
149
+     * @param        string $p_file
150
+     * @param        integer $p_line
151
+     * @param        string $p_name
152 152
      * @param string $p_param
153 153
      * @param string $p_message
154 154
      */
@@ -213,8 +213,8 @@  discard block
 block discarded – undo
213 213
     //   $p_level : Level of trace required.
214 214
     // --------------------------------------------------------------------------------
215 215
     /**
216
-     * @param        $p_file
217
-     * @param        $p_line
216
+     * @param        string $p_file
217
+     * @param        integer $p_line
218 218
      * @param int    $p_return
219 219
      * @param string $p_message
220 220
      */
@@ -279,9 +279,9 @@  discard block
 block discarded – undo
279 279
     // Parameters :
280 280
     // --------------------------------------------------------------------------------
281 281
     /**
282
-     * @param        $p_file
283
-     * @param        $p_line
284
-     * @param        $p_level
282
+     * @param        string $p_file
283
+     * @param        integer $p_line
284
+     * @param        integer $p_level
285 285
      * @param string $p_message
286 286
      */
287 287
     function TrFctMessage($p_file, $p_line, $p_level, $p_message = '')
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         if (!isset($g_pcl_trace_name)) {
171 171
             $g_pcl_trace_name = $p_name;
172 172
         } else {
173
-            $g_pcl_trace_name .= ',' . $p_name;
173
+            $g_pcl_trace_name .= ','.$p_name;
174 174
         }
175 175
 
176 176
         // ----- Update the function entry
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
             echo '<tr>';
399 399
             echo '<td><table width=100% border=0 cellspacing=0 cellpadding=0><tr>';
400 400
             $n = ($g_pcl_trace_entries[$i]['index'] + 1) * 10;
401
-            echo '<td width=' . $n . '><table width=100% border=0 cellspacing=0 cellpadding=0><tr>';
401
+            echo '<td width='.$n.'><table width=100% border=0 cellspacing=0 cellpadding=0><tr>';
402 402
 
403 403
             for ($j = 0; $j <= $g_pcl_trace_entries[$i]['index']; ++$j) {
404 404
                 if ($j == $g_pcl_trace_entries[$i]['index']) {
@@ -415,25 +415,25 @@  discard block
 block discarded – undo
415 415
             echo '<td width=2></td>';
416 416
             switch ($g_pcl_trace_entries[$i]['type']) {
417 417
                 case 1:
418
-                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '(' . $g_pcl_trace_entries[$i]['param'] . ')</span></td>';
418
+                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'('.$g_pcl_trace_entries[$i]['param'].')</span></td>';
419 419
                     break;
420 420
                 case 2:
421
-                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '()=' . $g_pcl_trace_entries[$i]['param'] . '</span></td>';
421
+                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'()='.$g_pcl_trace_entries[$i]['param'].'</span></td>';
422 422
                     break;
423 423
                 case 3:
424 424
                 case 4:
425 425
                     echo '<td><table width=100% border=0 cellspacing=0 cellpadding=0><td width=20></td><td>';
426
-                    echo "<span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['message'] . '</span>';
426
+                    echo "<span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['message'].'</span>';
427 427
                     echo '</td></table></td>';
428 428
                     break;
429 429
                 default:
430
-                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>" . $g_pcl_trace_entries[$i]['name'] . '(' . $g_pcl_trace_entries[$i]['param'] . ')</span></td>';
430
+                    echo "<td><span style='font-size: x-small; font-family: $v_font; '>".$g_pcl_trace_entries[$i]['name'].'('.$g_pcl_trace_entries[$i]['param'].')</span></td>';
431 431
             }
432 432
             echo '</tr></table></td>';
433 433
             echo '<td width=5></td>';
434
-            echo '<td><span style="font-size: xx-small; font-family: $v_font; ">' . basename($g_pcl_trace_entries[$i]['file']) . '</span></td>';
434
+            echo '<td><span style="font-size: xx-small; font-family: $v_font; ">'.basename($g_pcl_trace_entries[$i]['file']).'</span></td>';
435 435
             echo '<td width=5></td>';
436
-            echo '<td><span style="font-size: xx-small; font-family: $v_font; ">' . $g_pcl_trace_entries[$i]['line'] . '</span></td>';
436
+            echo '<td><span style="font-size: xx-small; font-family: $v_font; ">'.$g_pcl_trace_entries[$i]['line'].'</span></td>';
437 437
             echo '</tr>';
438 438
         }
439 439
 
@@ -477,12 +477,12 @@  discard block
 block discarded – undo
477 477
                 echo '---';
478 478
             }
479 479
             if (1 == $p_entry['type']) {
480
-                echo '<b>' . $p_entry['name'] . '</b>(' . $p_entry['param'] . ') : ' . $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>';
480
+                echo '<b>'.$p_entry['name'].'</b>('.$p_entry['param'].') : '.$p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>';
481 481
             } else {
482 482
                 if (2 == $p_entry['type']) {
483
-                    echo '<b>' . $p_entry['name'] . '</b>()=' . $p_entry['param'] . ' : ' . $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>';
483
+                    echo '<b>'.$p_entry['name'].'</b>()='.$p_entry['param'].' : '.$p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>';
484 484
                 } else {
485
-                    echo $p_entry['message'] . ' [' . $p_entry['file'] . ', ' . $p_entry['line'] . ']<br>';
485
+                    echo $p_entry['message'].' ['.$p_entry['file'].', '.$p_entry['line'].']<br>';
486 486
                 }
487 487
             }
488 488
         }
Please login to merge, or discard this patch.
class/pear/Calendar/Engine/PearDate.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,6 +192,9 @@  discard block
 block discarded – undo
192 192
      * @param int &$h hour   (13)
193 193
      * @param int &$i minute (34)
194 194
      * @param int &$s second (53)
195
+     * @param integer $y
196
+     * @param integer $m
197
+     * @param integer $d
195 198
      */
196 199
     public function adjustDate(&$y, &$m, &$d, &$h, &$i, &$s)
197 200
     {
@@ -407,7 +410,7 @@  discard block
 block discarded – undo
407 410
      * @param int $m month (9)
408 411
      * @param int $d day (4)
409 412
      *
410
-     * @return array (0, 1, 2, 3, 4, 5, 6) 1 = Monday
413
+     * @return integer[] (0, 1, 2, 3, 4, 5, 6) 1 = Monday
411 414
      */
412 415
     public function getWeekDays($y = null, $m = null, $d = null)
413 416
     {
@@ -476,7 +479,7 @@  discard block
 block discarded – undo
476 479
     /**
477 480
      * Checks if the given day is the current day.
478 481
      *
479
-     * @param mixed $stamp Any timestamp format recognized by Pear::Date
482
+     * @param string $stamp Any timestamp format recognized by Pear::Date
480 483
      *
481 484
      * @return bool
482 485
      */
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 /**
41 41
  * Load PEAR::Date class.
42 42
  */
43
-require_once __DIR__ . '/Date.php';
43
+require_once __DIR__.'/Date.php';
44 44
 
45 45
 /**
46 46
  * Performs calendar calculations based on the PEAR::Date class
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         $date = self::stampCollection($stamp);
88 88
 
89
-        return (int)$date->year;
89
+        return (int) $date->year;
90 90
     }
91 91
 
92 92
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     {
101 101
         $date = self::stampCollection($stamp);
102 102
 
103
-        return (int)$date->month;
103
+        return (int) $date->month;
104 104
     }
105 105
 
106 106
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     {
115 115
         $date = self::stampCollection($stamp);
116 116
 
117
-        return (int)$date->day;
117
+        return (int) $date->day;
118 118
     }
119 119
 
120 120
     /**
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $date = self::stampCollection($stamp);
130 130
 
131
-        return (int)$date->hour;
131
+        return (int) $date->hour;
132 132
     }
133 133
 
134 134
     /**
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     {
143 143
         $date = self::stampCollection($stamp);
144 144
 
145
-        return (int)$date->minute;
145
+        return (int) $date->minute;
146 146
     }
147 147
 
148 148
     /**
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $date = self::stampCollection($stamp);
158 158
 
159
-        return (int)$date->second;
159
+        return (int) $date->second;
160 160
     }
161 161
 
162 162
     /**
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     {
176 176
         $r = [];
177 177
         self::adjustDate($y, $m, $d, $h, $i, $s);
178
-        $key = $y . $m . $d . $h . $i . $s;
178
+        $key = $y.$m.$d.$h.$i.$s;
179 179
         if (!isset($r[$key])) {
180 180
             $r[$key] = sprintf('%04d-%02d-%02d %02d:%02d:%02d', $y, $m, $d, $h, $i, $s);
181 181
         }
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
      */
287 287
     public function getDaysInMonth($y, $m)
288 288
     {
289
-        return (int)Date_Calc::daysInMonth($m, $y);
289
+        return (int) Date_Calc::daysInMonth($m, $y);
290 290
     }
291 291
 
292 292
     /**
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      */
301 301
     public function getFirstDayInMonth($y, $m)
302 302
     {
303
-        return (int)Date_Calc::dayOfWeek(1, $m, $y);
303
+        return (int) Date_Calc::dayOfWeek(1, $m, $y);
304 304
     }
305 305
 
306 306
     /**
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
     public function getWeekNInMonth($y, $m, $d, $firstDay = 1)
348 348
     {
349 349
         $weekEnd     = (0 == $firstDay) ? $this->getDaysInWeek() - 1 : $firstDay - 1;
350
-        $end_of_week = (int)Date_Calc::nextDayOfWeek($weekEnd, 1, $m, $y, '%e', true);
350
+        $end_of_week = (int) Date_Calc::nextDayOfWeek($weekEnd, 1, $m, $y, '%e', true);
351 351
         $w           = 1;
352 352
         while ($d > $end_of_week) {
353 353
             ++$w;
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         }
382 382
         $daysInTheFirstWeek %= $this->getDaysInWeek();
383 383
 
384
-        return (int)(ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks);
384
+        return (int) (ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks);
385 385
     }
386 386
 
387 387
     /**
Please login to merge, or discard this patch.
class/pear/Calendar/Engine/UnixTS.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
      * @param int $m month (9)
364 364
      * @param int $d day (4)
365 365
      *
366
-     * @return array (0,1,2,3,4,5,6) 1 = Monday
366
+     * @return integer[] (0,1,2,3,4,5,6) 1 = Monday
367 367
      */
368 368
     public function getWeekDays($y = null, $m = null, $d = null)
369 369
     {
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
     /**
433 433
      * Checks if the given day is the current day.
434 434
      *
435
-     * @param mixed $stamp Any timestamp format recognized by Pear::Date
435
+     * @param integer $stamp Any timestamp format recognized by Pear::Date
436 436
      *
437 437
      * @return bool
438 438
      */
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $date = self::stampCollection($stamp);
97 97
 
98
-        return (int)$date[0];
98
+        return (int) $date[0];
99 99
     }
100 100
 
101 101
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $date = self::stampCollection($stamp);
111 111
 
112
-        return (int)$date[1];
112
+        return (int) $date[1];
113 113
     }
114 114
 
115 115
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $date = self::stampCollection($stamp);
125 125
 
126
-        return (int)$date[2];
126
+        return (int) $date[2];
127 127
     }
128 128
 
129 129
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $date = self::stampCollection($stamp);
139 139
 
140
-        return (int)$date[3];
140
+        return (int) $date[3];
141 141
     }
142 142
 
143 143
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     {
152 152
         $date = self::stampCollection($stamp);
153 153
 
154
-        return (int)$date[4];
154
+        return (int) $date[4];
155 155
     }
156 156
 
157 157
     /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     {
166 166
         $date = self::stampCollection($stamp);
167 167
 
168
-        return (int)$date[5];
168
+        return (int) $date[5];
169 169
     }
170 170
 
171 171
     /**
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
         }
337 337
         $daysInTheFirstWeek %= $this->getDaysInWeek();
338 338
 
339
-        return (int)(ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks);
339
+        return (int) (ceil(($this->getDaysInMonth($y, $m) - $daysInTheFirstWeek) / $this->getDaysInWeek()) + $weeks);
340 340
     }
341 341
 
342 342
     /**
Please login to merge, or discard this patch.
class/pear/Calendar/Table/Helper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
     /**
172 172
      * Returns the first day of the month.
173 173
      *
174
-     * @return int
174
+     * @return string
175 175
      *
176 176
      * @see    Calendar_Engine_Interface::getFirstDayOfWeek()
177 177
      */
Please login to merge, or discard this patch.
class/pear/Calendar/Util/Uri.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     /**
138 138
      * Gets the URI string for the previous calendar unit.
139 139
      *
140
-     * @param object $Calendar subclassed from Calendar e.g. Calendar_Month
140
+     * @param Calendar_Decorator_Uri $Calendar subclassed from Calendar e.g. Calendar_Month
141 141
      * @param string $unit     calendar  unit (year|month|week|day|hour|minute|second)
142 142
      *
143 143
      * @return string
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     /**
170 170
      * Gets the URI string for the next calendar unit.
171 171
      *
172
-     * @param object $Calendar subclassed from Calendar e.g. Calendar_Month
172
+     * @param Calendar_Decorator_Uri $Calendar subclassed from Calendar e.g. Calendar_Month
173 173
      * @param string $unit     calendar unit (year|month|week|day|hour|minute|second)
174 174
      *
175 175
      * @return string
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function prev($Calendar, $unit)
146 146
     {
147
-        $method = 'prev' . $unit;
147
+        $method = 'prev'.$unit;
148 148
         $stamp  = $Calendar->{$method}('timestamp');
149 149
 
150 150
         return $this->buildUriString($Calendar, $method, $stamp);
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function this($Calendar, $unit)
162 162
     {
163
-        $method = 'this' . $unit;
163
+        $method = 'this'.$unit;
164 164
         $stamp  = $Calendar->{$method}('timestamp');
165 165
 
166 166
         return $this->buildUriString($Calendar, $method, $stamp);
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      */
177 177
     public function next($Calendar, $unit)
178 178
     {
179
-        $method = 'next' . $unit;
179
+        $method = 'next'.$unit;
180 180
         $stamp  = $Calendar->{$method}('timestamp');
181 181
 
182 182
         return $this->buildUriString($Calendar, $method, $stamp);
@@ -197,10 +197,10 @@  discard block
 block discarded – undo
197 197
         $cE        = $Calendar->getEngine();
198 198
         $separator = '';
199 199
         foreach ($this->uris as $unit => $uri) {
200
-            $call      = 'stampTo' . $unit;
200
+            $call = 'stampTo'.$unit;
201 201
             $uriString .= $separator;
202 202
             if (!$this->scalar) {
203
-                $uriString .= $uri . '=';
203
+                $uriString .= $uri.'=';
204 204
             }
205 205
             $uriString .= $cE->{$call}($stamp);
206 206
             $separator = $this->separator;
Please login to merge, or discard this patch.
class/time.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-     * @param $id
41
+     * @param integer $id
42 42
      *
43 43
      * @return mixed
44 44
      */
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @param $format
87 87
      * @param $timestamp
88 88
      *
89
-     * @return mixed
89
+     * @return string
90 90
      */
91 91
     public function getFormatedDate($format, $timestamp)
92 92
     {
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // defined('XOOPS_ROOT_PATH') || exit('Restricted access.');
4 4
 
5
-require_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php';
5
+require_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php';
6 6
 
7 7
 $moduleDirName = basename(dirname(__DIR__));
8 8
 xoops_loadLanguage('main', $moduleDirName);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function getFormatedDate($format, $timestamp)
92 92
     {
93
-        $patterns     = [
93
+        $patterns = [
94 94
             '/January/',
95 95
             '/February/',
96 96
             '/March/',
@@ -143,18 +143,18 @@  discard block
 block discarded – undo
143 143
             _CAL_OCTOBER,
144 144
             _CAL_NOVEMBER,
145 145
             _CAL_DECEMBER,
146
-            substr(_CAL_JANUARY, 0, 3) . ' ',
147
-            substr(_CAL_FEBRUARY, 0, 3) . ' ',
148
-            substr(_CAL_MARCH, 0, 3) . ' ',
149
-            substr(_CAL_APRIL, 0, 3) . ' ',
150
-            substr(_CAL_MAY, 0, 3) . ' ',
151
-            substr(_CAL_JUNE, 0, 3) . ' ',
152
-            substr(_CAL_JULY, 0, 3) . ' ',
153
-            substr(_CAL_AUGUST, 0, 3) . ' ',
154
-            substr(_CAL_SEPTEMBER, 0, 3) . ' ',
155
-            substr(_CAL_OCTOBER, 0, 3) . ' ',
156
-            substr(_CAL_NOVEMBER, 0, 3) . ' ',
157
-            substr(_CAL_DECEMBER, 0, 3) . ' ',
146
+            substr(_CAL_JANUARY, 0, 3).' ',
147
+            substr(_CAL_FEBRUARY, 0, 3).' ',
148
+            substr(_CAL_MARCH, 0, 3).' ',
149
+            substr(_CAL_APRIL, 0, 3).' ',
150
+            substr(_CAL_MAY, 0, 3).' ',
151
+            substr(_CAL_JUNE, 0, 3).' ',
152
+            substr(_CAL_JULY, 0, 3).' ',
153
+            substr(_CAL_AUGUST, 0, 3).' ',
154
+            substr(_CAL_SEPTEMBER, 0, 3).' ',
155
+            substr(_CAL_OCTOBER, 0, 3).' ',
156
+            substr(_CAL_NOVEMBER, 0, 3).' ',
157
+            substr(_CAL_DECEMBER, 0, 3).' ',
158 158
             _CAL_SUNDAY,
159 159
             _CAL_MONDAY,
160 160
             _CAL_TUESDAY,
@@ -162,13 +162,13 @@  discard block
 block discarded – undo
162 162
             _CAL_THURSDAY,
163 163
             _CAL_FRIDAY,
164 164
             _CAL_SATURDAY,
165
-            substr(_CAL_SUNDAY, 0, 3) . ' ',
166
-            substr(_CAL_MONDAY, 0, 3) . ' ',
167
-            substr(_CAL_TUESDAY, 0, 3) . ' ',
168
-            substr(_CAL_WEDNESDAY, 0, 3) . ' ',
169
-            substr(_CAL_THURSDAY, 0, 3) . ' ',
170
-            substr(_CAL_FRIDAY, 0, 3) . ' ',
171
-            substr(_CAL_SATURDAY, 0, 3) . ' ',
165
+            substr(_CAL_SUNDAY, 0, 3).' ',
166
+            substr(_CAL_MONDAY, 0, 3).' ',
167
+            substr(_CAL_TUESDAY, 0, 3).' ',
168
+            substr(_CAL_WEDNESDAY, 0, 3).' ',
169
+            substr(_CAL_THURSDAY, 0, 3).' ',
170
+            substr(_CAL_FRIDAY, 0, 3).' ',
171
+            substr(_CAL_SATURDAY, 0, 3).' ',
172 172
         ];
173 173
 
174 174
         return preg_replace($patterns, $replacements, date($format, $timestamp));
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                 array_shift($eventOptions);
211 211
                 $day = '';
212 212
                 foreach ($eventOptions as $option) {
213
-                    $day .= ' ' . $daysName[$option] . ', ';
213
+                    $day .= ' '.$daysName[$option].', ';
214 214
                 }
215 215
                 $ret = sprintf(_MD_EXTCAL_RR_WEEKLY, $day, $interval);
216 216
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
                 array_shift($eventOptions);
330 330
                 $month = '';
331 331
                 foreach ($eventOptions as $option) {
332
-                    $month .= ' ' . $monthName[$option] . ', ';
332
+                    $month .= ' '.$monthName[$option].', ';
333 333
                 }
334 334
                 $dayString = $day;
335 335
                 if (array_key_exists($day, $monthDays)) {
Please login to merge, or discard this patch.