@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function atIndex($index) |
| 111 | 111 | { |
| 112 | - if(array_key_exists($index, $this->nameStack) === false) { |
|
| 112 | + if (array_key_exists($index, $this->nameStack) === false) { |
|
| 113 | 113 | return null; |
| 114 | 114 | } |
| 115 | 115 | |
@@ -150,11 +150,11 @@ discard block |
||
| 150 | 150 | */ |
| 151 | 151 | protected function slice($from, $to) |
| 152 | 152 | { |
| 153 | - if($this->stackCount() < ($to - $from)) { |
|
| 153 | + if ($this->stackCount() < ($to - $from)) { |
|
| 154 | 154 | return null; |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - if($from < 0 || $from >= $this->stackCount()) { |
|
| 157 | + if ($from < 0 || $from >= $this->stackCount()) { |
|
| 158 | 158 | return null; |
| 159 | 159 | } |
| 160 | 160 | |
@@ -30,11 +30,11 @@ discard block |
||
| 30 | 30 | public function middle($short = false) |
| 31 | 31 | { |
| 32 | 32 | $middles = $this->slice(1, $this->stackCount() - 1); |
| 33 | - if($middles === null) { |
|
| 33 | + if ($middles === null) { |
|
| 34 | 34 | return null; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - if($short === true) { |
|
| 37 | + if ($short === true) { |
|
| 38 | 38 | array_walk($middles, function(&$part) { |
| 39 | 39 | $part = $this->shorten($part); |
| 40 | 40 | }); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function last($short = false) |
| 50 | 50 | { |
| 51 | - if($this->stackCount() < 2) { |
|
| 51 | + if ($this->stackCount() < 2) { |
|
| 52 | 52 | return null; |
| 53 | 53 | } |
| 54 | 54 | |