Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | 1 | protected function notAuthorized() |
|
43 | { |
||
44 | 1 | $data = ['error' => $this->getAuthorizationMessage()]; |
|
45 | |||
46 | 1 | $this->response = $this->response |
|
47 | 1 | ->withStatus(403) |
|
48 | 1 | ->withHeader('Content-Type', 'application/json'); |
|
49 | |||
50 | 1 | $this->response->getBody()->write(json_encode($data)); |
|
51 | 1 | } |
|
52 | } |
||
53 |