Completed
Push — master ( 92c65a...a0a739 )
by Michael
02:30
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 (_EXTCAL_HEADER_HTML == $mode) {
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 (_EXTCAL_HEADER_HTML == $mode) {
319 319
         $header[] = 'MIME-Version: 1.0';
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() . '&month=' . $monthCalObj->thisMonth(),
222
+        'uri'  => 'year='.$monthCalObj->thisYear().'&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 (1 == $j) {
82
-                        $event_picture1 = $REQUEST['file' . $j];
82
+                        $event_picture1 = $REQUEST['file'.$j];
83 83
                     } elseif (2 == $j) {
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 (1 == $j) {
90 90
                     $event_picture1 = '';
91 91
                 } elseif (2 == $j) {
@@ -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/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.
new_event.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
5
-require_once __DIR__ . '/header.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5
+require_once __DIR__.'/header.php';
6 6
 
7 7
 // Getting eXtCal object's handler
8 8
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 $permHandler = ExtcalPerm::getHandler();
11 11
 $xoopsUser   = $xoopsUser ?: null;
12 12
 if (count($permHandler->getAuthorizedCat($xoopsUser, 'extcal_cat_submit')) > 0) {
13
-    include XOOPS_ROOT_PATH . '/header.php';
13
+    include XOOPS_ROOT_PATH.'/header.php';
14 14
 
15 15
     // Title of the page
16 16
     $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     //$form->display();
22 22
 
23
-    include XOOPS_ROOT_PATH . '/footer.php';
23
+    include XOOPS_ROOT_PATH.'/footer.php';
24 24
 } else {
25 25
     redirect_header('index.php', 3);
26 26
 }
Please login to merge, or discard this patch.
comment_new.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-$com_itemid = isset($_GET['com_itemid']) ? (int)$_GET['com_itemid'] : 0;
20
+include __DIR__.'/../../mainfile.php';
21
+$com_itemid = isset($_GET['com_itemid']) ? (int) $_GET['com_itemid'] : 0;
22 22
 if ($com_itemid > 0) {
23 23
     // Get link title
24
-    $sql            = 'SELECT event_title, event_desc FROM ' . $xoopsDB->prefix('extcal_event') . ' WHERE event_id=' . $com_itemid . '';
24
+    $sql            = 'SELECT event_title, event_desc FROM '.$xoopsDB->prefix('extcal_event').' WHERE event_id='.$com_itemid.'';
25 25
     $result         = $xoopsDB->query($sql);
26 26
     $row            = $xoopsDB->fetchArray($result);
27 27
     $com_replytitle = $row['event_title'];
28 28
     $com_replytext  = $row['event_desc'];
29
-    include XOOPS_ROOT_PATH . '/include/comment_new.php';
29
+    include XOOPS_ROOT_PATH.'/include/comment_new.php';
30 30
 }
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../include/cp_header.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21 21
 require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
22 22
 
23 23
 $moduleDirName = basename(dirname(__DIR__));
Please login to merge, or discard this patch.
admin/permissions.php 2 patches
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
          * Public category permission mask
94 94
          */
95 95
         echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif">&nbsp;'
96
-             . _AM_EXTCAL_PUBLIC_PERM_MASK
97
-             . '</a></legend><div id="default">';
96
+                . _AM_EXTCAL_PUBLIC_PERM_MASK
97
+                . '</a></legend><div id="default">';
98 98
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
99 99
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
100 100
         echo '</fieldset><br>';
@@ -144,20 +144,20 @@  discard block
 block discarded – undo
144 144
         }
145 145
 
146 146
         echo '<fieldset id="'
147
-             . $permName
148
-             . 'Bookmark"><legend><a href="#'
149
-             . $permName
150
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
151
-             . $permName
152
-             . '\'); toggleIcon(\''
153
-             . $permName
154
-             . 'Icon\');"><img id="'
155
-             . $permName
156
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
157
-             . $titleOfForm
158
-             . '</a></legend><div id="'
159
-             . $permName
160
-             . '">';
147
+                . $permName
148
+                . 'Bookmark"><legend><a href="#'
149
+                . $permName
150
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
151
+                . $permName
152
+                . '\'); toggleIcon(\''
153
+                . $permName
154
+                . 'Icon\');"><img id="'
155
+                . $permName
156
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
157
+                . $titleOfForm
158
+                . '</a></legend><div id="'
159
+                . $permName
160
+                . '">';
161 161
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
162 162
         echo $permDesc;
163 163
         echo '</fieldset>';
@@ -182,20 +182,20 @@  discard block
 block discarded – undo
182 182
         }
183 183
 
184 184
         echo '<fieldset id="'
185
-             . $permName
186
-             . 'Bookmark"><legend><a href="#'
187
-             . $permName
188
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
189
-             . $permName
190
-             . '\'); toggleIcon(\''
191
-             . $permName
192
-             . 'Icon\');"><img id="'
193
-             . $permName
194
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
195
-             . $titleOfForm
196
-             . '</a></legend><div id="'
197
-             . $permName
198
-             . '">';
185
+                . $permName
186
+                . 'Bookmark"><legend><a href="#'
187
+                . $permName
188
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
189
+                . $permName
190
+                . '\'); toggleIcon(\''
191
+                . $permName
192
+                . 'Icon\');"><img id="'
193
+                . $permName
194
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
195
+                . $titleOfForm
196
+                . '</a></legend><div id="'
197
+                . $permName
198
+                . '">';
199 199
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
200 200
         echo $permDesc;
201 201
         echo '</fieldset>';
@@ -219,20 +219,20 @@  discard block
 block discarded – undo
219 219
         }
220 220
 
221 221
         echo '<fieldset id="'
222
-             . $permName
223
-             . 'Bookmark"><legend><a href="#'
224
-             . $permName
225
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
226
-             . $permName
227
-             . '\'); toggleIcon(\''
228
-             . $permName
229
-             . 'Icon\');"><img id="'
230
-             . $permName
231
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
232
-             . $titleOfForm
233
-             . '</a></legend><div id="'
234
-             . $permName
235
-             . '">';
222
+                . $permName
223
+                . 'Bookmark"><legend><a href="#'
224
+                . $permName
225
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
226
+                . $permName
227
+                . '\'); toggleIcon(\''
228
+                . $permName
229
+                . 'Icon\');"><img id="'
230
+                . $permName
231
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
232
+                . $titleOfForm
233
+                . '</a></legend><div id="'
234
+                . $permName
235
+                . '">';
236 236
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
237 237
         echo $permDesc;
238 238
         echo '</fieldset>';
@@ -256,20 +256,20 @@  discard block
 block discarded – undo
256 256
         }
257 257
 
258 258
         echo '<fieldset id="'
259
-             . $permName
260
-             . 'Bookmark"><legend><a href="#'
261
-             . $permName
262
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
263
-             . $permName
264
-             . '\'); toggleIcon(\''
265
-             . $permName
266
-             . 'Icon\');"><img id="'
267
-             . $permName
268
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
269
-             . $titleOfForm
270
-             . '</a></legend><div id="'
271
-             . $permName
272
-             . '">';
259
+                . $permName
260
+                . 'Bookmark"><legend><a href="#'
261
+                . $permName
262
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
263
+                . $permName
264
+                . '\'); toggleIcon(\''
265
+                . $permName
266
+                . 'Icon\');"><img id="'
267
+                . $permName
268
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
269
+                . $titleOfForm
270
+                . '</a></legend><div id="'
271
+                . $permName
272
+                . '">';
273 273
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
274 274
         echo $permDesc;
275 275
         echo '</fieldset>';
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../include/cp_header.php';
21
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
22
-require_once __DIR__ . '/admin_header.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
22
+require_once __DIR__.'/admin_header.php';
23 23
 
24 24
 $step = 'default';
25 25
 if (isset($_POST['step'])) {
@@ -95,35 +95,35 @@  discard block
 block discarded – undo
95 95
         echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif">&nbsp;'
96 96
              . _AM_EXTCAL_PUBLIC_PERM_MASK
97 97
              . '</a></legend><div id="default">';
98
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
98
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
99 99
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
100 100
         echo '</fieldset><br>';
101 101
         echo '<table class="outer" style="width:100%;">';
102 102
         echo '<form method="post" action="permissions.php">';
103 103
         echo '<tr>';
104
-        echo '<th colspan="8" style="text-align:center;">' . _AM_EXTCAL_PUBLIC_PERM_MASK . '</th>';
104
+        echo '<th colspan="8" style="text-align:center;">'._AM_EXTCAL_PUBLIC_PERM_MASK.'</th>';
105 105
         echo '</tr>';
106 106
         echo '<tr>';
107
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_GROUP_NAME . '</td>';
108
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_VIEW . '</td>';
109
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_SUBMIT . '</td>';
110
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_AUTO_APPROVE . '</td>';
111
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_EDIT . '</td>';
107
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_GROUP_NAME.'</td>';
108
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_VIEW.'</td>';
109
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_SUBMIT.'</td>';
110
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_AUTO_APPROVE.'</td>';
111
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_EDIT.'</td>';
112 112
         echo '</tr>';
113 113
         $i = 0;
114 114
         foreach ($glist as $k => $v) {
115 115
             $style = (0 == ++$i % 2) ? 'odd' : 'even';
116 116
             echo '<tr>';
117
-            echo '<td class="' . $style . '">' . $v . '</td>';
118
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][1]" type="checkbox"' . getChecked($viewGroup, $k) . '></td>';
119
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][2]" type="checkbox"' . getChecked($submitGroup, $k) . '></td>';
120
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][4]" type="checkbox"' . getChecked($autoApproveGroup, $k) . '></td>';
121
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][8]" type="checkbox"' . getChecked($editGroup, $k) . '></td>';
117
+            echo '<td class="'.$style.'">'.$v.'</td>';
118
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][1]" type="checkbox"'.getChecked($viewGroup, $k).'></td>';
119
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][2]" type="checkbox"'.getChecked($submitGroup, $k).'></td>';
120
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][4]" type="checkbox"'.getChecked($autoApproveGroup, $k).'></td>';
121
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][8]" type="checkbox"'.getChecked($editGroup, $k).'></td>';
122 122
             echo '</tr>';
123 123
         }
124 124
         echo '<input type="hidden" name="type" value="public">';
125 125
         echo '<input type="hidden" name="step" value="enreg">';
126
-        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="' . _SUBMIT . '"></td></tr></form>';
126
+        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="'._SUBMIT.'"></td></tr></form>';
127 127
         echo '</table><br>';
128 128
 
129 129
         echo '</div></fieldset><br>';
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
              . '</a></legend><div id="'
159 159
              . $permName
160 160
              . '">';
161
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
161
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
162 162
         echo $permDesc;
163 163
         echo '</fieldset>';
164 164
 
165 165
         if ($catHandler->getCount()) {
166
-            echo $form->render() . '<br>';
166
+            echo $form->render().'<br>';
167 167
         } else {
168 168
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
169 169
         }
@@ -196,11 +196,11 @@  discard block
 block discarded – undo
196 196
              . '</a></legend><div id="'
197 197
              . $permName
198 198
              . '">';
199
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
199
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
200 200
         echo $permDesc;
201 201
         echo '</fieldset>';
202 202
         if ($catHandler->getCount()) {
203
-            echo $form->render() . '<br>';
203
+            echo $form->render().'<br>';
204 204
         } else {
205 205
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
206 206
         }
@@ -233,11 +233,11 @@  discard block
 block discarded – undo
233 233
              . '</a></legend><div id="'
234 234
              . $permName
235 235
              . '">';
236
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
236
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
237 237
         echo $permDesc;
238 238
         echo '</fieldset>';
239 239
         if ($catHandler->getCount()) {
240
-            echo $form->render() . '<br>';
240
+            echo $form->render().'<br>';
241 241
         } else {
242 242
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
243 243
         }
@@ -270,11 +270,11 @@  discard block
 block discarded – undo
270 270
              . '</a></legend><div id="'
271 271
              . $permName
272 272
              . '">';
273
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
273
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
274 274
         echo $permDesc;
275 275
         echo '</fieldset>';
276 276
         if ($catHandler->getCount()) {
277
-            echo $form->render() . '<br>';
277
+            echo $form->render().'<br>';
278 278
         } else {
279 279
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
280 280
         }
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
         echo 'toggle(\'extcal_cat_edit\'); toggleIcon (\'extcal_cat_editIcon\');';
292 292
         echo '</script>';
293 293
 
294
-        require_once __DIR__ . '/admin_footer.php';
294
+        require_once __DIR__.'/admin_footer.php';
295 295
 
296 296
         break;
297 297
 
Please login to merge, or discard this patch.