@@ -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; |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | $result = true; |
171 | 171 | |
172 | 172 | foreach ($this->parse() as $i => $item) { |
173 | - if (isset($item[(int)$segments[$i]]) === false) { |
|
173 | + if (isset($item[(int) $segments[$i]]) === false) { |
|
174 | 174 | $result = false; |
175 | 175 | break; |
176 | 176 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | if ($this->isValid()) { |
196 | 196 | if ($dtime instanceof \DateTime) { |
197 | 197 | $timestamp = $dtime->getTimestamp(); |
198 | - } elseif ((int)$dtime > 0) { |
|
198 | + } elseif ((int) $dtime > 0) { |
|
199 | 199 | $timestamp = $dtime; |
200 | 200 | } else { |
201 | 201 | $timestamp = time(); |
@@ -445,8 +445,8 @@ discard block |
||
445 | 445 | |
446 | 446 | $this->validateStepping($index, $segments); |
447 | 447 | |
448 | - $element = (string)$segments[0]; |
|
449 | - $stepping = (int)$segments[1]; |
|
448 | + $element = (string) $segments[0]; |
|
449 | + $stepping = (int) $segments[1]; |
|
450 | 450 | } |
451 | 451 | |
452 | 452 | /** |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | throw new \Exception('invalid stepping notation'); |
461 | 461 | } |
462 | 462 | |
463 | - if ((int)$segments[1] <= 0 || (int)$segments[1] > self::$boundaries[$index]['max']) { |
|
463 | + if ((int) $segments[1] <= 0 || (int) $segments[1] > self::$boundaries[$index]['max']) { |
|
464 | 464 | throw new \Exception('stepping out of allowed range'); |
465 | 465 | } |
466 | 466 | } |