@@ -151,7 +151,7 @@  | 
                                                    ||
| 151 | 151 | }  | 
                                                        
| 152 | 152 | |
| 153 | 153 | /**  | 
                                                        
| 154 | - * @return Token|null|false  | 
                                                        |
| 154 | + * @return Token  | 
                                                        |
| 155 | 155 | */  | 
                                                        
| 156 | 156 | public function getEnd()  | 
                                                        
| 157 | 157 |      { | 
                                                        
@@ -197,13 +197,12 @@ discard block  | 
                                                    ||
| 197 | 197 | * @return bool Return true to continue processing, false to return already processed tokens.  | 
                                                        
| 198 | 198 | */  | 
                                                        
| 199 | 199 |      public function process(array &$context, Language $language, Result $result, TokenIterator $tokens) { | 
                                                        
| 200 | -        if(!$this->isValid($language, $context)) { | 
                                                        |
| 200 | +        if (!$this->isValid($language, $context)) { | 
                                                        |
| 201 | 201 | return true;  | 
                                                        
| 202 | 202 | }  | 
                                                        
| 203 | 203 | |
| 204 | 204 | return $this->isStart() ?  | 
                                                        
| 205 | - $this->processStart($context, $language, $result, $tokens) :  | 
                                                        |
| 206 | - $this->processEnd($context, $language, $result, $tokens);  | 
                                                        |
| 205 | + $this->processStart($context, $language, $result, $tokens) : $this->processEnd($context, $language, $result, $tokens);  | 
                                                        |
| 207 | 206 | }  | 
                                                        
| 208 | 207 | |
| 209 | 208 |      protected function processStart(array &$context, Language $language, Result $result, TokenIterator $tokens) { | 
                                                        
@@ -214,10 +213,10 @@ discard block  | 
                                                    ||
| 214 | 213 | }  | 
                                                        
| 215 | 214 | |
| 216 | 215 |      protected function processEnd(array &$context, Language $language, Result $result, TokenIterator $tokens) { | 
                                                        
| 217 | -        if($this->_start) { | 
                                                        |
| 216 | +        if ($this->_start) { | 
                                                        |
| 218 | 217 | unset($context[spl_object_hash($this->_start)]);  | 
                                                        
| 219 | 218 |          } else { | 
                                                        
| 220 | -            $start = ArrayHelper::find(array_reverse($context), function ($k, $v) { | 
                                                        |
| 219 | +            $start = ArrayHelper::find(array_reverse($context), function($k, $v) { | 
                                                        |
| 221 | 220 | return $v === $this->closedBy;  | 
                                                        
| 222 | 221 | });  | 
                                                        
| 223 | 222 | |
@@ -248,11 +247,11 @@ discard block  | 
                                                    ||
| 248 | 247 | return $multiplier;  | 
                                                        
| 249 | 248 | }  | 
                                                        
| 250 | 249 |          } elseif (($rule = Helper::cmp($b->rule->priority, $a->rule->priority)) !== 0) { | 
                                                        
| 251 | - return $multiplier*$rule;  | 
                                                        |
| 250 | + return $multiplier * $rule;  | 
                                                        |
| 252 | 251 |          } elseif (($rule = Helper::cmp($b->index, $a->index)) !== 0) { | 
                                                        
| 253 | - return $multiplier*$rule;  | 
                                                        |
| 252 | + return $multiplier * $rule;  | 
                                                        |
| 254 | 253 |          } else { | 
                                                        
| 255 | - return $multiplier*($a->id < $b->id ? -1 : 1);  | 
                                                        |
| 254 | + return $multiplier * ($a->id < $b->id ? -1 : 1);  | 
                                                        |
| 256 | 255 | }  | 
                                                        
| 257 | 256 | }  | 
                                                        
| 258 | 257 | }  |