| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | private function resolve(array $tags, array $rulesToApply) |
||
| 29 | { |
||
| 30 | $response = null; |
||
|
|
|||
| 31 | foreach (static::$strategies as $strategy) { |
||
| 32 | $strategy = new $strategy(); |
||
| 33 | $response = $strategy($this->route, $tags, $rulesToApply); |
||
| 34 | if (! is_null($response)) { |
||
| 35 | return $this->getResponseContent($response); |
||
| 36 | } |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 55 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.