Completed
Push — master ( ec1681...68c045 )
by Michael
02:41
created
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   = [];
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.
blocks/minical.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -450,11 +450,11 @@
 block discarded – undo
450 450
  * @param array      $event
451 451
  * @param array      $eventsArray
452 452
  * @param ExtcalTime $extcalTimeHandler
453
- * @param            $startMonth
454
- * @param            $endMonth
453
+ * @param            integer $startMonth
454
+ * @param            integer $endMonth
455 455
  * @param            $cats
456 456
  *
457
- * @return bool
457
+ * @return false|null
458 458
  */
459 459
 function bExtcalMinicalAddEventToArray($event, &$eventsArray, $extcalTimeHandler, $startMonth, $endMonth, $cats)
460 460
 {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
         new Calendar_Day(
165 165
             date('Y', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))),
166 166
             date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))),
167
-                         date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))
167
+                            date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))
168 168
         ),
169 169
     ];
170 170
 
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 global $extcalConfig, $xoopsUser;
21
-require_once __DIR__ . '/../include/constantes.php';
22
-require_once __DIR__ . '/../class/utility.php';
23
-require_once __DIR__ . '/../class/tableForm.php';
21
+require_once __DIR__.'/../include/constantes.php';
22
+require_once __DIR__.'/../class/utility.php';
23
+require_once __DIR__.'/../class/tableForm.php';
24 24
 //---------------------------------------------------------------------------
25 25
 /**
26 26
  * @param $options
@@ -33,11 +33,11 @@  discard block
 block discarded – undo
33 33
 
34 34
     extcal_getDefautminicalOption($options);
35 35
 
36
-    require_once __DIR__ . '/../class/config.php';
36
+    require_once __DIR__.'/../class/config.php';
37 37
 
38
-    require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php';
39
-    require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php';
40
-    require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php';
38
+    require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php';
39
+    require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php';
40
+    require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php';
41 41
     //     require_once CALENDAR_ROOT . 'Month/Weeks.php';
42 42
     //     require_once CALENDAR_ROOT . 'Day.php';
43 43
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             'cat'          => $tCatSelected,
125 125
             'externalKeys' => 'cat_id',
126 126
         ];
127
-        $events   = $eventHandler->getEventsOnPeriode($criteres);
127
+        $events = $eventHandler->getEventsOnPeriode($criteres);
128 128
     } else {
129 129
         $events = [];
130 130
     }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                 'number'     => $dayCalObj->thisDay(),
190 190
                 'isSelected' => $dayCalObj->isSelected(),
191 191
             ];
192
-            $day                                = $dayCalObj->thisDay();
192
+            $day = $dayCalObj->thisDay();
193 193
             if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) {
194 194
                 $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true;
195 195
                 $tableRows[$rowId]['week'][$cellId]['color']      = $eventsArray[$day]['color'];
@@ -219,15 +219,15 @@  discard block
 block discarded – undo
219 219
     // Making navig data
220 220
     $navig = [
221 221
         'page' => $extcalConfig['start_page'],
222
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
222
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
223 223
         'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()),
224 224
     ];
225 225
 
226 226
     $horloge             = [];
227 227
     $horloge['display']  = (trim($options[11]) != '');
228
-    $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11];
229
-    $horloge['width']    = $options[12] . 'px';
230
-    $horloge['height']   = $options[13] . 'px';
228
+    $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11];
229
+    $horloge['width']    = $options[12].'px';
230
+    $horloge['height']   = $options[13].'px';
231 231
 
232 232
     $ret = [
233 233
         'imageParam'   => $imageParam,
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
  */
254 254
 function bExtcalMinicalEdit($options)
255 255
 {
256
-    require_once __DIR__ . '/../class/form/spin/formspin.php';
256
+    require_once __DIR__.'/../class/form/spin/formspin.php';
257 257
     global $xoopsUser;
258 258
 
259 259
     //  $t = print_r(get_defined_vars(),true);
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     $imageCatHandler = xoops_getHandler('imagecategory');
275 275
 
276 276
     //=====================================================================
277
-    $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head');
277
+    $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head');
278 278
 
279 279
     $k           = 0;
280 280
     $xfValue[$k] = new XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]);
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     $xfValue[$k] = new ExtcalFormSpin(_MB_EXTCAL_SS_NB_PHOTOS, "options[{$k}]", $options[$k], 0, 50, 1, 0, 8, _MB_EXTCAL_PX, $imgFolder = '');
316 316
     $form->addElement($xfValue[$k], false);
317 317
     //=====================================================================
318
-    $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head');
318
+    $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head');
319 319
 
320 320
     $t = [
321 321
         -1 => _MB_EXTCAL_PREVIEW,
@@ -354,9 +354,9 @@  discard block
 block discarded – undo
354 354
     $form->addElement($xfValue[$k], false);
355 355
 
356 356
     //=====================================================================
357
-    $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head');
357
+    $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head');
358 358
     //---------------------------------------------------------------------
359
-    $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES);
359
+    $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES);
360 360
     $t = array_merge([' ' => _NONE], $t);
361 361
 
362 362
     $k           = 11;
@@ -441,12 +441,12 @@  discard block
 block discarded – undo
441 441
         // $src   = $doc->createElement('src');
442 442
         $src   = clone $tempSrc;
443 443
         $src   = $photo->appendChild($src);
444
-        $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name'));
444
+        $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name'));
445 445
         $src->appendChild($value);
446 446
     }
447 447
 
448 448
     // get completed xml document
449
-    $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml');
449
+    $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml');
450 450
 }
451 451
 
452 452
 /**************************************************************************/
Please login to merge, or discard this patch.
class/utility.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -463,8 +463,8 @@
 block discarded – undo
463 463
     /**************************************************************************/
464 464
     /**
465 465
      * @param $color
466
-     * @param $plancher
467
-     * @param $plafond
466
+     * @param integer $plancher
467
+     * @param integer $plafond
468 468
      *
469 469
      * @return string
470 470
      */
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -151,11 +151,11 @@
 block discarded – undo
151 151
             $cat_color = $catList->getVar('cat_color');
152 152
             $checked   = in_array($cat_id, $cat) ? 'checked' : '';
153 153
             $cat       = ''
154
-                         . "<div style='float:left; margin-left:5px;'>"
155
-                         . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
156
-                         . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"
157
-                         . " {$name}"
158
-                         . '</div>';
154
+                            . "<div style='float:left; margin-left:5px;'>"
155
+                            . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
156
+                            . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"
157
+                            . " {$name}"
158
+                            . '</div>';
159 159
 
160 160
             $t[] = $cat;
161 161
         }
Please login to merge, or discard this patch.
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  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
-require_once XOOPS_ROOT_PATH . '/class/uploader.php';
18
+require_once XOOPS_ROOT_PATH.'/class/uploader.php';
19 19
 
20 20
 /**
21 21
  * Class ExtcalUtility.
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
     public static function extcal_loadImg(&$REQUEST, &$event_picture1, &$event_picture2)
50 50
     {
51 51
         ///////////////////////////////////////////////////////////////////////////////
52
-        $uploaddir_event = XOOPS_ROOT_PATH . '/uploads/extcal/';
53
-        $uploadurl_event = XOOPS_URL . '/uploads/extcal/';
52
+        $uploaddir_event = XOOPS_ROOT_PATH.'/uploads/extcal/';
53
+        $uploadurl_event = XOOPS_URL.'/uploads/extcal/';
54 54
         //$picture = '';
55 55
         for ($j = 1; $j < 3; ++$j) {
56
-            $delimg = @$REQUEST['delimg_' . $j . ''];
57
-            $delimg = isset($delimg) ? (int)$delimg : 0;
56
+            $delimg = @$REQUEST['delimg_'.$j.''];
57
+            $delimg = isset($delimg) ? (int) $delimg : 0;
58 58
             if (0 == $delimg && !empty($REQUEST['xoops_upload_file'][$j])) {
59 59
                 $upload = new XoopsMediaUploader($uploaddir_event, [
60 60
                     'image/gif',
@@ -77,15 +77,15 @@  discard block
 block discarded – undo
77 77
                             $event_picture2 = $upload->getSavedFileName();
78 78
                         }
79 79
                     }
80
-                } elseif (!empty($REQUEST['file' . $j])) {
80
+                } elseif (!empty($REQUEST['file'.$j])) {
81 81
                     if ($j == 1) {
82
-                        $event_picture1 = $REQUEST['file' . $j];
82
+                        $event_picture1 = $REQUEST['file'.$j];
83 83
                     } elseif ($j == 2) {
84
-                        $event_picture2 = $REQUEST['file' . $j];
84
+                        $event_picture2 = $REQUEST['file'.$j];
85 85
                     }
86 86
                 }
87 87
             } else {
88
-                $url_event = XOOPS_ROOT_PATH . '/uploads/extcal/' . $REQUEST['file' . $j];
88
+                $url_event = XOOPS_ROOT_PATH.'/uploads/extcal/'.$REQUEST['file'.$j];
89 89
                 if ($j == 1) {
90 90
                     $event_picture1 = '';
91 91
                 } elseif ($j == 2) {
@@ -181,17 +181,17 @@  discard block
 block discarded – undo
181 181
             $select->addOption('', '');
182 182
         }
183 183
 
184
-        $select->addOption('year ASC', _MD_EXTCAL_YEAR . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
185
-        $select->addOption('year DESC', _MD_EXTCAL_YEAR . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
184
+        $select->addOption('year ASC', _MD_EXTCAL_YEAR.' '._MD_EXTCAL_ORDER_BY_ASC);
185
+        $select->addOption('year DESC', _MD_EXTCAL_YEAR.' '._MD_EXTCAL_ORDER_BY_DESC);
186 186
 
187
-        $select->addOption('month ASC', _MD_EXTCAL_MONTH . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
188
-        $select->addOption('month DESC', _MD_EXTCAL_MONTH . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
187
+        $select->addOption('month ASC', _MD_EXTCAL_MONTH.' '._MD_EXTCAL_ORDER_BY_ASC);
188
+        $select->addOption('month DESC', _MD_EXTCAL_MONTH.' '._MD_EXTCAL_ORDER_BY_DESC);
189 189
 
190
-        $select->addOption('event_title ASC', _MD_EXTCAL_ALPHA . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
191
-        $select->addOption('event_title DESC', _MD_EXTCAL_ALPHA . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
190
+        $select->addOption('event_title ASC', _MD_EXTCAL_ALPHA.' '._MD_EXTCAL_ORDER_BY_ASC);
191
+        $select->addOption('event_title DESC', _MD_EXTCAL_ALPHA.' '._MD_EXTCAL_ORDER_BY_DESC);
192 192
 
193
-        $select->addOption('cat_name ASC', _MD_EXTCAL_CATEGORY . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
194
-        $select->addOption('cat_name DESC', _MD_EXTCAL_CATEGORY . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
193
+        $select->addOption('cat_name ASC', _MD_EXTCAL_CATEGORY.' '._MD_EXTCAL_ORDER_BY_ASC);
194
+        $select->addOption('cat_name DESC', _MD_EXTCAL_CATEGORY.' '._MD_EXTCAL_ORDER_BY_DESC);
195 195
 
196 196
         return $select;
197 197
     }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     public static function echoDateArray($period)
306 306
     {
307 307
         foreach ($period as $dt) {
308
-            echo $dt->format("l Y-m-d H:i:s\n") . '<br>';
308
+            echo $dt->format("l Y-m-d H:i:s\n").'<br>';
309 309
         }
310 310
     }
311 311
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
         }
322 322
 
323 323
         $txt = print_r($t, true);
324
-        echo '<pre>Number of items: ' . count($t) . "<br>{$txt}</pre>";
324
+        echo '<pre>Number of items: '.count($t)."<br>{$txt}</pre>";
325 325
     }
326 326
 
327 327
     /*****************************************************************/
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
         if ($msg != '') {
335 335
             echo "<hr>{$msg}<hr>";
336 336
         }
337
-        echo $line . '<br>';
337
+        echo $line.'<br>';
338 338
     }
339 339
 
340 340
     /*****************************************************************/
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
             echo "<hr>{$msg}<hr>";
362 362
         }
363 363
 
364
-        echo 'date --->' . $tsName . ' = ' . $ts . ' - ' . date('d-m-Y H:m:s', $ts) . '<br>';
364
+        echo 'date --->'.$tsName.' = '.$ts.' - '.date('d-m-Y H:m:s', $ts).'<br>';
365 365
     }
366 366
 
367 367
     /*****************************************************************/
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
      */
476 476
     public static function getLighterColor($color, $plancher, $plafond)
477 477
     {
478
-        require_once __DIR__ . '/colorTools.php';
478
+        require_once __DIR__.'/colorTools.php';
479 479
 
480 480
         //$ct = new ColorTools();
481 481
         //return $ct->eclaircir($color,$plancher,$plafond);
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
                 if (!mkdir($folder) && !is_dir($folder)) {
498 498
                     throw new \RuntimeException(sprintf('Unable to create the %s directory', $folder));
499 499
                 } else {
500
-                    file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>');
500
+                    file_put_contents($folder.'/index.html', '<script>history.go(-1);</script>');
501 501
                 }
502 502
             }
503 503
         } catch (Exception $e) {
@@ -535,10 +535,10 @@  discard block
 block discarded – undo
535 535
         //    @mkdir($dst);
536 536
         while (false !== ($file = readdir($dir))) {
537 537
             if (($file !== '.') && ($file !== '..')) {
538
-                if (is_dir($src . '/' . $file)) {
539
-                    self::recurseCopy($src . '/' . $file, $dst . '/' . $file);
538
+                if (is_dir($src.'/'.$file)) {
539
+                    self::recurseCopy($src.'/'.$file, $dst.'/'.$file);
540 540
                 } else {
541
-                    copy($src . '/' . $file, $dst . '/' . $file);
541
+                    copy($src.'/'.$file, $dst.'/'.$file);
542 542
                 }
543 543
             }
544 544
         }
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
         $currentVer = substr(XOOPS_VERSION, 6); // get the numeric part of string
566 566
         $currArray  = explode('.', $currentVer);
567 567
         if (null === $requiredVer) {
568
-            $requiredVer = '' . $module->getInfo('min_xoops'); //making sure it's a string
568
+            $requiredVer = ''.$module->getInfo('min_xoops'); //making sure it's a string
569 569
         }
570 570
         $reqArray = explode('.', $requiredVer);
571 571
         $success  = true;
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
                     break;
581 581
                 }
582 582
             } else {
583
-                if ((int)$v > 0) { // handles versions like x.x.x.0_RC2
583
+                if ((int) $v > 0) { // handles versions like x.x.x.0_RC2
584 584
                     $success = false;
585 585
                     break;
586 586
                 }
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/8.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 $basePath = explode('/', $_SERVER['SCRIPT_NAME']);
16 16
 array_pop($basePath);
17 17
 $basePath = implode('/', $basePath);
18
-$url      = 'http://' . $_SERVER['SERVER_NAME'] . $basePath . '/7.php?wsdl';
18
+$url      = 'http://'.$_SERVER['SERVER_NAME'].$basePath.'/7.php?wsdl';
19 19
 
20 20
 if (!isset($_GET['y'])) {
21 21
     $_GET['y'] = date('Y');
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
 
27 27
 $wsdl = new SOAP_WSDL($url);
28 28
 
29
-echo '<pre>' . $wsdl->generateProxyCode() . '</pre>';
29
+echo '<pre>'.$wsdl->generateProxyCode().'</pre>';
30 30
 
31 31
 $calendarClient = $wsdl->getProxy();
32 32
 
33
-$month = $calendarClient->getMonth((int)$_GET['y'], (int)$_GET['m']);
33
+$month = $calendarClient->getMonth((int) $_GET['y'], (int) $_GET['m']);
34 34
 
35 35
 if (PEAR::isError($month)) {
36 36
     die($month->toString());
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         if ($day->isEmpty === 1) {
63 63
             echo '<td></td>';
64 64
         } else {
65
-            echo '<td>' . $day->day . '</td>';
65
+            echo '<td>'.$day->day.'</td>';
66 66
         }
67 67
         if ($day->isLast === 1) {
68 68
             echo "</tr>\n";
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/17.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
 if (!@include 'Calendar/Calendar.php') {
7 7
     define('CALENDAR_ROOT', '../../');
8 8
 }
9
-require_once CALENDAR_ROOT . 'Day.php';
10
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
11
-require_once CALENDAR_ROOT . 'Decorator/Textual.php';
9
+require_once CALENDAR_ROOT.'Day.php';
10
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
11
+require_once CALENDAR_ROOT.'Decorator/Textual.php';
12 12
 
13 13
 // Could change language like this
14 14
 // setlocale (LC_TIME, "de_DE"); // Unix based (probably)
@@ -28,12 +28,12 @@  discard block
 block discarded – undo
28 28
 // Decorate
29 29
 $Textual = new Calendar_Decorator_Textual($Calendar);
30 30
 
31
-echo '<hr>Previous month is: ' . $Textual->prevMonthName('two') . '<br>';
32
-echo 'This month is: ' . $Textual->thisMonthName('short') . '<br>';
33
-echo 'Next month is: ' . $Textual->nextMonthName() . '<br><hr>';
34
-echo 'Previous day is: ' . $Textual->prevDayName() . '<br>';
35
-echo 'This day is: ' . $Textual->thisDayName('short') . '<br>';
36
-echo 'Next day is: ' . $Textual->nextDayName('one') . '<br><hr>';
31
+echo '<hr>Previous month is: '.$Textual->prevMonthName('two').'<br>';
32
+echo 'This month is: '.$Textual->thisMonthName('short').'<br>';
33
+echo 'Next month is: '.$Textual->nextMonthName().'<br><hr>';
34
+echo 'Previous day is: '.$Textual->prevDayName().'<br>';
35
+echo 'This day is: '.$Textual->thisDayName('short').'<br>';
36
+echo 'Next day is: '.$Textual->nextDayName('one').'<br><hr>';
37 37
 
38 38
 echo "Creating: new Calendar_Month_Weekdays(date('Y'), date('n'), 6); - Saturday is first day of week<br>";
39 39
 $Calendar = new Calendar_Month_Weekdays(date('Y'), date('n'), 6);
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
 ?>
44 44
 <p>Rendering calendar....</p>
45 45
 <table>
46
-    <caption><?php echo $Textual->thisMonthName() . ' ' . $Textual->thisYear(); ?></caption>
46
+    <caption><?php echo $Textual->thisMonthName().' '.$Textual->thisYear(); ?></caption>
47 47
     <tr>
48 48
         <?php
49 49
         $dayheaders = $Textual->orderedWeekdays('short');
50 50
         foreach ($dayheaders as $dayheader) {
51
-            echo '<th>' . $dayheader . '</th>';
51
+            echo '<th>'.$dayheader.'</th>';
52 52
         }
53 53
         ?>
54 54
     </tr>
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         if ($Day->isEmpty()) {
62 62
             echo '<td>&nbsp;</td>';
63 63
         } else {
64
-            echo '<td>' . $Day->thisDay() . '</td>';
64
+            echo '<td>'.$Day->thisDay().'</td>';
65 65
         }
66 66
         if ($Day->isLast()) {
67 67
             echo "</tr>\n";
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/23.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
 if (!@include 'Calendar/Calendar.php') {
7 7
     define('CALENDAR_ROOT', '../../');
8 8
 }
9
-require_once CALENDAR_ROOT . 'Day.php';
10
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
11
-require_once CALENDAR_ROOT . 'Util/Textual.php';
9
+require_once CALENDAR_ROOT.'Day.php';
10
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
11
+require_once CALENDAR_ROOT.'Util/Textual.php';
12 12
 
13 13
 // Could change language like this
14 14
 // setlocale (LC_TIME, "de_DE"); // Unix based (probably)
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
 echo "<hr>Creating: new Calendar_Day(date('Y'), date('n'), date('d'));<br>";
26 26
 $Calendar = new Calendar_Day(date('Y'), date('n'), date('d'));
27 27
 
28
-echo '<hr>Previous month is: ' . Calendar_Util_Textual::prevMonthName($Calendar, 'two') . '<br>';
29
-echo 'This month is: ' . Calendar_Util_Textual::thisMonthName($Calendar, 'short') . '<br>';
30
-echo 'Next month is: ' . Calendar_Util_Textual::nextMonthName($Calendar) . '<br><hr>';
31
-echo 'Previous day is: ' . Calendar_Util_Textual::prevDayName($Calendar) . '<br>';
32
-echo 'This day is: ' . Calendar_Util_Textual::thisDayName($Calendar, 'short') . '<br>';
33
-echo 'Next day is: ' . Calendar_Util_Textual::nextDayName($Calendar, 'one') . '<br><hr>';
28
+echo '<hr>Previous month is: '.Calendar_Util_Textual::prevMonthName($Calendar, 'two').'<br>';
29
+echo 'This month is: '.Calendar_Util_Textual::thisMonthName($Calendar, 'short').'<br>';
30
+echo 'Next month is: '.Calendar_Util_Textual::nextMonthName($Calendar).'<br><hr>';
31
+echo 'Previous day is: '.Calendar_Util_Textual::prevDayName($Calendar).'<br>';
32
+echo 'This day is: '.Calendar_Util_Textual::thisDayName($Calendar, 'short').'<br>';
33
+echo 'Next day is: '.Calendar_Util_Textual::nextDayName($Calendar, 'one').'<br><hr>';
34 34
 
35 35
 echo "Creating: new Calendar_Month_Weekdays(date('Y'), date('n'), 6); - Saturday is first day of week<br>";
36 36
 $Calendar = new Calendar_Month_Weekdays(date('Y'), date('n'), 6);
@@ -38,12 +38,12 @@  discard block
 block discarded – undo
38 38
 ?>
39 39
 <p>Rendering calendar....</p>
40 40
 <table>
41
-    <caption><?php echo Calendar_Util_Textual::thisMonthName($Calendar) . ' ' . $Calendar->thisYear(); ?></caption>
41
+    <caption><?php echo Calendar_Util_Textual::thisMonthName($Calendar).' '.$Calendar->thisYear(); ?></caption>
42 42
     <tr>
43 43
         <?php
44 44
         $dayheaders = Calendar_Util_Textual::orderedWeekdays($Calendar, 'short');
45 45
         foreach ($dayheaders as $dayheader) {
46
-            echo '<th>' . $dayheader . '</th>';
46
+            echo '<th>'.$dayheader.'</th>';
47 47
         }
48 48
         ?>
49 49
     </tr>
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         if ($Day->isEmpty()) {
57 57
             echo '<td>&nbsp;</td>';
58 58
         } else {
59
-            echo '<td>' . $Day->thisDay() . '</td>';
59
+            echo '<td>'.$Day->thisDay().'</td>';
60 60
         }
61 61
         if ($Day->isLast()) {
62 62
             echo "</tr>\n";
Please login to merge, or discard this patch.
blocks/category_events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /******************************************************/
23 23
 /* Ajour JJD - Evenements par categries               */
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 {
32 32
     global $xoopsUser, $extcalConfig;
33 33
 
34
-    require_once __DIR__ . '/../class/config.php';
34
+    require_once __DIR__.'/../class/config.php';
35 35
 
36 36
     // Retriving module config
37 37
     //     $extcalConfig = ExtcalConfig::getHandler();
@@ -88,22 +88,22 @@  discard block
 block discarded – undo
88 88
 
89 89
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
90 90
 
91
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
92
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
93
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
91
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
92
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
93
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
94 94
     array_shift($options);
95 95
     array_shift($options);
96
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
96
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
97 97
     if (array_search(0, $options) === false) {
98
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
98
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
99 99
     } else {
100
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
100
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
101 101
     }
102 102
     foreach ($cats as $cat) {
103 103
         if (array_search($cat->getVar('cat_id'), $options) === false) {
104
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
104
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
105 105
         } else {
106
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
106
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
107 107
         }
108 108
     }
109 109
     $form .= '</select>';
Please login to merge, or discard this patch.
blocks/random_events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /**
23 23
  * @param $options
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function bExtcalRandomShow($options)
28 28
 {
29
-    require_once __DIR__ . '/../class/config.php';
29
+    require_once __DIR__.'/../class/config.php';
30 30
 
31 31
     // Retriving module config
32 32
     $extcalConfig      = ExtcalConfig::getHandler();
@@ -64,22 +64,22 @@  discard block
 block discarded – undo
64 64
 
65 65
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
66 66
 
67
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
68
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
69
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
67
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
68
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
69
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
70 70
     array_shift($options);
71 71
     array_shift($options);
72
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
72
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
73 73
     if (array_search(0, $options) === false) {
74
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
74
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
75 75
     } else {
76
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
76
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
77 77
     }
78 78
     foreach ($cats as $cat) {
79 79
         if (array_search($cat->getVar('cat_id'), $options) === false) {
80
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
80
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
81 81
         } else {
82
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
82
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
83 83
         }
84 84
     }
85 85
     $form .= '</select>';
Please login to merge, or discard this patch.