@@ -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; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | if ($this->isValid()) { |
143 | 143 | if ($dtime instanceof \DateTime) { |
144 | 144 | $timestamp = $dtime->getTimestamp(); |
145 | - } elseif ((int)$dtime > 0) { |
|
145 | + } elseif ((int) $dtime > 0) { |
|
146 | 146 | $timestamp = $dtime; |
147 | 147 | } else { |
148 | 148 | $timestamp = time(); |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | $result = true; |
264 | 264 | |
265 | 265 | foreach ($this->parse() as $i => $item) { |
266 | - if (isset($item[(int)$segments[$i]]) === false) { |
|
266 | + if (isset($item[(int) $segments[$i]]) === false) { |
|
267 | 267 | $result = false; |
268 | 268 | break; |
269 | 269 | } |
@@ -384,8 +384,8 @@ discard block |
||
384 | 384 | |
385 | 385 | $this->validateStepping($index, $segments); |
386 | 386 | |
387 | - $element = (string)$segments[0]; |
|
388 | - $stepping = (int)$segments[1]; |
|
387 | + $element = (string) $segments[0]; |
|
388 | + $stepping = (int) $segments[1]; |
|
389 | 389 | } |
390 | 390 | |
391 | 391 | /** |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | throw new \Exception('invalid stepping notation'); |
437 | 437 | } |
438 | 438 | |
439 | - if ((int)$segments[1] <= 0 || (int)$segments[1] > self::$boundaries[$index]['max']) { |
|
439 | + if ((int) $segments[1] <= 0 || (int) $segments[1] > self::$boundaries[$index]['max']) { |
|
440 | 440 | throw new \Exception('stepping out of allowed range'); |
441 | 441 | } |
442 | 442 | } |