Passed
Push — master ( d2520f...3f8ec2 )
by Michael
02:50
created
admin/etablissement.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,10 +155,10 @@
 block discarded – undo
155 155
             }
156 156
         } else {
157 157
             xoops_confirm([
158
-                              'ok'               => 1,
159
-                              'etablissement_id' => $_REQUEST['etablissement_id'],
160
-                              'op'               => 'delete_etablissement',
161
-                          ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
158
+                                'ok'               => 1,
159
+                                'etablissement_id' => $_REQUEST['etablissement_id'],
160
+                                'op'               => 'delete_etablissement',
161
+                            ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
162 162
         }
163 163
         break;
164 164
 
Please login to merge, or discard this patch.
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -20,19 +20,19 @@  discard block
 block discarded – undo
20 20
 use XoopsModules\Extcal;
21 21
 
22 22
 // Include xoops admin header
23
-require_once __DIR__ . '/../../../include/cp_header.php';
23
+require_once __DIR__.'/../../../include/cp_header.php';
24 24
 // require_once __DIR__ . '/../class/ExtcalPersistableObjectHandler.php';
25
-require_once __DIR__ . '/../../../kernel/module.php';
26
-require_once __DIR__ . '/../../../class/xoopsformloader.php';
27
-require_once __DIR__ . '/../../../class/tree.php';
28
-require_once __DIR__ . '/../../../class/xoopslists.php';
29
-require_once __DIR__ . '/../../../class/pagenav.php';
30
-require_once __DIR__ . '/../../../class/xoopsform/grouppermform.php';
31
-require_once __DIR__ . '/../../../class/uploader.php';
25
+require_once __DIR__.'/../../../kernel/module.php';
26
+require_once __DIR__.'/../../../class/xoopsformloader.php';
27
+require_once __DIR__.'/../../../class/tree.php';
28
+require_once __DIR__.'/../../../class/xoopslists.php';
29
+require_once __DIR__.'/../../../class/pagenav.php';
30
+require_once __DIR__.'/../../../class/xoopsform/grouppermform.php';
31
+require_once __DIR__.'/../../../class/uploader.php';
32 32
 // require_once __DIR__ . '/../class/etablissement.php';
33
-require_once __DIR__ . '/../include/constantes.php';
33
+require_once __DIR__.'/../include/constantes.php';
34 34
 
35
-require_once __DIR__ . '/admin_header.php';
35
+require_once __DIR__.'/admin_header.php';
36 36
 
37 37
 //include_once("functions.php");
38 38
 //include_once("../include/functions.php");
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
 if ($xoopsUser) {
41 41
     $xoopsModule = \XoopsModule::getByDirname('extcal');
42 42
     if (!$xoopsUser->isAdmin($xoopsModule->mid())) {
43
-        redirect_header(XOOPS_URL . '/', 3, _NOPERM);
43
+        redirect_header(XOOPS_URL.'/', 3, _NOPERM);
44 44
     }
45 45
 } else {
46
-    redirect_header(XOOPS_URL . '/', 3, _NOPERM);
46
+    redirect_header(XOOPS_URL.'/', 3, _NOPERM);
47 47
 }
48 48
 
49 49
 // Include language file
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $etablissement_arr = $etablissementHandler->getObjects($criteria);
101 101
         $numrows           = $etablissementHandler->getCount($criteria);
102 102
         if ($numrows > $limit) {
103
-            $pagenav = new \XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit=' . $limit);
103
+            $pagenav = new \XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit='.$limit);
104 104
             $pagenav = $pagenav->renderNav(4);
105 105
         } else {
106 106
             $pagenav = '';
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
         if ($numrows > 0) {
110 110
             echo '<table width="100%" cellspacing="1" class="outer">';
111 111
             echo '<tr>';
112
-            echo '<th align="center">' . _AM_EXTCAL_ETABLISSEMENT_FORM_NOM . '</th>';
113
-            echo '<th align="center" width="20%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_ADRESSE . '</th>';
114
-            echo '<th align="center" width="20%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_CITY . '</th>';
115
-            echo '<th align="center" width="15%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_TELEPHONE . '</th>';
116
-            echo '<th align="center" width="15%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_ACTION . '</th>';
112
+            echo '<th align="center">'._AM_EXTCAL_ETABLISSEMENT_FORM_NOM.'</th>';
113
+            echo '<th align="center" width="20%">'._AM_EXTCAL_ETABLISSEMENT_FORM_ADRESSE.'</th>';
114
+            echo '<th align="center" width="20%">'._AM_EXTCAL_ETABLISSEMENT_FORM_CITY.'</th>';
115
+            echo '<th align="center" width="15%">'._AM_EXTCAL_ETABLISSEMENT_FORM_TELEPHONE.'</th>';
116
+            echo '<th align="center" width="15%">'._AM_EXTCAL_ETABLISSEMENT_FORM_ACTION.'</th>';
117 117
             echo '</tr>';
118 118
             $class = 'odd';
119 119
             foreach (array_keys($etablissement_arr) as $i) {
@@ -123,21 +123,21 @@  discard block
 block discarded – undo
123 123
                 $etablissement_adresse   = $etablissement_arr[$i]->getVar('adresse');
124 124
                 $etablissement_city      = $etablissement_arr[$i]->getVar('ville');
125 125
                 $etablissement_telephone = $etablissement_arr[$i]->getVar('tel_fixe');
126
-                echo '<tr class="' . $class . '">';
127
-                echo '<td align="left">' . '<a href="etablissement.php?op=edit_etablissement&etablissement_id=' . $etablissement_id . '">' . $etablissement_nom . '</a>' . '</td>';
126
+                echo '<tr class="'.$class.'">';
127
+                echo '<td align="left">'.'<a href="etablissement.php?op=edit_etablissement&etablissement_id='.$etablissement_id.'">'.$etablissement_nom.'</a>'.'</td>';
128 128
 
129
-                echo '<td align="center"><b>' . $etablissement_adresse . '</td>';
130
-                echo '<td align="center"><b>' . $etablissement_city . '</td>';
131
-                echo '<td align="center"><b>' . $etablissement_telephone . '</td>';
129
+                echo '<td align="center"><b>'.$etablissement_adresse.'</td>';
130
+                echo '<td align="center"><b>'.$etablissement_city.'</td>';
131
+                echo '<td align="center"><b>'.$etablissement_telephone.'</td>';
132 132
                 echo '<td align="center" width="15%">';
133
-                echo '<a href="etablissement.php?op=edit_etablissement&etablissement_id=' . $etablissement_id . '"><img src=' . $pathIcon16 . '/edit.png alt="' . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT . '" title="' . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT . '"></a> ';
134
-                echo '<a href="etablissement.php?op=delete_etablissement&etablissement_id=' . $etablissement_id . '"><img src=' . $pathIcon16 . '/delete.png alt="' . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE . '" title="' . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE . '"></a> ';
133
+                echo '<a href="etablissement.php?op=edit_etablissement&etablissement_id='.$etablissement_id.'"><img src='.$pathIcon16.'/edit.png alt="'._AM_EXTCAL_ETABLISSEMENT_FORM_EDIT.'" title="'._AM_EXTCAL_ETABLISSEMENT_FORM_EDIT.'"></a> ';
134
+                echo '<a href="etablissement.php?op=delete_etablissement&etablissement_id='.$etablissement_id.'"><img src='.$pathIcon16.'/delete.png alt="'._AM_EXTCAL_ETABLISSEMENT_FORM_DELETE.'" title="'._AM_EXTCAL_ETABLISSEMENT_FORM_DELETE.'"></a> ';
135 135
                 echo '</td>';
136 136
             }
137 137
             echo '</table><br>';
138
-            echo '<br><div align=right>' . $pagenav . '</div><br>';
138
+            echo '<br><div align=right>'.$pagenav.'</div><br>';
139 139
         } else {
140
-            echo '<div class="errorMsg" style="text-align: center;">' . _AM_EXTCAL_ERREUR_NO_ETABLISSEMENT . '</div>';
140
+            echo '<div class="errorMsg" style="text-align: center;">'._AM_EXTCAL_ERREUR_NO_ETABLISSEMENT.'</div>';
141 141
         }
142 142
 
143 143
         // Affichage du formulaire
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                               'ok'               => 1,
161 161
                               'etablissement_id' => $_REQUEST['etablissement_id'],
162 162
                               'op'               => 'delete_etablissement',
163
-                          ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
163
+                          ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL.'<br>');
164 164
         }
165 165
         break;
166 166
 
@@ -202,11 +202,11 @@  discard block
 block discarded – undo
202 202
         $obj->setVar('map', $_REQUEST['map']);
203 203
 
204 204
         //Logo
205
-        $uploaddir_etablissement = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement/';
206
-        $uploadurl_etablissement = XOOPS_URL . '/uploads/extcal/etablissement/';
205
+        $uploaddir_etablissement = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement/';
206
+        $uploadurl_etablissement = XOOPS_URL.'/uploads/extcal/etablissement/';
207 207
 
208 208
         $delimg = @$_REQUEST['delimg'];
209
-        $delimg = isset($delimg) ? (int)$delimg : 0;
209
+        $delimg = isset($delimg) ? (int) $delimg : 0;
210 210
         if (0 == $delimg && !empty($_REQUEST['xoops_upload_file'][0])) {
211 211
             $upload = new \XoopsMediaUploader($uploaddir_etablissement, [
212 212
                 'image/gif',
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
             }
230 230
         } else {
231 231
             $logo              = '';
232
-            $url_etablissement = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement/' . $_REQUEST['file'];
232
+            $url_etablissement = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement/'.$_REQUEST['file'];
233 233
             if (is_file($url_etablissement)) {
234 234
                 chmod($url_etablissement, 0777);
235 235
                 unlink($url_etablissement);
@@ -249,4 +249,4 @@  discard block
 block discarded – undo
249 249
         break;
250 250
 }
251 251
 
252
-require_once __DIR__ . '/admin_footer.php';
252
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
class/pear/Calendar/Hour.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 /**
50 50
  * Load Calendar base class.
51 51
  */
52
-require_once CALENDAR_ROOT . 'Calendar.php';
52
+require_once CALENDAR_ROOT.'Calendar.php';
53 53
 
54 54
 /**
55 55
  * Represents an Hour and builds Minutes
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function build($sDates = [])
96 96
     {
97
-        require_once CALENDAR_ROOT . 'Minute.php';
97
+        require_once CALENDAR_ROOT.'Minute.php';
98 98
         $mIH = $this->cE->getMinutesInHour($this->year, $this->month, $this->day, $this->hour);
99 99
         for ($i = 0; $i < $mIH; ++$i) {
100 100
             $this->children[$i] = new Calendar_Minute($this->year, $this->month, $this->day, $this->hour, $i);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             if ($this->year == $sDate->thisYear() && $this->month == $sDate->thisMonth()
119 119
                 && $this->day == $sDate->thisDay()
120 120
                 && $this->hour == $sDate->thisHour()) {
121
-                $key = (int)$sDate->thisMinute();
121
+                $key = (int) $sDate->thisMinute();
122 122
                 if (isset($this->children[$key])) {
123 123
                     $sDate->setSelected();
124 124
                     $this->children[$key] = $sDate;
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/20.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
     define('CALENDAR_ROOT', '../../');
12 12
 }
13 13
 
14
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
15
-require_once CALENDAR_ROOT . 'Day.php';
16
-require_once CALENDAR_ROOT . 'Decorator.php';
14
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
15
+require_once CALENDAR_ROOT.'Day.php';
16
+require_once CALENDAR_ROOT.'Decorator.php';
17 17
 
18 18
 // accepts multiple entries
19 19
 
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function build($events = [])
78 78
     {
79
-        require_once CALENDAR_ROOT . 'Day.php';
80
-        require_once CALENDAR_ROOT . 'Table/Helper.php';
79
+        require_once CALENDAR_ROOT.'Day.php';
80
+        require_once CALENDAR_ROOT.'Table/Helper.php';
81 81
 
82 82
         $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
83 83
         $this->cE          = $this->getEngine();
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 <h2>Sample Calendar Payload Decorator (using <?php echo CALENDAR_ENGINE; ?> engine)</h2>
231 231
 <table class="calendar" width="98%" cellspacing="0" cellpadding="0">
232 232
     <caption>
233
-        <?php echo $MonthDecorator->thisMonth() . ' / ' . $MonthDecorator->thisYear(); ?>
233
+        <?php echo $MonthDecorator->thisMonth().' / '.$MonthDecorator->thisYear(); ?>
234 234
     </caption>
235 235
     <tr>
236 236
         <th>Monday</th>
@@ -254,14 +254,14 @@  discard block
 block discarded – undo
254 254
             echo ' calCellEmpty';
255 255
         }
256 256
         echo '">';
257
-        echo '<div class="dayNumber">' . $Day->thisDay() . '</div>';
257
+        echo '<div class="dayNumber">'.$Day->thisDay().'</div>';
258 258
 
259 259
         if ($Day->isEmpty()) {
260 260
             echo '&nbsp;';
261 261
         } else {
262 262
             echo '<div class="dayContents"><ul>';
263 263
             while ($entry = $Day->getEntry()) {
264
-                echo '<li>' . $entry['desc'] . '</li>';
264
+                echo '<li>'.$entry['desc'].'</li>';
265 265
                 //you can print the time range as well
266 266
             }
267 267
             echo '</ul></div>';
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/11.php 1 patch
Spacing   +6 added lines, -6 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 . 'Hour.php';
11
-require_once CALENDAR_ROOT . 'Decorator.php';
9
+require_once CALENDAR_ROOT.'Day.php';
10
+require_once CALENDAR_ROOT.'Hour.php';
11
+require_once CALENDAR_ROOT.'Decorator.php';
12 12
 
13 13
 // Decorator to "attach" functionality to selected hours
14 14
 
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
         FROM
55 55
             diary
56 56
         WHERE
57
-            eventtime >= '" . $Day->thisDay(true) . "'
57
+            eventtime >= '" . $Day->thisDay(true)."'
58 58
         AND
59
-            eventtime < '" . $Day->nextDay(true) . "';";
59
+            eventtime < '" . $Day->nextDay(true)."';";
60 60
 
61 61
 // An array simulating data from a database
62 62
 $result = [
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
             // If the hour is selected, call the decorator method...
114 114
             if ($Hour->isSelected()) {
115
-                echo '<td bgcolor="silver">' . $Hour->getEntry() . "</td>\n";
115
+                echo '<td bgcolor="silver">'.$Hour->getEntry()."</td>\n";
116 116
             } else {
117 117
                 echo "<td>&nbsp;</td>\n";
118 118
             }
Please login to merge, or discard this patch.
class/pear/Calendar/Validator.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function __construct(&$calendar)
92 92
     {
93
-        $this->calendar =& $calendar;
94
-        $this->cE       =& $calendar->getEngine();
93
+        $this->calendar = & $calendar;
94
+        $this->cE       = & $calendar->getEngine();
95 95
     }
96 96
 
97 97
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             'isValidMinute',
110 110
             'isValidSecond',
111 111
         ];
112
-        $valid  = true;
112
+        $valid = true;
113 113
         foreach ($checks as $check) {
114 114
             if (!$this->{$check}()) {
115 115
                 $valid = false;
@@ -129,13 +129,13 @@  discard block
 block discarded – undo
129 129
         $y   = $this->calendar->thisYear();
130 130
         $min = $this->cE->getMinYears();
131 131
         if ($min > $y) {
132
-            $this->errors[] = new Calendar_Validation_Error('Year', $y, CALENDAR_VALUE_TOOSMALL . $min);
132
+            $this->errors[] = new Calendar_Validation_Error('Year', $y, CALENDAR_VALUE_TOOSMALL.$min);
133 133
 
134 134
             return false;
135 135
         }
136 136
         $max = $this->cE->getMaxYears();
137 137
         if ($y > $max) {
138
-            $this->errors[] = new Calendar_Validation_Error('Year', $y, CALENDAR_VALUE_TOOLARGE . $max);
138
+            $this->errors[] = new Calendar_Validation_Error('Year', $y, CALENDAR_VALUE_TOOLARGE.$max);
139 139
 
140 140
             return false;
141 141
         }
@@ -153,13 +153,13 @@  discard block
 block discarded – undo
153 153
         $m   = $this->calendar->thisMonth();
154 154
         $min = 1;
155 155
         if ($min > $m) {
156
-            $this->errors[] = new Calendar_Validation_Error('Month', $m, CALENDAR_VALUE_TOOSMALL . $min);
156
+            $this->errors[] = new Calendar_Validation_Error('Month', $m, CALENDAR_VALUE_TOOSMALL.$min);
157 157
 
158 158
             return false;
159 159
         }
160 160
         $max = $this->cE->getMonthsInYear($this->calendar->thisYear());
161 161
         if ($m > $max) {
162
-            $this->errors[] = new Calendar_Validation_Error('Month', $m, CALENDAR_VALUE_TOOLARGE . $max);
162
+            $this->errors[] = new Calendar_Validation_Error('Month', $m, CALENDAR_VALUE_TOOLARGE.$max);
163 163
 
164 164
             return false;
165 165
         }
@@ -177,13 +177,13 @@  discard block
 block discarded – undo
177 177
         $d   = $this->calendar->thisDay();
178 178
         $min = 1;
179 179
         if ($min > $d) {
180
-            $this->errors[] = new Calendar_Validation_Error('Day', $d, CALENDAR_VALUE_TOOSMALL . $min);
180
+            $this->errors[] = new Calendar_Validation_Error('Day', $d, CALENDAR_VALUE_TOOSMALL.$min);
181 181
 
182 182
             return false;
183 183
         }
184 184
         $max = $this->cE->getDaysInMonth($this->calendar->thisYear(), $this->calendar->thisMonth());
185 185
         if ($d > $max) {
186
-            $this->errors[] = new Calendar_Validation_Error('Day', $d, CALENDAR_VALUE_TOOLARGE . $max);
186
+            $this->errors[] = new Calendar_Validation_Error('Day', $d, CALENDAR_VALUE_TOOLARGE.$max);
187 187
 
188 188
             return false;
189 189
         }
@@ -201,13 +201,13 @@  discard block
 block discarded – undo
201 201
         $h   = $this->calendar->thisHour();
202 202
         $min = 0;
203 203
         if ($min > $h) {
204
-            $this->errors[] = new Calendar_Validation_Error('Hour', $h, CALENDAR_VALUE_TOOSMALL . $min);
204
+            $this->errors[] = new Calendar_Validation_Error('Hour', $h, CALENDAR_VALUE_TOOSMALL.$min);
205 205
 
206 206
             return false;
207 207
         }
208 208
         $max = ($this->cE->getHoursInDay($this->calendar->thisDay()) - 1);
209 209
         if ($h > $max) {
210
-            $this->errors[] = new Calendar_Validation_Error('Hour', $h, CALENDAR_VALUE_TOOLARGE . $max);
210
+            $this->errors[] = new Calendar_Validation_Error('Hour', $h, CALENDAR_VALUE_TOOLARGE.$max);
211 211
 
212 212
             return false;
213 213
         }
@@ -225,13 +225,13 @@  discard block
 block discarded – undo
225 225
         $i   = $this->calendar->thisMinute();
226 226
         $min = 0;
227 227
         if ($min > $i) {
228
-            $this->errors[] = new Calendar_Validation_Error('Minute', $i, CALENDAR_VALUE_TOOSMALL . $min);
228
+            $this->errors[] = new Calendar_Validation_Error('Minute', $i, CALENDAR_VALUE_TOOSMALL.$min);
229 229
 
230 230
             return false;
231 231
         }
232 232
         $max = ($this->cE->getMinutesInHour($this->calendar->thisHour()) - 1);
233 233
         if ($i > $max) {
234
-            $this->errors[] = new Calendar_Validation_Error('Minute', $i, CALENDAR_VALUE_TOOLARGE . $max);
234
+            $this->errors[] = new Calendar_Validation_Error('Minute', $i, CALENDAR_VALUE_TOOLARGE.$max);
235 235
 
236 236
             return false;
237 237
         }
@@ -249,13 +249,13 @@  discard block
 block discarded – undo
249 249
         $s   = $this->calendar->thisSecond();
250 250
         $min = 0;
251 251
         if ($min > $s) {
252
-            $this->errors[] = new Calendar_Validation_Error('Second', $s, CALENDAR_VALUE_TOOSMALL . $min);
252
+            $this->errors[] = new Calendar_Validation_Error('Second', $s, CALENDAR_VALUE_TOOSMALL.$min);
253 253
 
254 254
             return false;
255 255
         }
256 256
         $max = ($this->cE->getSecondsInMinute($this->calendar->thisMinute()) - 1);
257 257
         if ($s > $max) {
258
-            $this->errors[] = new Calendar_Validation_Error('Second', $s, CALENDAR_VALUE_TOOLARGE . $max);
258
+            $this->errors[] = new Calendar_Validation_Error('Second', $s, CALENDAR_VALUE_TOOLARGE.$max);
259 259
 
260 260
             return false;
261 261
         }
@@ -367,6 +367,6 @@  discard block
 block discarded – undo
367 367
      */
368 368
     public function toString()
369 369
     {
370
-        return $this->unit . ' = ' . $this->value . ' [' . $this->message . ']';
370
+        return $this->unit.' = '.$this->value.' ['.$this->message.']';
371 371
     }
372 372
 }
Please login to merge, or discard this patch.
class/pear/Calendar/Day.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 /**
50 50
  * Load Calendar base class.
51 51
  */
52
-require_once CALENDAR_ROOT . 'Calendar.php';
52
+require_once CALENDAR_ROOT.'Calendar.php';
53 53
 
54 54
 /**
55 55
  * Represents a Day and builds Hours.
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function build($sDates = [])
115 115
     {
116
-        require_once CALENDAR_ROOT . 'Hour.php';
116
+        require_once CALENDAR_ROOT.'Hour.php';
117 117
 
118 118
         $hID = $this->cE->getHoursInDay($this->year, $this->month, $this->day);
119 119
         for ($i = 0; $i < $hID; ++$i) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         foreach ($sDates as $sDate) {
138 138
             if ($this->year == $sDate->thisYear() && $this->month == $sDate->thisMonth()
139 139
                 && $this->day == $sDate->thisDay()) {
140
-                $key = (int)$sDate->thisHour();
140
+                $key = (int) $sDate->thisHour();
141 141
                 if (isset($this->children[$key])) {
142 142
                     $sDate->setSelected();
143 143
                     $this->children[$key] = $sDate;
Please login to merge, or discard this patch.
class/pear/Calendar/Month/Weeks.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
 /**
51 51
  * Load Calendar base class.
52 52
  */
53
-require_once CALENDAR_ROOT . 'Calendar.php';
53
+require_once CALENDAR_ROOT.'Calendar.php';
54 54
 
55 55
 /**
56 56
  * Load base month.
57 57
  */
58
-require_once CALENDAR_ROOT . 'Month.php';
58
+require_once CALENDAR_ROOT.'Month.php';
59 59
 
60 60
 /**
61 61
  * Represents a Month and builds Weeks
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function build($sDates = [])
118 118
     {
119
-        require_once CALENDAR_ROOT . 'Table/Helper.php';
119
+        require_once CALENDAR_ROOT.'Table/Helper.php';
120 120
         $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
121
-        require_once CALENDAR_ROOT . 'Week.php';
121
+        require_once CALENDAR_ROOT.'Week.php';
122 122
         $numWeeks = $this->tableHelper->getNumWeeks();
123 123
         for ($i = 1, $d = 1; $i <= $numWeeks; ++$i, $d += $this->cE->getDaysInWeek($this->thisYear(), $this->thisMonth(), $this->thisDay())) {
124 124
             $this->children[$i] = new Calendar_Week($this->year, $this->month, $d, $this->tableHelper->getFirstDay());
Please login to merge, or discard this patch.
class/pear/Calendar/Month/Weekdays.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
 /**
50 50
  * Load Calendar base class.
51 51
  */
52
-require_once CALENDAR_ROOT . 'Calendar.php';
52
+require_once CALENDAR_ROOT.'Calendar.php';
53 53
 
54 54
 /**
55 55
  * Load base month.
56 56
  */
57
-require_once CALENDAR_ROOT . 'Month.php';
57
+require_once CALENDAR_ROOT.'Month.php';
58 58
 
59 59
 /**
60 60
  * Represents a Month and builds Days in tabular form<br>
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function build($sDates = [])
131 131
     {
132
-        require_once CALENDAR_ROOT . 'Table/Helper.php';
132
+        require_once CALENDAR_ROOT.'Table/Helper.php';
133 133
         $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
134 134
         Calendar_Month::build($sDates);
135 135
         $this->buildEmptyDaysBefore();
Please login to merge, or discard this patch.
class/pear/Calendar/Week.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 /**
51 51
  * Load Calendar base class.
52 52
  */
53
-require_once CALENDAR_ROOT . 'Calendar.php';
53
+require_once CALENDAR_ROOT.'Calendar.php';
54 54
 
55 55
 /**
56 56
  * Represents a Week and builds Days in tabular format<br>
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function __construct($y, $m, $d, $firstDay = null)
140 140
     {
141
-        require_once CALENDAR_ROOT . 'Table/Helper.php';
141
+        require_once CALENDAR_ROOT.'Table/Helper.php';
142 142
         parent::__construct($y, $m, $d);
143 143
         $this->firstDay    = $this->defineFirstDayOfWeek($firstDay);
144 144
         $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function build($sDates = [])
172 172
     {
173
-        require_once CALENDAR_ROOT . 'Day.php';
173
+        require_once CALENDAR_ROOT.'Day.php';
174 174
         $year  = $this->cE->stampToYear($this->thisWeek);
175 175
         $month = $this->cE->stampToMonth($this->thisWeek);
176 176
         $day   = $this->cE->stampToDay($this->thisWeek);
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
             case 'array':
295 295
                 return $this->toArray($this->prevWeek);
296 296
             case 'object':
297
-                require_once CALENDAR_ROOT . 'Factory.php';
297
+                require_once CALENDAR_ROOT.'Factory.php';
298 298
 
299 299
                 return Calendar_Factory::createByTimestamp('Week', $this->prevWeek);
300 300
             case 'timestamp':
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
             case 'array':
329 329
                 return $this->toArray($this->thisWeek);
330 330
             case 'object':
331
-                require_once CALENDAR_ROOT . 'Factory.php';
331
+                require_once CALENDAR_ROOT.'Factory.php';
332 332
 
333 333
                 return Calendar_Factory::createByTimestamp('Week', $this->thisWeek);
334 334
             case 'timestamp':
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
             case 'array':
356 356
                 return $this->toArray($this->nextWeek);
357 357
             case 'object':
358
-                require_once CALENDAR_ROOT . 'Factory.php';
358
+                require_once CALENDAR_ROOT.'Factory.php';
359 359
 
360 360
                 return Calendar_Factory::createByTimestamp('Week', $this->nextWeek);
361 361
             case 'timestamp':
Please login to merge, or discard this patch.