@@ -107,7 +107,7 @@ |
||
| 107 | 107 | public function all() |
| 108 | 108 | { |
| 109 | 109 | $items = $this->getArrayCopy(); |
| 110 | - if(empty($items)) return []; |
|
| 110 | + if (empty($items)) return []; |
|
| 111 | 111 | |
| 112 | 112 | return call_user_func_array('array_merge', $items); |
| 113 | 113 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $token = $tokens->current(); |
| 119 | 119 | |
| 120 | 120 | if ($token->isValid($this, $this->_context)) { |
| 121 | - if(($token->isStart() ? $this->handleStart($token) : $this->handleEnd($token)) === false) { |
|
| 121 | + if (($token->isStart() ? $this->handleStart($token) : $this->handleEnd($token)) === false) { |
|
| 122 | 122 | break; |
| 123 | 123 | }; |
| 124 | 124 | } |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | if ($start) { |
| 288 | 288 | unset($this->_context[spl_object_hash($start)]); |
| 289 | 289 | } else { |
| 290 | - $start = ArrayHelper::find(array_reverse($this->_context), function ($k, $v) use ($token) { |
|
| 290 | + $start = ArrayHelper::find(array_reverse($this->_context), function($k, $v) use ($token) { |
|
| 291 | 291 | return $v === $token->name; |
| 292 | 292 | }); |
| 293 | 293 | |
@@ -150,8 +150,8 @@ |
||
| 150 | 150 | private function _rules($embedded = false) |
| 151 | 151 | { |
| 152 | 152 | $rules = clone $this->rules; |
| 153 | - if(is_bool($embedded)) { |
|
| 154 | - $rules->addMany(['language.'.$this->getIdentifier() => $this->getEnds($embedded)]); |
|
| 153 | + if (is_bool($embedded)) { |
|
| 154 | + $rules->addMany(['language.' . $this->getIdentifier() => $this->getEnds($embedded)]); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | foreach ($rules->all() as $rule) { |