| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 2 | public function removeItem(string $name, int $priority = null) |
|
| 36 | { |
||
| 37 | 2 | if ($priority !== null) { |
|
| 38 | 1 | if (isset($this->items[$priority][$name])) { |
|
| 39 | 1 | unset($this->items[$priority][$name]); |
|
| 40 | } |
||
| 41 | |||
| 42 | 1 | return $this; |
|
| 43 | } |
||
| 44 | |||
| 45 | 1 | return $this->removeItemWithoutPriority($name); |
|
| 46 | } |
||
| 47 | |||
| 113 |