Completed
Push — master ( 5f5d60...a9decc )
by Michael
03:36
created
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.
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
@@ -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
 
@@ -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.
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.
class/pear/Calendar/tests/month_weekdays_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.
admin/menu.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@  discard block
 block discarded – undo
6 6
 /** @var XoopsModuleHandler $moduleHandler */
7 7
 $moduleHandler = xoops_getHandler('module');
8 8
 $module        = $moduleHandler->getByDirname($moduleDirName);
9
-$pathIcon32    = '../../' . $module->getInfo('sysicons32');
10
-$pathModIcon32 = './' . $module->getInfo('modicons32');
9
+$pathIcon32    = '../../'.$module->getInfo('sysicons32');
10
+$pathModIcon32 = './'.$module->getInfo('modicons32');
11 11
 xoops_loadLanguage('modinfo', $moduleDirName);
12 12
 
13
-$xoopsModuleAdminPath = XOOPS_ROOT_PATH . '/' . $module->getInfo('dirmoduleadmin');
13
+$xoopsModuleAdminPath = XOOPS_ROOT_PATH.'/'.$module->getInfo('dirmoduleadmin');
14 14
 
15
-if (!file_exists($fileinc = $xoopsModuleAdminPath . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) {
16
-    $fileinc = $xoopsModuleAdminPath . '/language/english/main.php';
15
+if (!file_exists($fileinc = $xoopsModuleAdminPath.'/language/'.$GLOBALS['xoopsConfig']['language'].'/'.'main.php')) {
16
+    $fileinc = $xoopsModuleAdminPath.'/language/english/main.php';
17 17
 }
18 18
 
19 19
 include_once $fileinc;
@@ -21,33 +21,33 @@  discard block
 block discarded – undo
21 21
 $adminmenu[] = array(
22 22
     'title' => _AM_MODULEADMIN_HOME,
23 23
     'link'  => 'admin/index.php',
24
-    'icon'  => $pathIcon32 . '/home.png'
24
+    'icon'  => $pathIcon32.'/home.png'
25 25
 );
26 26
 
27 27
 $adminmenu[] = array(
28 28
     'title' => _MI_EXTCAL_CATEGORY,
29 29
     'link'  => 'admin/cat.php',
30
-    'icon'  => $pathIcon32 . '/category.png'
30
+    'icon'  => $pathIcon32.'/category.png'
31 31
 );
32 32
 
33 33
 $adminmenu[] = array(
34 34
     'title' => _MI_EXTCAL_EVENT,
35 35
     'link'  => 'admin/event.php',
36
-    'icon'  => $pathIcon32 . '/event.png'
36
+    'icon'  => $pathIcon32.'/event.png'
37 37
 );
38 38
 $adminmenu[] = array(
39 39
     'title' => _MI_EXTCAL_ETABLISSEMENTS,
40 40
     'link'  => 'admin/etablissement.php',
41
-    'icon'  => $pathModIcon32 . '/etablissement.png'
41
+    'icon'  => $pathModIcon32.'/etablissement.png'
42 42
 );
43 43
 $adminmenu[] = array(
44 44
     'title' => _MI_EXTCAL_PERMISSIONS,
45 45
     'link'  => 'admin/permissions.php',
46
-    'icon'  => $pathIcon32 . '/permissions.png'
46
+    'icon'  => $pathIcon32.'/permissions.png'
47 47
 );
48 48
 
49 49
 $adminmenu[] = array(
50 50
     'title' => _AM_MODULEADMIN_ABOUT,
51 51
     'link'  => 'admin/about.php',
52
-    'icon'  => $pathIcon32 . '/about.png'
52
+    'icon'  => $pathIcon32.'/about.png'
53 53
 );
Please login to merge, or discard this patch.
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
  *
17 17
  * @author       Mage, Mamba
18 18
  **/
19
-include_once __DIR__ . '/admin_header.php';
19
+include_once __DIR__.'/admin_header.php';
20 20
 xoops_cp_header();
21 21
 
22 22
 echo $adminObject->addNavigation(basename(__FILE__));
23 23
 echo $adminObject->renderAbout('[email protected]', false);
24 24
 
25
-include_once __DIR__ . '/admin_footer.php';
25
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.