Completed
Push — master ( c35c76...d79f0a )
by Michael
05:53
created
class/pear/Calendar/docs/examples/20.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     var $entries = array();
25 25
 
26 26
     /**
27
-     * @param $calendar
27
+     * @param Calendar_Day $calendar
28 28
      */
29 29
     function DiaryEvent($calendar)
30 30
     {
Please login to merge, or discard this patch.
class/pear/Calendar/Engine/PearDate.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -200,6 +200,9 @@  discard block
 block discarded – undo
200 200
      * @param int &$h hour   (13)
201 201
      * @param int &$i minute (34)
202 202
      * @param int &$s second (53)
203
+     * @param integer $y
204
+     * @param integer $m
205
+     * @param integer $d
203 206
      *
204 207
      * @return void
205 208
      * @access protected
@@ -425,7 +428,7 @@  discard block
 block discarded – undo
425 428
      * @param int $m month (9)
426 429
      * @param int $d day (4)
427 430
      *
428
-     * @return array (0, 1, 2, 3, 4, 5, 6) 1 = Monday
431
+     * @return integer[] (0, 1, 2, 3, 4, 5, 6) 1 = Monday
429 432
      * @access protected
430 433
      */
431 434
     function getWeekDays($y=null, $m=null, $d=null)
@@ -499,7 +502,7 @@  discard block
 block discarded – undo
499 502
     /**
500 503
      * Checks if the given day is the current day
501 504
      *
502
-     * @param mixed $stamp Any timestamp format recognized by Pear::Date
505
+     * @param string $stamp Any timestamp format recognized by Pear::Date
503 506
      *
504 507
      * @return boolean
505 508
      * @access protected
Please login to merge, or discard this patch.
class/pear/Calendar/Engine/UnixTS.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      * @param int $m month (9)
382 382
      * @param int $d day (4)
383 383
      *
384
-     * @return array (0,1,2,3,4,5,6) 1 = Monday
384
+     * @return integer[] (0,1,2,3,4,5,6) 1 = Monday
385 385
      * @access protected
386 386
      */
387 387
     function getWeekDays($y=null, $m=null, $d=null)
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
     /**
456 456
      * Checks if the given day is the current day
457 457
      *
458
-     * @param mixed $stamp Any timestamp format recognized by Pear::Date
458
+     * @param integer $stamp Any timestamp format recognized by Pear::Date
459 459
      *
460 460
      * @return boolean
461 461
      * @access protected
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
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
     /**
198 198
      * Returns the first day of the month
199 199
      *
200
-     * @return int
200
+     * @return string
201 201
      * @access protected
202 202
      * @see Calendar_Engine_Interface::getFirstDayOfWeek()
203 203
      */
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
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * Gets the URI string for the previous calendar unit
131 131
      *
132
-     * @param object $Calendar subclassed from Calendar e.g. Calendar_Month
132
+     * @param Calendar_Decorator_Uri $Calendar subclassed from Calendar e.g. Calendar_Month
133 133
      * @param string $unit     calendar  unit (year|month|week|day|hour|minute|second)
134 134
      *
135 135
      * @return string
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     /**
164 164
      * Gets the URI string for the next calendar unit
165 165
      *
166
-     * @param object $Calendar subclassed from Calendar e.g. Calendar_Month
166
+     * @param Calendar_Decorator_Uri $Calendar subclassed from Calendar e.g. Calendar_Month
167 167
      * @param string $unit     calendar unit (year|month|week|day|hour|minute|second)
168 168
      *
169 169
      * @return string
Please login to merge, or discard this patch.
class/time.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-     * @param $id
46
+     * @param integer $id
47 47
      *
48 48
      * @return mixed
49 49
      */
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @param $format
92 92
      * @param $timestamp
93 93
      *
94
-     * @return mixed
94
+     * @return string
95 95
      */
96 96
     function getFormatedDate($format, $timestamp)
97 97
     {
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
@@ -37,6 +37,9 @@  discard block
 block discarded – undo
37 37
  * @return array
38 38
  */
39 39
 
40
+/**
41
+ * @param string $formatDate
42
+ */
40 43
 function agenda_getCanevas(
41 44
     $ts,
42 45
     $hStart,
@@ -294,6 +297,9 @@  discard block
 block discarded – undo
294 297
  ******************************************************************
295 298
  * @param $name
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
-include_once __DIR__ . '/constantes.php';
22
-include_once __DIR__ . '/../class/utilities.php';
21
+include_once __DIR__.'/constantes.php';
22
+include_once __DIR__.'/../class/utilities.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
     include_once $file;
315 315
 }
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
     $ordre = array();
448 448
     while (list($k, $v) = each($tNavBar)) {
449 449
         if (isset($tWeight[$k])) {
450
-            $ordre[] = (int)$tWeight[$k]; //ordre defini dans les option du module
450
+            $ordre[] = (int) $tWeight[$k]; //ordre defini dans les option du module
451 451
         } else {
452 452
             $ordre[] = $v['weight']; // ordre par defaut ddefini dans le tableau $tNavBar
453 453
         }
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
@@ -211,6 +211,9 @@  discard block
 block discarded – undo
211 211
  * @param int    $mode
212 212
  * @param string $sep
213 213
  */
214
+/**
215
+ * @param string $mail_subject
216
+ */
214 217
 function extcal_SendMail(
215 218
     $destinataires,
216 219
     $mail_fromname,
@@ -300,6 +303,9 @@  discard block
 block discarded – undo
300 303
  *
301 304
  * @return string
302 305
  */
306
+/**
307
+ * @param integer $mode
308
+ */
303 309
 function extcal_getHeader($mode, $emailSender)
304 310
 {
305 311
 //mode = 0 pas d'entete
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
  * L'utilisation de ce formulaire d'adminitration suppose
16 16
  * que la classe correspondante de la table a été générées avec classGenerator
17 17
  **/
18
-include_once __DIR__ . '/../../../class/uploader.php';
19
-require __DIR__ . '/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script
20
-include_once __DIR__ . '/../class/utilities.php';
21
-include_once __DIR__ . '/constantes.php';
22
-include_once __DIR__ . '/../../../class/template.php';
18
+include_once __DIR__.'/../../../class/uploader.php';
19
+require __DIR__.'/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script
20
+include_once __DIR__.'/../class/utilities.php';
21
+include_once __DIR__.'/constantes.php';
22
+include_once __DIR__.'/../../../class/template.php';
23 23
 
24 24
 /********************************************************************
25 25
  *
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     $action  = ''; //a voir   JJD
134 134
     $message = sprintf($tplMessage, $acteur['name']);
135 135
     //$subject .= ' (' . rand(1, 100) . ')';
136
-    $subject .= ' - ' . $acteur['name'];
136
+    $subject .= ' - '.$acteur['name'];
137 137
     //--------------------------------------------------------------
138 138
     //Chargement du template dans le dossier de langue
139 139
     //$f = _EXTCAL_PATH_LG . $xoopsConfig['language'] . '\mail_inscription.html';
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     if ($mode == _EXTCAL_HEADER_HTML) {
175 175
         $template = 'extcal_mail_member_html.tpl';
176 176
     }
177
-    $mail_body = $tpl->fetch('db:' . $template);
177
+    $mail_body = $tpl->fetch('db:'.$template);
178 178
 
179 179
     extcal_SendMail($destinataires, $mail_fromName, $mail_fromemail, $mail_subject, $mail_body, $bEcho = false, $mode = 0, $sep = '|');
180 180
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     //-----------------------------
227 227
     $myts = MyTextSanitizer::getInstance();
228 228
     //$xoopsMailer = getMailer();
229
-    $xoopsMailer =& xoops_getMailer();
229
+    $xoopsMailer = & xoops_getMailer();
230 230
 
231 231
     //$xoopsMailer->setToUsers($destinataires[$i]);
232 232
 
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
     $header   = array();
307 307
     $header[] = "From: {$emailSender}";
308 308
     $header[] = "Reply-To: {$emailSender}";
309
-    $header[] = 'X-Mailer: PHP/' . phpversion();
309
+    $header[] = 'X-Mailer: PHP/'.phpversion();
310 310
 
311 311
     if ($mode == _EXTCAL_HEADER_HTML) {
312 312
         $header[] = 'MIME-Version: 1.0';
Please login to merge, or discard this patch.
versions/extcal_2_04.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         global $xoopsDB;
31 31
 
32
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` ADD `event_nbmember` tinyint(4) NOT NULL default '0' AFTER `event_submitdate` ;";
32
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` ADD `event_nbmember` tinyint(4) NOT NULL default '0' AFTER `event_submitdate` ;";
33 33
         $xoopsDB->query($sql);
34 34
     }
35 35
 
Please login to merge, or discard this patch.