| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 54 | 2 | public function updateGroup(Interfaces\IGroup $group): bool |
|
| 55 | { |
||
| 56 | 2 | foreach ($this->local as $local) { |
|
| 57 | 2 | if ($local->getGroupId() == $group->getGroupId()) { |
|
| 58 | 1 | $local->setGroupData( |
|
| 59 | 1 | $local->getGroupId(), |
|
| 60 | 1 | $group->getGroupName(), |
|
| 61 | 1 | $group->getGroupDesc(), |
|
| 62 | 1 | $local->getGroupAuthorId(), |
|
| 63 | 1 | $group->getGroupStatus(), |
|
| 64 | 1 | $group->getGroupParents(), |
|
| 65 | 1 | $group->getGroupExtra() |
|
| 66 | ); |
||
| 67 | 1 | return true; |
|
| 68 | } |
||
| 69 | } |
||
| 70 | 1 | return false; |
|
| 71 | } |
||
| 88 |