Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
72 | public function deleteGroup () |
||
73 | { |
||
74 | if (!isset($this->board_id)) |
||
75 | { |
||
76 | throw new InvalidObjectException("This group may have been archived or deleted; its parent board ID cannot be accessed", 3); |
||
77 | } |
||
78 | |||
79 | $this->checkInvalid(); |
||
80 | |||
81 | $url = sprintf("%s/%s/groups/%s.json", parent::apiEndpoint(), $this->getBoardId(), $this->getId()); |
||
|
|||
82 | |||
83 | self::sendDelete($url); |
||
84 | |||
85 | $this->deletedObject = true; |
||
86 | } |
||
87 | } |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.