Completed
Push — master ( a21b67...ec1681 )
by Michael
02:43
created
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/10.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
 if (!@include 'Calendar/Calendar.php') {
10 10
     define('CALENDAR_ROOT', '../../');
11 11
 }
12
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
13
-require_once CALENDAR_ROOT . 'Decorator.php';
12
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
13
+require_once CALENDAR_ROOT.'Decorator.php';
14 14
 
15 15
 // Decorate a Month with methods to improve formatting
16 16
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $prevStamp = parent::prevMonth(true);
38 38
 
39 39
         // Build the URL for the previous month
40
-        return $_SERVER['PHP_SELF'] . '?y=' . date('Y', $prevStamp) . '&m=' . date('n', $prevStamp) . '&d=' . date('j', $prevStamp);
40
+        return $_SERVER['PHP_SELF'].'?y='.date('Y', $prevStamp).'&m='.date('n', $prevStamp).'&d='.date('j', $prevStamp);
41 41
     }
42 42
 
43 43
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $nextStamp = parent::nextMonth(true);
60 60
 
61 61
         // Build the URL for next month
62
-        return $_SERVER['PHP_SELF'] . '?y=' . date('Y', $nextStamp) . '&m=' . date('n', $nextStamp) . '&d=' . date('j', $nextStamp);
62
+        return $_SERVER['PHP_SELF'].'?y='.date('Y', $nextStamp).'&m='.date('n', $nextStamp).'&d='.date('j', $nextStamp);
63 63
     }
64 64
 }
65 65
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         if ($Day->isEmpty()) {
96 96
             echo '<td>&nbsp;</td>';
97 97
         } else {
98
-            echo '<td>' . $Day->thisDay() . '</td>';
98
+            echo '<td>'.$Day->thisDay().'</td>';
99 99
         }
100 100
         if ($Day->isLast()) {
101 101
             echo "\n</tr>\n";
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/18.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@  discard block
 block discarded – undo
5 5
 if (!@include 'Calendar/Calendar.php') {
6 6
     define('CALENDAR_ROOT', '../../');
7 7
 }
8
-require_once CALENDAR_ROOT . 'Month.php';
9
-require_once CALENDAR_ROOT . 'Decorator.php'; // Not really needed but added to help this make sense
10
-require_once CALENDAR_ROOT . 'Decorator/Wrapper.php';
8
+require_once CALENDAR_ROOT.'Month.php';
9
+require_once CALENDAR_ROOT.'Decorator.php'; // Not really needed but added to help this make sense
10
+require_once CALENDAR_ROOT.'Decorator/Wrapper.php';
11 11
 
12 12
 /**
13 13
  * Class MyBoldDecorator.
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function thisDay()
29 29
     {
30
-        return '<b>' . parent::thisDay() . '</b>';
30
+        return '<b>'.parent::thisDay().'</b>';
31 31
     }
32 32
 }
33 33
 
@@ -39,5 +39,5 @@  discard block
 block discarded – undo
39 39
 echo '<h2>The Wrapper decorator</h2>';
40 40
 echo '<i>Day numbers are rendered in bold</i><br> <br>';
41 41
 while ($DecoratedDay = $Wrapper->fetch('MyBoldDecorator')) {
42
-    echo $DecoratedDay->thisDay() . '<br>';
42
+    echo $DecoratedDay->thisDay().'<br>';
43 43
 }
Please login to merge, or discard this patch.
class/pear/Calendar/docs/examples/22.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
 if (!@include 'Calendar/Calendar.php') {
6 6
     define('CALENDAR_ROOT', '../../');
7 7
 }
8
-require_once CALENDAR_ROOT . 'Month/Weekdays.php';
9
-require_once CALENDAR_ROOT . 'Util/Uri.php';
8
+require_once CALENDAR_ROOT.'Month/Weekdays.php';
9
+require_once CALENDAR_ROOT.'Util/Uri.php';
10 10
 
11 11
 if (!isset($_GET['jahr'])) {
12 12
     $_GET['jahr'] = date('Y');
@@ -18,15 +18,15 @@  discard block
 block discarded – undo
18 18
 // Build the month
19 19
 $Calendar = new Calendar_Month_Weekdays($_GET['jahr'], $_GET['monat']);
20 20
 
21
-echo '<p>The current month is ' . $Calendar->thisMonth() . ' of year ' . $Calendar->thisYear() . '</p>';
21
+echo '<p>The current month is '.$Calendar->thisMonth().' of year '.$Calendar->thisYear().'</p>';
22 22
 
23 23
 $Uri = new Calendar_Util_Uri('jahr', 'monat');
24 24
 $Uri->setFragments('jahr', 'monat');
25 25
 
26 26
 echo '"Vector" URIs<pre>';
27
-echo "Previous Uri:\t" . htmlentities($Uri->prev($Calendar, 'month')) . "\n";
28
-echo "This Uri:\t" . htmlentities($Uri->this($Calendar, 'month')) . "\n";
29
-echo "Next Uri:\t" . htmlentities($Uri->next($Calendar, 'month')) . "\n";
27
+echo "Previous Uri:\t".htmlentities($Uri->prev($Calendar, 'month'))."\n";
28
+echo "This Uri:\t".htmlentities($Uri->this($Calendar, 'month'))."\n";
29
+echo "Next Uri:\t".htmlentities($Uri->next($Calendar, 'month'))."\n";
30 30
 echo '</pre>';
31 31
 
32 32
 // Switch to scalar URIs
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
 $Uri->scalar    = true; // Omit variable names
35 35
 
36 36
 echo '"Scalar" URIs<pre>';
37
-echo "Previous Uri:\t" . $Uri->prev($Calendar, 'month') . "\n";
38
-echo "This Uri:\t" . $Uri->this($Calendar, 'month') . "\n";
39
-echo "Next Uri:\t" . $Uri->next($Calendar, 'month') . "\n";
37
+echo "Previous Uri:\t".$Uri->prev($Calendar, 'month')."\n";
38
+echo "This Uri:\t".$Uri->this($Calendar, 'month')."\n";
39
+echo "Next Uri:\t".$Uri->next($Calendar, 'month')."\n";
40 40
 echo '</pre>';
41 41
 
42 42
 // Restore the vector URIs
@@ -44,6 +44,6 @@  discard block
 block discarded – undo
44 44
 $Uri->scalar    = false;
45 45
 ?>
46 46
 <p>
47
-    <a href="<?php echo $_SERVER['PHP_SELF'] . '?' . $Uri->prev($Calendar, 'month'); ?>">Prev</a> :
48
-    <a href="<?php echo $_SERVER['PHP_SELF'] . '?' . $Uri->next($Calendar, 'month'); ?>">Next</a>
47
+    <a href="<?php echo $_SERVER['PHP_SELF'].'?'.$Uri->prev($Calendar, 'month'); ?>">Prev</a> :
48
+    <a href="<?php echo $_SERVER['PHP_SELF'].'?'.$Uri->next($Calendar, 'month'); ?>">Next</a>
49 49
 </p>
Please login to merge, or discard this patch.
class/pear/Calendar/Second.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 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 Second<br>
Please login to merge, or discard this patch.
class/pear/Calendar/Minute.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 Minute and builds Seconds
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function build($sDates = array())
97 97
     {
98
-        require_once CALENDAR_ROOT . 'Second.php';
98
+        require_once CALENDAR_ROOT.'Second.php';
99 99
         $sIM = $this->cE->getSecondsInMinute($this->year, $this->month, $this->day, $this->hour, $this->minute);
100 100
         for ($i = 0; $i < $sIM; ++$i) {
101 101
             $this->children[$i] = new Calendar_Second($this->year, $this->month, $this->day, $this->hour, $this->minute, $i);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 && $this->day == $sDate->thisDay()
122 122
                 && $this->hour == $sDate->thisHour()
123 123
                 && $this->minute == $sDate->thisMinute()) {
124
-                $key = (int)$sDate->thisSecond();
124
+                $key = (int) $sDate->thisSecond();
125 125
                 if (isset($this->children[$key])) {
126 126
                     $sDate->setSelected();
127 127
                     $this->children[$key] = $sDate;
Please login to merge, or discard this patch.
class/pear/Calendar/Calendar.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         }
98 98
         if (!$engine) {
99 99
             if (!class_exists($class)) {
100
-                require_once CALENDAR_ROOT . 'Engine' . '/' . CALENDAR_ENGINE . '.php';
100
+                require_once CALENDAR_ROOT.'Engine'.'/'.CALENDAR_ENGINE.'.php';
101 101
             }
102 102
             $engine = new $class();
103 103
         }
@@ -209,13 +209,13 @@  discard block
 block discarded – undo
209 209
         if (!isset($cE)) {
210 210
             $cE = Calendar_Engine_Factory::getEngine();
211 211
         }
212
-        $this->cE     =& $cE;
213
-        $this->year   = (int)$y;
214
-        $this->month  = (int)$m;
215
-        $this->day    = (int)$d;
216
-        $this->hour   = (int)$h;
217
-        $this->minute = (int)$i;
218
-        $this->second = (int)$s;
212
+        $this->cE     = & $cE;
213
+        $this->year   = (int) $y;
214
+        $this->month  = (int) $m;
215
+        $this->day    = (int) $d;
216
+        $this->hour   = (int) $h;
217
+        $this->minute = (int) $i;
218
+        $this->second = (int) $s;
219 219
     }
220 220
 
221 221
     /**
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
                 return $this->toArray($stamp);
332 332
                 break;
333 333
             case 'object':
334
-                require_once CALENDAR_ROOT . 'Factory.php';
334
+                require_once CALENDAR_ROOT.'Factory.php';
335 335
 
336 336
                 return Calendar_Factory::createByTimestamp($returnType, $stamp);
337 337
                 break;
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
      */
354 354
     public function build($sDates = array())
355 355
     {
356
-        require_once __DIR__ . '/PEAR.php';
356
+        require_once __DIR__.'/PEAR.php';
357 357
         PEAR::raiseError('Calendar::build is abstract', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar::build()');
358 358
 
359 359
         return false;
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
      */
370 370
     public function setSelection($sDates)
371 371
     {
372
-        require_once __DIR__ . '/PEAR.php';
372
+        require_once __DIR__.'/PEAR.php';
373 373
         PEAR::raiseError('Calendar::setSelection is abstract', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar::setSelection()');
374 374
 
375 375
         return false;
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
     public function &getValidator()
437 437
     {
438 438
         if (!isset($this->validator)) {
439
-            require_once CALENDAR_ROOT . 'Validator.php';
439
+            require_once CALENDAR_ROOT.'Validator.php';
440 440
             $this->validator = new Calendar_Validator($this);
441 441
         }
442 442
 
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
     {
471 471
         if (defined('CALENDAR_FIRST_DAY_OF_WEEK')) {
472 472
             if (($firstDay != CALENDAR_FIRST_DAY_OF_WEEK) && !is_null($firstDay)) {
473
-                $msg = 'CALENDAR_FIRST_DAY_OF_WEEK constant already defined.' . ' The $firstDay parameter will be ignored.';
473
+                $msg = 'CALENDAR_FIRST_DAY_OF_WEEK constant already defined.'.' The $firstDay parameter will be ignored.';
474 474
                 trigger_error($msg, E_USER_WARNING);
475 475
             }
476 476
 
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/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 = array())
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.