| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 73 | 2 | public function deleteGroup(string $groupId): bool |
|
| 74 | { |
||
| 75 | 2 | $willDelete = false; |
|
| 76 | 2 | $use = []; |
|
| 77 | 2 | foreach ($this->local as $local) { |
|
| 78 | 2 | if ($local->getGroupId() == $groupId) { |
|
| 79 | 1 | $willDelete = true; |
|
| 80 | } else { |
||
| 81 | 2 | $use[] = $local; |
|
| 82 | } |
||
| 83 | } |
||
| 84 | 2 | $this->local = $use; |
|
| 85 | 2 | return $willDelete; |
|
| 86 | } |
||
| 88 |