Completed
Push — master ( a9decc...a21b67 )
by Michael
02:51
created
class/pear/Calendar/Engine/UnixTS.php 1 patch
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.
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 1 patch
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.
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('XOOPS root path not defined');
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     = array(
93
+        $patterns = array(
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.
include/agenda_fnc.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
  * @return array
39 39
  */
40 40
 
41
+/**
42
+ * @param string $formatDate
43
+ */
41 44
 function agenda_getCanevas($ts, $hStart, $hEnd, $mPlage = 15, $nbJours = 1, $formatDate, $formatJour = 'H:i')
42 45
 {
43 46
     global $xoopsModuleConfig;
@@ -294,6 +297,9 @@  discard block
 block discarded – undo
294 297
  * @param $name
295 298
  * @return bool
296 299
  */
300
+/**
301
+ * @param string $name
302
+ */
297 303
 function ext_loadLanguage($name)
298 304
 {
299 305
     global $xoopsConfig;
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 define('_EXTCAL_FORMAT_AGENDA_KEYD', 'Y-m-d');
19 19
 define('_EXTCAL_FORMAT_AGENDA_KEYT', 'H:i');
20 20
 
21
-require_once __DIR__ . '/constantes.php';
22
-require_once __DIR__ . '/../class/utility.php';
21
+require_once __DIR__.'/constantes.php';
22
+require_once __DIR__.'/../class/utility.php';
23 23
 
24 24
 $moduleDirName = basename(dirname(__DIR__));
25 25
 xoops_loadLanguage('main', $moduleDirName);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $tj[$kj]['dayWeek'] = date('w', $tsj);
72 72
         $tj[$kj]['jour']    = $jName[$tj[$kj]['dayWeek']]; //date('l', $tsj);
73 73
         if ($tj[$kj]['dayWeek'] == 0) {
74
-            $tj[$kj]['bg'] = "background='" . XOOPS_URL . "/modules/extcal/assets/images/trame.png'";
74
+            $tj[$kj]['bg'] = "background='".XOOPS_URL."/modules/extcal/assets/images/trame.png'";
75 75
         } else {
76 76
             $tj[$kj]['bg'] = '';
77 77
         }
@@ -151,16 +151,16 @@  discard block
 block discarded – undo
151 151
         $kd     = date(_EXTCAL_FORMAT_AGENDA_KEYD, $ts);
152 152
         $hour   = date('H', $ts);
153 153
         $minute = date('i', $ts);
154
-        $m      = (int)($minute / $mPlage) * $mPlage;
154
+        $m      = (int) ($minute / $mPlage) * $mPlage;
155 155
         //      echo "--->{$minute} / {$mPlage} = {$m}<br>";
156
-        $sMinute = (($m < 10) ? '0' . $m : $m);
156
+        $sMinute = (($m < 10) ? '0'.$m : $m);
157 157
         //$kt = date(_EXTCAL_FORMAT_AGENDA_KEYT, $ts);
158 158
         if ($hour < $hStart) {
159 159
             $kt = $tk0;
160 160
         } elseif ($hour >= ($hEnd + 1)) {
161 161
             $kt = $tk1;
162 162
         } else {
163
-            $kt = $hour . ':' . $sMinute;
163
+            $kt = $hour.':'.$sMinute;
164 164
         }
165 165
 
166 166
         $tAgenda[$kt]['jours'][$kd]['events'][] = $e;
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
             return false;
310 310
     }
311 311
 
312
-    $file   = XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/' . $f;
312
+    $file   = XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/'.$f;
313 313
     $prefix = (defined($name) ? '_MI' : '_MD');
314 314
     require_once $file;
315 315
 }
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
     //    while (list($k, $v) = each($tNavBar)) {
450 450
     foreach ($tNavBar as $k => $v) {
451 451
         if (isset($tWeight[$k])) {
452
-            $ordre[] = (int)$tWeight[$k]; //ordre defini dans les option du module
452
+            $ordre[] = (int) $tWeight[$k]; //ordre defini dans les option du module
453 453
         } else {
454 454
             $ordre[] = $v['weight']; // ordre par defaut ddefini dans le tableau $tNavBar
455 455
         }
Please login to merge, or discard this patch.
include/mail_fnc.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -194,6 +194,9 @@  discard block
 block discarded – undo
194 194
  * @param int    $mode
195 195
  * @param string $sep
196 196
  */
197
+/**
198
+ * @param string $mail_subject
199
+ */
197 200
 function extcal_SendMail(
198 201
     $destinataires,
199 202
     $mail_fromname,
@@ -280,6 +283,9 @@  discard block
 block discarded – undo
280 283
  *
281 284
  * @return string
282 285
  */
286
+/**
287
+ * @param integer $mode
288
+ */
283 289
 function extcal_getHeader($mode, $emailSender)
284 290
 {
285 291
     //mode = 0 pas d'entete
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
  * que la classe correspondante de la table a été générées avec classGenerator
21 21
  **/
22 22
 
23
-require_once __DIR__ . '/../../../class/uploader.php';
24
-require_once __DIR__ . '/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script
25
-require_once __DIR__ . '/../class/utility.php';
26
-require_once __DIR__ . '/constantes.php';
27
-require_once __DIR__ . '/../../../class/template.php';
23
+require_once __DIR__.'/../../../class/uploader.php';
24
+require_once __DIR__.'/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script
25
+require_once __DIR__.'/../class/utility.php';
26
+require_once __DIR__.'/constantes.php';
27
+require_once __DIR__.'/../../../class/template.php';
28 28
 
29 29
 /********************************************************************
30 30
  *
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     $action  = ''; //a voir   JJD
139 139
     $message = sprintf($tplMessage, $acteur['name']);
140 140
     //$subject .= ' (' . rand(1, 100) . ')';
141
-    $subject .= ' - ' . $acteur['name'];
141
+    $subject .= ' - '.$acteur['name'];
142 142
     //--------------------------------------------------------------
143 143
     //Chargement du template dans le dossier de langue
144 144
     //$f = _EXTCAL_PATH_LG . $xoopsConfig['language'] . '\mail_inscription.html';
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     if ($mode == _EXTCAL_HEADER_HTML) {
181 181
         $template = 'extcal_mail_member_html.tpl';
182 182
     }
183
-    $mail_body = $tpl->fetch('db:' . $template);
183
+    $mail_body = $tpl->fetch('db:'.$template);
184 184
 
185 185
     extcal_SendMail($destinataires, $mail_fromName, $mail_fromemail, $mail_subject, $mail_body, $bEcho = false, $mode = 0, $sep = '|');
186 186
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     $header   = array();
314 314
     $header[] = "From: {$emailSender}";
315 315
     $header[] = "Reply-To: {$emailSender}";
316
-    $header[] = 'X-Mailer: PHP/' . PHP_VERSION;
316
+    $header[] = 'X-Mailer: PHP/'.PHP_VERSION;
317 317
 
318 318
     if ($mode == _EXTCAL_HEADER_HTML) {
319 319
         $header[] = 'MIME-Version: 1.0';
Please login to merge, or discard this patch.
class/form/formdatetime.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function __construct($form, $startTS = 0, $endTS = 0)
18 18
     {
19
-        $startTS       = (int)$startTS;
19
+        $startTS       = (int) $startTS;
20 20
         $startTS       = ($startTS > 0) ? $startTS : time();
21 21
         $startDatetime = getdate($startTS);
22 22
 
23
-        $endTS       = (int)$endTS;
23
+        $endTS       = (int) $endTS;
24 24
         $endTS       = ($endTS > 0) ? $endTS : time();
25 25
         $endDatetime = getdate($endTS);
26 26
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         for ($i = 0; $i < 24; ++$i) {
29 29
             for ($j = 0; $j < _EXTCAL_TS_MINUTE; $j += 15) {
30 30
                 $key             = ($i * _EXTCAL_TS_HOUR) + ($j * _EXTCAL_TS_MINUTE);
31
-                $timearray[$key] = ($j != 0) ? $i . ':' . $j : $i . ':0' . $j;
31
+                $timearray[$key] = ($j != 0) ? $i.':'.$j : $i.':0'.$j;
32 32
             }
33 33
         }
34 34
         ksort($timearray);
Please login to merge, or discard this patch.
class/pear/Calendar/tests/week_test.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@
 block discarded – undo
34 34
     public function testPrevDay_Array()
35 35
     {
36 36
         $this->assertEqual(array(
37
-                               'year' => 2003,
38
-                               'month' => 10,
39
-                               'day' => 8,
40
-                               'hour' => 0,
41
-                               'minute' => 0,
42
-                               'second' => 0,
43
-                           ), $this->cal->prevDay('array'));
37
+                                'year' => 2003,
38
+                                'month' => 10,
39
+                                'day' => 8,
40
+                                'hour' => 0,
41
+                                'minute' => 0,
42
+                                'second' => 0,
43
+                            ), $this->cal->prevDay('array'));
44 44
     }
45 45
 
46 46
     public function testThisDay()
Please login to merge, or discard this patch.
class/pear/Calendar/tests/month_test.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
     public function testPrevDay_Array()
33 33
     {
34 34
         $this->assertEqual(array(
35
-                               'year' => 2003,
36
-                               'month' => 9,
37
-                               'day' => 30,
38
-                               'hour' => 0,
39
-                               'minute' => 0,
40
-                               'second' => 0,
41
-                           ), $this->cal->prevDay('array'));
35
+                                'year' => 2003,
36
+                                'month' => 9,
37
+                                'day' => 30,
38
+                                'hour' => 0,
39
+                                'minute' => 0,
40
+                                'second' => 0,
41
+                            ), $this->cal->prevDay('array'));
42 42
     }
43 43
 
44 44
     public function testThisDay()
Please login to merge, or discard this patch.