Passed
Push — master ( d2520f...3f8ec2 )
by Michael
02:50
created
class/Common/Breadcrumb.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         require_once $GLOBALS['xoops']->path('class/template.php');
71 71
         $breadcrumbTpl = new \XoopsTpl();
72 72
         $breadcrumbTpl->assign('breadcrumb', $this->bread);
73
-        $html = $breadcrumbTpl->fetch('db:' . $this->dirname . '_common_breadcrumb.tpl');
73
+        $html = $breadcrumbTpl->fetch('db:'.$this->dirname.'_common_breadcrumb.tpl');
74 74
         unset($breadcrumbTpl);
75 75
 
76 76
         return $html;
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] = (0 != $j) ? $i . ':' . $j : $i . ':0' . $j;
31
+                $timearray[$key] = (0 != $j) ? $i.':'.$j : $i.':0'.$j;
32 32
             }
33 33
         }
34 34
         ksort($timearray);
Please login to merge, or discard this patch.
class/Utility.php 2 patches
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   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * L'utilisation de ce formulaire d'adminitration suppose
17 17
  * que la classe correspondante de la table a été générées avec classGenerator
18 18
  **/
19
-require_once XOOPS_ROOT_PATH . '/class/uploader.php';
19
+require_once XOOPS_ROOT_PATH.'/class/uploader.php';
20 20
 
21 21
 use XoopsModules\Extcal;
22 22
 use XoopsModules\Extcal\Common;
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
     public static function loadImg(&$REQUEST, &$event_picture1, &$event_picture2)
61 61
     {
62 62
         ///////////////////////////////////////////////////////////////////////////////
63
-        $uploaddir_event = XOOPS_ROOT_PATH . '/uploads/extcal/';
64
-        $uploadurl_event = XOOPS_URL . '/uploads/extcal/';
63
+        $uploaddir_event = XOOPS_ROOT_PATH.'/uploads/extcal/';
64
+        $uploadurl_event = XOOPS_URL.'/uploads/extcal/';
65 65
         //$picture = '';
66 66
         for ($j = 1; $j < 3; ++$j) {
67
-            $delimg = @$REQUEST['delimg_' . $j . ''];
68
-            $delimg = isset($delimg) ? (int)$delimg : 0;
67
+            $delimg = @$REQUEST['delimg_'.$j.''];
68
+            $delimg = isset($delimg) ? (int) $delimg : 0;
69 69
             if (0 == $delimg && !empty($REQUEST['xoops_upload_file'][$j])) {
70 70
                 $upload = new \XoopsMediaUploader($uploaddir_event, [
71 71
                     'image/gif',
@@ -88,15 +88,15 @@  discard block
 block discarded – undo
88 88
                             $event_picture2 = $upload->getSavedFileName();
89 89
                         }
90 90
                     }
91
-                } elseif (!empty($REQUEST['file' . $j])) {
91
+                } elseif (!empty($REQUEST['file'.$j])) {
92 92
                     if (1 == $j) {
93
-                        $event_picture1 = $REQUEST['file' . $j];
93
+                        $event_picture1 = $REQUEST['file'.$j];
94 94
                     } elseif (2 == $j) {
95
-                        $event_picture2 = $REQUEST['file' . $j];
95
+                        $event_picture2 = $REQUEST['file'.$j];
96 96
                     }
97 97
                 }
98 98
             } else {
99
-                $url_event = XOOPS_ROOT_PATH . '/uploads/extcal/' . $REQUEST['file' . $j];
99
+                $url_event = XOOPS_ROOT_PATH.'/uploads/extcal/'.$REQUEST['file'.$j];
100 100
                 if (1 == $j) {
101 101
                     $event_picture1 = '';
102 102
                 } elseif (2 == $j) {
@@ -192,17 +192,17 @@  discard block
 block discarded – undo
192 192
             $select->addOption('', '');
193 193
         }
194 194
 
195
-        $select->addOption('year ASC', _MD_EXTCAL_YEAR . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
196
-        $select->addOption('year DESC', _MD_EXTCAL_YEAR . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
195
+        $select->addOption('year ASC', _MD_EXTCAL_YEAR.' '._MD_EXTCAL_ORDER_BY_ASC);
196
+        $select->addOption('year DESC', _MD_EXTCAL_YEAR.' '._MD_EXTCAL_ORDER_BY_DESC);
197 197
 
198
-        $select->addOption('month ASC', _MD_EXTCAL_MONTH . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
199
-        $select->addOption('month DESC', _MD_EXTCAL_MONTH . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
198
+        $select->addOption('month ASC', _MD_EXTCAL_MONTH.' '._MD_EXTCAL_ORDER_BY_ASC);
199
+        $select->addOption('month DESC', _MD_EXTCAL_MONTH.' '._MD_EXTCAL_ORDER_BY_DESC);
200 200
 
201
-        $select->addOption('event_title ASC', _MD_EXTCAL_ALPHA . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
202
-        $select->addOption('event_title DESC', _MD_EXTCAL_ALPHA . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
201
+        $select->addOption('event_title ASC', _MD_EXTCAL_ALPHA.' '._MD_EXTCAL_ORDER_BY_ASC);
202
+        $select->addOption('event_title DESC', _MD_EXTCAL_ALPHA.' '._MD_EXTCAL_ORDER_BY_DESC);
203 203
 
204
-        $select->addOption('cat_name ASC', _MD_EXTCAL_CATEGORY . ' ' . _MD_EXTCAL_ORDER_BY_ASC);
205
-        $select->addOption('cat_name DESC', _MD_EXTCAL_CATEGORY . ' ' . _MD_EXTCAL_ORDER_BY_DESC);
204
+        $select->addOption('cat_name ASC', _MD_EXTCAL_CATEGORY.' '._MD_EXTCAL_ORDER_BY_ASC);
205
+        $select->addOption('cat_name DESC', _MD_EXTCAL_CATEGORY.' '._MD_EXTCAL_ORDER_BY_DESC);
206 206
 
207 207
         return $select;
208 208
     }
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     public static function echoDateArray($period)
317 317
     {
318 318
         foreach ($period as $dt) {
319
-            echo $dt->format("l Y-m-d H:i:s\n") . '<br>';
319
+            echo $dt->format("l Y-m-d H:i:s\n").'<br>';
320 320
         }
321 321
     }
322 322
 
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
         }
333 333
 
334 334
         $txt = print_r($t, true);
335
-        echo '<pre>Number of items: ' . count($t) . "<br>{$txt}</pre>";
335
+        echo '<pre>Number of items: '.count($t)."<br>{$txt}</pre>";
336 336
     }
337 337
 
338 338
     /*****************************************************************/
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
         if ('' != $msg) {
346 346
             echo "<hr>{$msg}<hr>";
347 347
         }
348
-        echo $line . '<br>';
348
+        echo $line.'<br>';
349 349
     }
350 350
 
351 351
     /*****************************************************************/
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
             echo "<hr>{$msg}<hr>";
373 373
         }
374 374
 
375
-        echo 'date --->' . $tsName . ' = ' . $ts . ' - ' . date('d-m-Y H:m:s', $ts) . '<br>';
375
+        echo 'date --->'.$tsName.' = '.$ts.' - '.date('d-m-Y H:m:s', $ts).'<br>';
376 376
     }
377 377
 
378 378
     /*****************************************************************/
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
      */
487 487
     public static function getLighterColor($color, $plancher, $plafond)
488 488
     {
489
-        require_once __DIR__ . '/ColorTools.php';
489
+        require_once __DIR__.'/ColorTools.php';
490 490
 
491 491
         //$ct = new \ColorTools();
492 492
         //return $ct->eclaircir($color,$plancher,$plafond);
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/1.php 2 patches
Switch Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -35,33 +35,33 @@
 block discarded – undo
35 35
 }
36 36
 
37 37
 switch (@$_GET['view']) {
38
-    default:
39
-        $_GET['view'] = 'calendar_year';
40
-    // no break
41
-    case 'calendar_year':
42
-        require_once CALENDAR_ROOT . 'Year.php';
43
-        $c = new Calendar_Year($_GET['y']);
44
-        break;
45
-    case 'calendar_month':
46
-        require_once CALENDAR_ROOT . 'Month.php';
47
-        $c = new Calendar_Month($_GET['y'], $_GET['m']);
48
-        break;
49
-    case 'calendar_day':
50
-        require_once CALENDAR_ROOT . 'Day.php';
51
-        $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
52
-        break;
53
-    case 'calendar_hour':
54
-        require_once CALENDAR_ROOT . 'Hour.php';
55
-        $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
56
-        break;
57
-    case 'calendar_minute':
58
-        require_once CALENDAR_ROOT . 'Minute.php';
59
-        $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
60
-        break;
61
-    case 'calendar_second':
62
-        require_once CALENDAR_ROOT . 'Second.php';
63
-        $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
64
-        break;
38
+        default:
39
+            $_GET['view'] = 'calendar_year';
40
+        // no break
41
+        case 'calendar_year':
42
+            require_once CALENDAR_ROOT . 'Year.php';
43
+            $c = new Calendar_Year($_GET['y']);
44
+            break;
45
+        case 'calendar_month':
46
+            require_once CALENDAR_ROOT . 'Month.php';
47
+            $c = new Calendar_Month($_GET['y'], $_GET['m']);
48
+            break;
49
+        case 'calendar_day':
50
+            require_once CALENDAR_ROOT . 'Day.php';
51
+            $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
52
+            break;
53
+        case 'calendar_hour':
54
+            require_once CALENDAR_ROOT . 'Hour.php';
55
+            $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
56
+            break;
57
+        case 'calendar_minute':
58
+            require_once CALENDAR_ROOT . 'Minute.php';
59
+            $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
60
+            break;
61
+        case 'calendar_second':
62
+            require_once CALENDAR_ROOT . 'Second.php';
63
+            $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
64
+            break;
65 65
 }
66 66
 
67 67
 echo 'Viewing: ' . @$_GET['view'] . '<br>';
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     list($usec, $sec) = explode(' ', microtime());
10 10
 
11
-    return (float)$usec + (float)$sec;
11
+    return (float) $usec + (float) $sec;
12 12
 }
13 13
 
14 14
 if (!@include 'Calendar/Calendar.php') {
@@ -39,33 +39,33 @@  discard block
 block discarded – undo
39 39
         $_GET['view'] = 'calendar_year';
40 40
     // no break
41 41
     case 'calendar_year':
42
-        require_once CALENDAR_ROOT . 'Year.php';
42
+        require_once CALENDAR_ROOT.'Year.php';
43 43
         $c = new Calendar_Year($_GET['y']);
44 44
         break;
45 45
     case 'calendar_month':
46
-        require_once CALENDAR_ROOT . 'Month.php';
46
+        require_once CALENDAR_ROOT.'Month.php';
47 47
         $c = new Calendar_Month($_GET['y'], $_GET['m']);
48 48
         break;
49 49
     case 'calendar_day':
50
-        require_once CALENDAR_ROOT . 'Day.php';
50
+        require_once CALENDAR_ROOT.'Day.php';
51 51
         $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
52 52
         break;
53 53
     case 'calendar_hour':
54
-        require_once CALENDAR_ROOT . 'Hour.php';
54
+        require_once CALENDAR_ROOT.'Hour.php';
55 55
         $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
56 56
         break;
57 57
     case 'calendar_minute':
58
-        require_once CALENDAR_ROOT . 'Minute.php';
58
+        require_once CALENDAR_ROOT.'Minute.php';
59 59
         $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
60 60
         break;
61 61
     case 'calendar_second':
62
-        require_once CALENDAR_ROOT . 'Second.php';
62
+        require_once CALENDAR_ROOT.'Second.php';
63 63
         $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
64 64
         break;
65 65
 }
66 66
 
67
-echo 'Viewing: ' . @$_GET['view'] . '<br>';
68
-echo 'The time is now: ' . date('Y M d H:i:s', $c->getTimestamp()) . '<br >';
67
+echo 'Viewing: '.@$_GET['view'].'<br>';
68
+echo 'The time is now: '.date('Y M d H:i:s', $c->getTimestamp()).'<br >';
69 69
 
70 70
 $i = 1;
71 71
 echo '<h1>First Iteration</h1>';
@@ -75,15 +75,15 @@  discard block
 block discarded – undo
75 75
 $c->build();
76 76
 while ($e = $c->fetch()) {
77 77
     $class  = strtolower(get_class($e));
78
-    $link   = '&y=' . $e->thisYear() . '&m=' . $e->thisMonth() . '&d=' . $e->thisDay() . '&h=' . $e->thisHour() . '&i=' . $e->thisMinute() . '&s=' . $e->thisSecond();
79
-    $method = 'this' . str_replace('calendar_', '', $class);
80
-    echo '<a href="' . $_SERVER['PHP_SELF'] . '?view=' . $class . $link . '">' . $e->{$method}() . '</a> : ';
78
+    $link   = '&y='.$e->thisYear().'&m='.$e->thisMonth().'&d='.$e->thisDay().'&h='.$e->thisHour().'&i='.$e->thisMinute().'&s='.$e->thisSecond();
79
+    $method = 'this'.str_replace('calendar_', '', $class);
80
+    echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$class.$link.'">'.$e->{$method}().'</a> : ';
81 81
     if (0 == ($i % 10)) {
82 82
         echo '<br>';
83 83
     }
84 84
     ++$i;
85 85
 }
86
-echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>';
86
+echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>';
87 87
 
88 88
 $i = 1;
89 89
 echo '<h1>Second Iteration</h1>';
@@ -92,12 +92,12 @@  discard block
 block discarded – undo
92 92
 $start = getmicrotime();
93 93
 while ($e = $c->fetch()) {
94 94
     $class  = strtolower(get_class($e));
95
-    $link   = '&y=' . $e->thisYear() . '&m=' . $e->thisMonth() . '&d=' . $e->thisDay() . '&h=' . $e->thisHour() . '&i=' . $e->thisMinute() . '&s=' . $e->thisSecond();
96
-    $method = 'this' . str_replace('calendar_', '', $class);
97
-    echo '<a href="' . $_SERVER['PHP_SELF'] . '?view=' . $class . $link . '">' . $e->{$method}() . '</a> : ';
95
+    $link   = '&y='.$e->thisYear().'&m='.$e->thisMonth().'&d='.$e->thisDay().'&h='.$e->thisHour().'&i='.$e->thisMinute().'&s='.$e->thisSecond();
96
+    $method = 'this'.str_replace('calendar_', '', $class);
97
+    echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$class.$link.'">'.$e->{$method}().'</a> : ';
98 98
     if (0 == ($i % 10)) {
99 99
         echo '<br>';
100 100
     }
101 101
     ++$i;
102 102
 }
103
-echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>';
103
+echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>';
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/6.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     list($usec, $sec) = explode(' ', microtime());
10 10
 
11
-    return (float)$usec + (float)$sec;
11
+    return (float) $usec + (float) $sec;
12 12
 }
13 13
 
14 14
 $start = getmicrotime();
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
 if (!@include 'Calendar/Calendar.php') {
17 17
     define('CALENDAR_ROOT', '../../');
18 18
 }
19
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
20
-require_once CALENDAR_ROOT . 'Day.php';
19
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
20
+require_once CALENDAR_ROOT.'Day.php';
21 21
 
22 22
 if (!isset($_GET['y'])) {
23 23
     $_GET['y'] = date('Y');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 <anchor>
49 49
                     Back to Month View
50 50
                     <go href="<?php
51
-                    echo '?y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . '&amp;mime=wml'; ?>">
51
+                    echo '?y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay().'&amp;mime=wml'; ?>">
52 52
                 </anchor>
53 53
             </p>
54 54
             <table>
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                 $Day->build();
57 57
                 while ($Hour = $Day->fetch()) {
58 58
                     echo "<tr>\n";
59
-                    echo '<td>' . date('g a', $Hour->getTimestamp()) . "</td><td>Free time!</td>\n";
59
+                    echo '<td>'.date('g a', $Hour->getTimestamp())."</td><td>Free time!</td>\n";
60 60
                     echo "</tr>\n";
61 61
                 } ?>
62 62
             </table>
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
                     if ($Day->isEmpty()) {
84 84
                         echo "<td></td>\n";
85 85
                     } elseif ($Day->isSelected()) {
86
-                        echo '<td><anchor><strong><u>' . $Day->thisDay() . "</u></strong>\n<go href=\"" . $_SERVER['PHP_SELF'] . '?viewday=true&amp;y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . "&amp;mime=wml\">\n</anchor></td>\n";
86
+                        echo '<td><anchor><strong><u>'.$Day->thisDay()."</u></strong>\n<go href=\"".$_SERVER['PHP_SELF'].'?viewday=true&amp;y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay()."&amp;mime=wml\">\n</anchor></td>\n";
87 87
                     } else {
88
-                        echo '<td><anchor>' . $Day->thisDay() . "\n<go href=\"?viewday=true&amp;y=" . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . "&amp;mime=wml\"></anchor></td>\n";
88
+                        echo '<td><anchor>'.$Day->thisDay()."\n<go href=\"?viewday=true&amp;y=".$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay()."&amp;mime=wml\"></anchor></td>\n";
89 89
                     }
90 90
                     if ($Day->isLast()) {
91 91
                         echo "</tr>\n";
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                         <anchor>
97 97
                             &lt;&lt;
98 98
                             <go href="<?php
99
-                            echo '?y=' . $Month->thisYear() . '&amp;m=' . $Month->prevMonth() . '&amp;d=' . $Month->thisDay() . '&amp;mime=wml'; ?>">
99
+                            echo '?y='.$Month->thisYear().'&amp;m='.$Month->prevMonth().'&amp;d='.$Month->thisDay().'&amp;mime=wml'; ?>">
100 100
                         </anchor>
101 101
                     </td>
102 102
                     <td></td>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                         <anchor>
109 109
                             &gt;&gt;
110 110
                             <go href="<?php
111
-                            echo '?y=' . $Month->thisYear() . '&amp;m=' . $Month->nextMonth() . '&amp;d=' . $Month->thisDay() . '&amp;mime=wml'; ?>">
111
+                            echo '?y='.$Month->thisYear().'&amp;m='.$Month->nextMonth().'&amp;d='.$Month->thisDay().'&amp;mime=wml'; ?>">
112 112
                         </anchor>
113 113
                     </td>
114 114
                 </tr>
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             <?php
118 118
         } ?>
119 119
         <p><a href="<?php echo $_SERVER['PHP_SELF']; ?>">Back to HTML</a></p>
120
-        <?php echo '<p>Took: ' . (getmicrotime() - $start) . ' seconds</p>'; ?>
120
+        <?php echo '<p>Took: '.(getmicrotime() - $start).' seconds</p>'; ?>
121 121
     </wml>
122 122
     <?php
123 123
     #-----------------------------------------------------------------------------#
@@ -141,14 +141,14 @@  discard block
 block discarded – undo
141 141
         <p>
142 142
             <anchor>
143 143
                 <a href="<?php
144
-                echo '?y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay(); ?>">Back to Month View</a>
144
+                echo '?y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay(); ?>">Back to Month View</a>
145 145
         </p>
146 146
         <table>
147 147
             <?php
148 148
             $Day->build();
149 149
             while ($Hour = $Day->fetch()) {
150 150
                 echo "<tr>\n";
151
-                echo '<td>' . date('g a', $Hour->getTimestamp()) . "</td><td>Free time!</td>\n";
151
+                echo '<td>'.date('g a', $Hour->getTimestamp())."</td><td>Free time!</td>\n";
152 152
                 echo "</tr>\n";
153 153
             } ?>
154 154
         </table>
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
                 if ($Day->isEmpty()) {
176 176
                     echo "<td></td>\n";
177 177
                 } elseif ($Day->isSelected()) {
178
-                    echo '<td><a href="' . $_SERVER['PHP_SELF'] . '?viewday=true&amp;y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . '&amp;wml"><strong><u>' . $Day->thisDay() . "</u></strong></a></td>\n";
178
+                    echo '<td><a href="'.$_SERVER['PHP_SELF'].'?viewday=true&amp;y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay().'&amp;wml"><strong><u>'.$Day->thisDay()."</u></strong></a></td>\n";
179 179
                 } else {
180
-                    echo '<td><a href="' . $_SERVER['PHP_SELF'] . '?viewday=true&amp;y=' . $Day->thisYear() . '&amp;m=' . $Day->thisMonth() . '&amp;d=' . $Day->thisDay() . '">' . $Day->thisDay() . "</a></td>\n";
180
+                    echo '<td><a href="'.$_SERVER['PHP_SELF'].'?viewday=true&amp;y='.$Day->thisYear().'&amp;m='.$Day->thisMonth().'&amp;d='.$Day->thisDay().'">'.$Day->thisDay()."</a></td>\n";
181 181
                 }
182 182
                 if ($Day->isLast()) {
183 183
                     echo "</tr>\n";
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             <tr>
187 187
                 <td>
188 188
                     <a href="<?php
189
-                    echo '?y=' . $Month->thisYear() . '&amp;m=' . $Month->prevMonth() . '&amp;d=' . $Month->thisDay(); ?>">
189
+                    echo '?y='.$Month->thisYear().'&amp;m='.$Month->prevMonth().'&amp;d='.$Month->thisDay(); ?>">
190 190
                         &lt;&lt;</a>
191 191
                 </td>
192 192
                 <td></td>
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                 <td></td>
197 197
                 <td>
198 198
                     <a href="<?php
199
-                    echo '?y=' . $Month->thisYear() . '&amp;m=' . $Month->nextMonth() . '&amp;d=' . $Month->thisDay(); ?>">&gt;&gt;</a>
199
+                    echo '?y='.$Month->thisYear().'&amp;m='.$Month->nextMonth().'&amp;d='.$Month->thisDay(); ?>">&gt;&gt;</a>
200 200
                 </td>
201 201
             </tr>
202 202
         </table>
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         <?php
205 205
     } ?>
206 206
 
207
-    <?php echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>'; ?>
207
+    <?php echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>'; ?>
208 208
     </body>
209 209
     </html>
210 210
     <?php
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/5.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 {
8 8
     list($usec, $sec) = explode(' ', microtime());
9 9
 
10
-    return (float)$usec + (float)$sec;
10
+    return (float) $usec + (float) $sec;
11 11
 }
12 12
 
13 13
 $start = getmicrotime();
@@ -15,12 +15,12 @@  discard block
 block discarded – undo
15 15
 if (!@include 'Calendar/Calendar.php') {
16 16
     define('CALENDAR_ROOT', '../../');
17 17
 }
18
-require_once CALENDAR_ROOT . 'Year.php';
19
-require_once CALENDAR_ROOT . 'Month.php';
20
-require_once CALENDAR_ROOT . 'Day.php';
21
-require_once CALENDAR_ROOT . 'Hour.php';
22
-require_once CALENDAR_ROOT . 'Minute.php';
23
-require_once CALENDAR_ROOT . 'Second.php';
18
+require_once CALENDAR_ROOT.'Year.php';
19
+require_once CALENDAR_ROOT.'Month.php';
20
+require_once CALENDAR_ROOT.'Day.php';
21
+require_once CALENDAR_ROOT.'Hour.php';
22
+require_once CALENDAR_ROOT.'Minute.php';
23
+require_once CALENDAR_ROOT.'Second.php';
24 24
 
25 25
 // Initialize if not set
26 26
 if (!isset($_POST['y'])) {
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
 if (isset($_POST['update'])) {
54 54
     $Second = new Calendar_Second($_POST['y'], $_POST['m'], $_POST['d'], $_POST['h'], $_POST['i'], $_POST['s']);
55 55
     if (!$Second->isValid()) {
56
-        $V =& $Second->getValidator();
56
+        $V = & $Second->getValidator();
57 57
         echo '<p>Validation failed:</p>';
58 58
         while ($error = $V->fetch()) {
59
-            echo $error->toString() . '<br>';
59
+            echo $error->toString().'<br>';
60 60
         }
61 61
     } else {
62 62
         echo '<p>Validation success.</p>';
63
-        echo '<p>New timestamp is: ' . $Second->getTimestamp() . ' which could be used to update a database, for example';
63
+        echo '<p>New timestamp is: '.$Second->getTimestamp().' which could be used to update a database, for example';
64 64
     }
65 65
 } else {
66 66
 $Year   = new Calendar_Year($_POST['y']);
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
         $Year->build($selection);
79 79
         while ($Child = $Year->fetch()) {
80 80
             if ($Child->isSelected()) {
81
-                echo '<option value="' . $Child->thisMonth() . '" selected>' . $Child->thisMonth() . "\n";
81
+                echo '<option value="'.$Child->thisMonth().'" selected>'.$Child->thisMonth()."\n";
82 82
             } else {
83
-                echo '<option value="' . $Child->thisMonth() . '">' . $Child->thisMonth() . "\n";
83
+                echo '<option value="'.$Child->thisMonth().'">'.$Child->thisMonth()."\n";
84 84
             }
85 85
         } ?>
86 86
     </select>&nbsp;
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
         $Month->build($selection);
91 91
         while ($Child = $Month->fetch()) {
92 92
             if ($Child->isSelected()) {
93
-                echo '<option value="' . $Child->thisDay() . '" selected>' . $Child->thisDay() . "\n";
93
+                echo '<option value="'.$Child->thisDay().'" selected>'.$Child->thisDay()."\n";
94 94
             } else {
95
-                echo '<option value="' . $Child->thisDay() . '">' . $Child->thisDay() . "\n";
95
+                echo '<option value="'.$Child->thisDay().'">'.$Child->thisDay()."\n";
96 96
             }
97 97
         } ?>
98 98
     </select>&nbsp;
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
         $Day->build($selection);
103 103
         while ($Child = $Day->fetch()) {
104 104
             if ($Child->isSelected()) {
105
-                echo '<option value="' . $Child->thisHour() . '" selected>' . $Child->thisHour() . "\n";
105
+                echo '<option value="'.$Child->thisHour().'" selected>'.$Child->thisHour()."\n";
106 106
             } else {
107
-                echo '<option value="' . $Child->thisHour() . '">' . $Child->thisHour() . "\n";
107
+                echo '<option value="'.$Child->thisHour().'">'.$Child->thisHour()."\n";
108 108
             }
109 109
         } ?>
110 110
     </select>&nbsp;
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
         $Hour->build($selection);
115 115
         while ($Child = $Hour->fetch()) {
116 116
             if ($Child->isSelected()) {
117
-                echo '<option value="' . $Child->thisMinute() . '" selected>' . $Child->thisMinute() . "\n";
117
+                echo '<option value="'.$Child->thisMinute().'" selected>'.$Child->thisMinute()."\n";
118 118
             } else {
119
-                echo '<option value="' . $Child->thisMinute() . '">' . $Child->thisMinute() . "\n";
119
+                echo '<option value="'.$Child->thisMinute().'">'.$Child->thisMinute()."\n";
120 120
             }
121 121
         } ?>
122 122
     </select>&nbsp;
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
         $Minute->build($selection);
127 127
         while ($Child = $Minute->fetch()) {
128 128
             if ($Child->isSelected()) {
129
-                echo '<option value="' . $Child->thisSecond() . '" selected>' . $Child->thisSecond() . "\n";
129
+                echo '<option value="'.$Child->thisSecond().'" selected>'.$Child->thisSecond()."\n";
130 130
             } else {
131
-                echo '<option value="' . $Child->thisSecond() . '">' . $Child->thisSecond() . "\n";
131
+                echo '<option value="'.$Child->thisSecond().'">'.$Child->thisSecond()."\n";
132 132
             }
133 133
         } ?>
134 134
     </select>&nbsp;
@@ -136,6 +136,6 @@  discard block
 block discarded – undo
136 136
     <?php
137 137
     }
138 138
     ?>
139
-    <?php echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>'; ?>
139
+    <?php echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>'; ?>
140 140
 </body>
141 141
 </html>
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/13.php 2 patches
Switch Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -39,33 +39,33 @@
 block discarded – undo
39 39
 }
40 40
 
41 41
 switch (@$_GET['view']) {
42
-    default:
43
-        $_GET['view'] = 'calendar_year';
44
-    // no break
45
-    case 'calendar_year':
46
-        require_once CALENDAR_ROOT . 'Year.php';
47
-        $c = new Calendar_Year($_GET['y']);
48
-        break;
49
-    case 'calendar_month':
50
-        require_once CALENDAR_ROOT . 'Month.php';
51
-        $c = new Calendar_Month($_GET['y'], $_GET['m']);
52
-        break;
53
-    case 'calendar_day':
54
-        require_once CALENDAR_ROOT . 'Day.php';
55
-        $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
56
-        break;
57
-    case 'calendar_hour':
58
-        require_once CALENDAR_ROOT . 'Hour.php';
59
-        $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
60
-        break;
61
-    case 'calendar_minute':
62
-        require_once CALENDAR_ROOT . 'Minute.php';
63
-        $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
64
-        break;
65
-    case 'calendar_second':
66
-        require_once CALENDAR_ROOT . 'Second.php';
67
-        $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
68
-        break;
42
+        default:
43
+            $_GET['view'] = 'calendar_year';
44
+        // no break
45
+        case 'calendar_year':
46
+            require_once CALENDAR_ROOT . 'Year.php';
47
+            $c = new Calendar_Year($_GET['y']);
48
+            break;
49
+        case 'calendar_month':
50
+            require_once CALENDAR_ROOT . 'Month.php';
51
+            $c = new Calendar_Month($_GET['y'], $_GET['m']);
52
+            break;
53
+        case 'calendar_day':
54
+            require_once CALENDAR_ROOT . 'Day.php';
55
+            $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
56
+            break;
57
+        case 'calendar_hour':
58
+            require_once CALENDAR_ROOT . 'Hour.php';
59
+            $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
60
+            break;
61
+        case 'calendar_minute':
62
+            require_once CALENDAR_ROOT . 'Minute.php';
63
+            $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
64
+            break;
65
+        case 'calendar_second':
66
+            require_once CALENDAR_ROOT . 'Second.php';
67
+            $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
68
+            break;
69 69
 }
70 70
 
71 71
 // Convert timestamp to human readable date
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
     list($usec, $sec) = explode(' ', microtime());
11 11
 
12
-    return (float)$usec + (float)$sec;
12
+    return (float) $usec + (float) $sec;
13 13
 }
14 14
 
15 15
 // Switch to PEAR::Date engine
@@ -43,27 +43,27 @@  discard block
 block discarded – undo
43 43
         $_GET['view'] = 'calendar_year';
44 44
     // no break
45 45
     case 'calendar_year':
46
-        require_once CALENDAR_ROOT . 'Year.php';
46
+        require_once CALENDAR_ROOT.'Year.php';
47 47
         $c = new Calendar_Year($_GET['y']);
48 48
         break;
49 49
     case 'calendar_month':
50
-        require_once CALENDAR_ROOT . 'Month.php';
50
+        require_once CALENDAR_ROOT.'Month.php';
51 51
         $c = new Calendar_Month($_GET['y'], $_GET['m']);
52 52
         break;
53 53
     case 'calendar_day':
54
-        require_once CALENDAR_ROOT . 'Day.php';
54
+        require_once CALENDAR_ROOT.'Day.php';
55 55
         $c = new Calendar_Day($_GET['y'], $_GET['m'], $_GET['d']);
56 56
         break;
57 57
     case 'calendar_hour':
58
-        require_once CALENDAR_ROOT . 'Hour.php';
58
+        require_once CALENDAR_ROOT.'Hour.php';
59 59
         $c = new Calendar_Hour($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h']);
60 60
         break;
61 61
     case 'calendar_minute':
62
-        require_once CALENDAR_ROOT . 'Minute.php';
62
+        require_once CALENDAR_ROOT.'Minute.php';
63 63
         $c = new Calendar_Minute($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i']);
64 64
         break;
65 65
     case 'calendar_second':
66
-        require_once CALENDAR_ROOT . 'Second.php';
66
+        require_once CALENDAR_ROOT.'Second.php';
67 67
         $c = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']);
68 68
         break;
69 69
 }
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
 $date = new Date($c->getTimestamp());
73 73
 
74 74
 echo '<h1>Using PEAR::Date engine</h1>';
75
-echo 'Viewing: ' . @$_GET['view'] . '<br>';
76
-echo 'The time is now: ' . $date->format('%Y %a %e %T') . '<br >';
75
+echo 'Viewing: '.@$_GET['view'].'<br>';
76
+echo 'The time is now: '.$date->format('%Y %a %e %T').'<br >';
77 77
 
78 78
 $i = 1;
79 79
 echo '<h1>First Iteration</h1>';
@@ -83,15 +83,15 @@  discard block
 block discarded – undo
83 83
 $c->build();
84 84
 while ($e = $c->fetch()) {
85 85
     $class  = strtolower(get_class($e));
86
-    $link   = '&y=' . $e->thisYear() . '&m=' . $e->thisMonth() . '&d=' . $e->thisDay() . '&h=' . $e->thisHour() . '&i=' . $e->thisMinute() . '&s=' . $e->thisSecond();
87
-    $method = 'this' . str_replace('calendar_', '', $class);
88
-    echo '<a href="' . $_SERVER['PHP_SELF'] . '?view=' . $class . $link . '">' . $e->{$method}() . '</a> : ';
86
+    $link   = '&y='.$e->thisYear().'&m='.$e->thisMonth().'&d='.$e->thisDay().'&h='.$e->thisHour().'&i='.$e->thisMinute().'&s='.$e->thisSecond();
87
+    $method = 'this'.str_replace('calendar_', '', $class);
88
+    echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$class.$link.'">'.$e->{$method}().'</a> : ';
89 89
     if (0 == ($i % 10)) {
90 90
         echo '<br>';
91 91
     }
92 92
     ++$i;
93 93
 }
94
-echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>';
94
+echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>';
95 95
 
96 96
 $i = 1;
97 97
 echo '<h1>Second Iteration</h1>';
@@ -100,12 +100,12 @@  discard block
 block discarded – undo
100 100
 $start = getmicrotime();
101 101
 while ($e = $c->fetch()) {
102 102
     $class  = strtolower(get_class($e));
103
-    $link   = '&y=' . $e->thisYear() . '&m=' . $e->thisMonth() . '&d=' . $e->thisDay() . '&h=' . $e->thisHour() . '&i=' . $e->thisMinute() . '&s=' . $e->thisSecond();
104
-    $method = 'this' . str_replace('calendar_', '', $class);
105
-    echo '<a href="' . $_SERVER['PHP_SELF'] . '?view=' . $class . $link . '">' . $e->{$method}() . '</a> : ';
103
+    $link   = '&y='.$e->thisYear().'&m='.$e->thisMonth().'&d='.$e->thisDay().'&h='.$e->thisHour().'&i='.$e->thisMinute().'&s='.$e->thisSecond();
104
+    $method = 'this'.str_replace('calendar_', '', $class);
105
+    echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$class.$link.'">'.$e->{$method}().'</a> : ';
106 106
     if (0 == ($i % 10)) {
107 107
         echo '<br>';
108 108
     }
109 109
     ++$i;
110 110
 }
111
-echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>';
111
+echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>';
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/7.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             'in'  => ['year' => 'int', 'month' => 'int'],
25 25
             'out' => ['month' => '{urn:PEAR_SOAP_Calendar}Month'],
26 26
         ];
27
-        $this->__typedef['Month']         = [
27
+        $this->__typedef['Month'] = [
28 28
             'monthname' => 'string',
29 29
             'days'      => '{urn:PEAR_SOAP_Calendar}MonthDays',
30 30
         ];
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function getMonth($year, $month)
60 60
     {
61
-        require_once CALENDAR_ROOT . 'Month/Weekdays.php';
61
+        require_once CALENDAR_ROOT.'Month/Weekdays.php';
62 62
         $Month = new Calendar_Month_Weekdays($year, $month);
63 63
         if (!$Month->isValid()) {
64 64
             $V        = $Month->getValidator();
65 65
             $errorMsg = '';
66 66
             while ($error = $V->fetch()) {
67
-                $errorMsg .= $error->toString() . "\n";
67
+                $errorMsg .= $error->toString()."\n";
68 68
             }
69 69
 
70 70
             return new Soap_fault($errorMsg, 'Client');
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
             $Month->build();
75 75
             while ($Day = $Month->fetch()) {
76 76
                 $day    = [
77
-                    'isFirst' => (int)$Day->isFirst(),
78
-                    'isLast'  => (int)$Day->isLast(),
79
-                    'isEmpty' => (int)$Day->isEmpty(),
80
-                    'day'     => (int)$Day->thisDay(),
77
+                    'isFirst' => (int) $Day->isFirst(),
78
+                    'isLast'  => (int) $Day->isLast(),
79
+                    'isEmpty' => (int) $Day->isEmpty(),
80
+                    'day'     => (int) $Day->thisDay(),
81 81
                 ];
82 82
                 $days[] = $day;
83 83
             }
Please login to merge, or discard this patch.
blocks/new_events.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 use XoopsModules\Extcal;
21 21
 
22
-require_once __DIR__ . '/../include/constantes.php';
22
+require_once __DIR__.'/../include/constantes.php';
23 23
 
24 24
 /**
25 25
  * @param $options
@@ -66,22 +66,22 @@  discard block
 block discarded – undo
66 66
 
67 67
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
68 68
 
69
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
70
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
71
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
69
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
70
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
71
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
72 72
     array_shift($options);
73 73
     array_shift($options);
74
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
74
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
75 75
     if (false === array_search(0, $options)) {
76
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
76
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
77 77
     } else {
78
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
78
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
79 79
     }
80 80
     foreach ($cats as $cat) {
81 81
         if (false === array_search($cat->getVar('cat_id'), $options)) {
82
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
82
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
83 83
         } else {
84
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
84
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
85 85
         }
86 86
     }
87 87
     $form .= '</select>';
Please login to merge, or discard this patch.