@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | public function setExpression($expression) |
113 | 113 | { |
114 | - $this->expression = trim((string)$expression); |
|
114 | + $this->expression = trim((string) $expression); |
|
115 | 115 | $this->register = null; |
116 | 116 | |
117 | 117 | return $this; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | } else { |
163 | 163 | $dt = new \DateTime('now', $this->timeZone); |
164 | 164 | |
165 | - if ((int)$dtime > 0) { |
|
165 | + if ((int) $dtime > 0) { |
|
166 | 166 | $dt->setTimestamp($dtime); |
167 | 167 | } |
168 | 168 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | $result = true; |
176 | 176 | |
177 | 177 | foreach ($this->parse() as $i => $item) { |
178 | - if (isset($item[(int)$segments[$i]]) === false) { |
|
178 | + if (isset($item[(int) $segments[$i]]) === false) { |
|
179 | 179 | $result = false; |
180 | 180 | break; |
181 | 181 | } |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | if ($this->isValid()) { |
201 | 201 | if ($dtime instanceof \DateTime) { |
202 | 202 | $timestamp = $dtime->getTimestamp(); |
203 | - } elseif ((int)$dtime > 0) { |
|
203 | + } elseif ((int) $dtime > 0) { |
|
204 | 204 | $timestamp = $dtime; |
205 | 205 | } else { |
206 | 206 | $timestamp = time(); |
@@ -424,8 +424,8 @@ discard block |
||
424 | 424 | |
425 | 425 | $this->validateStepping($index, $segments); |
426 | 426 | |
427 | - $element = (string)$segments[0]; |
|
428 | - $stepping = (int)$segments[1]; |
|
427 | + $element = (string) $segments[0]; |
|
428 | + $stepping = (int) $segments[1]; |
|
429 | 429 | } |
430 | 430 | |
431 | 431 | /** |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | throw new \Exception('invalid stepping notation'); |
440 | 440 | } |
441 | 441 | |
442 | - if ((int)$segments[1] <= 0 || (int)$segments[1] > self::$boundaries[$index]['max']) { |
|
442 | + if ((int) $segments[1] <= 0 || (int) $segments[1] > self::$boundaries[$index]['max']) { |
|
443 | 443 | throw new \Exception('stepping out of allowed range'); |
444 | 444 | } |
445 | 445 | } |