| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 63 | 3 | private function changeStatus(string $status, float $parentId, float $id): array |
|
| 64 | { |
||
| 65 | 3 | $response = $this->request('POST', sprintf( |
|
| 66 | 3 | '/admin/%s/%s/%s/%s/%s.json', |
|
| 67 | 3 | $this->resourceParentEndpointPleural, |
|
| 68 | 3 | $parentId, |
|
| 69 | 3 | $this->resourceChildEndpointPleural, |
|
| 70 | 3 | $id, |
|
| 71 | 3 | $status |
|
| 72 | )); |
||
| 73 | |||
| 74 | 1 | return $response[$this->resourceChildKeySingular]; |
|
| 75 | } |
||
| 76 | } |
||
| 77 |