| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait ReadOnlyResourceTrait |
||
| 8 | { |
||
| 9 | final public function create(array $options): array |
||
|
|
|||
| 10 | { |
||
| 11 | throw new BadMethodCallException( |
||
| 12 | 'The create method of this resource is not supported.' |
||
| 13 | ); |
||
| 14 | } |
||
| 15 | |||
| 16 | final public function update($id, array $options): array |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | |||
| 23 | final public function delete($id): bool |
||
| 27 | ); |
||
| 28 | } |
||
| 30 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.