Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
76 | public function remove($value) |
||
77 | { |
||
78 | $identityHash = Identity::hash($value); |
||
79 | |||
80 | if (!isset($this->values[$identityHash]) && !array_key_exists($identityHash, $this->values)) { |
||
81 | return false; |
||
82 | } |
||
83 | |||
84 | unset($this->values[$identityHash]); |
||
85 | $this->length--; |
||
86 | |||
87 | return true; |
||
88 | } |
||
89 | |||
98 |