@@ -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; |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | $result = true; |
| 186 | 186 | |
| 187 | 187 | foreach ($this->parse() as $i => $item) { |
| 188 | - if (isset($item[(int)$segments[$i]]) === false) { |
|
| 188 | + if (isset($item[(int) $segments[$i]]) === false) { |
|
| 189 | 189 | $result = false; |
| 190 | 190 | break; |
| 191 | 191 | } |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | if ($this->isValid()) { |
| 208 | 208 | if ($dtime instanceof \DateTime) { |
| 209 | 209 | $timestamp = $dtime->getTimestamp(); |
| 210 | - } elseif ((int)$dtime > 0) { |
|
| 210 | + } elseif ((int) $dtime > 0) { |
|
| 211 | 211 | $timestamp = $dtime; |
| 212 | 212 | } else { |
| 213 | 213 | $timestamp = time(); |
@@ -457,8 +457,8 @@ discard block |
||
| 457 | 457 | |
| 458 | 458 | $this->validateStepping($index, $segments); |
| 459 | 459 | |
| 460 | - $element = (string)$segments[0]; |
|
| 461 | - $stepping = (int)$segments[1]; |
|
| 460 | + $element = (string) $segments[0]; |
|
| 461 | + $stepping = (int) $segments[1]; |
|
| 462 | 462 | } |
| 463 | 463 | |
| 464 | 464 | /** |
@@ -472,7 +472,7 @@ discard block |
||
| 472 | 472 | throw new \Exception('invalid stepping notation'); |
| 473 | 473 | } |
| 474 | 474 | |
| 475 | - if ((int)$segments[1] <= 0 || (int)$segments[1] > self::$boundaries[$index]['max']) { |
|
| 475 | + if ((int) $segments[1] <= 0 || (int) $segments[1] > self::$boundaries[$index]['max']) { |
|
| 476 | 476 | throw new \Exception('stepping out of allowed range'); |
| 477 | 477 | } |
| 478 | 478 | } |