Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | public function allowed(): array |
||
16 | { |
||
17 | return [ |
||
18 | 'type' => 'string', // type of error returned. Can be: 'api_error', 'authentication_error', 'not_found_error', 'validation_error' or 'rate_limit_error'. |
||
19 | 'message' => 'string', // A message providing more details about the error. |
||
20 | 'validation_failed' => 'string', // For validation errors this will provide details on what validation failed. |
||
21 | ]; |
||
24 |