Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | trait ArrayAccessTrait |
||
15 | { |
||
16 | /** |
||
17 | * Unused part of the ArrayAccess interface |
||
18 | * |
||
19 | * @param $offset |
||
20 | * @param $value |
||
21 | * @throws \BadMethodCallException |
||
22 | */ |
||
23 | public function offsetSet(/** @scrutinizer ignore-unused */ $offset, $value) |
||
|
|||
24 | { |
||
25 | throw new BadMethodCallException( |
||
26 | "not implemented" |
||
27 | ); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Unused part of the ArrayAccess interface |
||
32 | * |
||
33 | * @param $offset |
||
34 | * @throws \BadMethodCallException |
||
35 | */ |
||
36 | public function offsetExists(/** @scrutinizer ignore-unused */ $offset) |
||
37 | { |
||
38 | throw new BadMethodCallException( |
||
39 | "not implemented" |
||
40 | ); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Unused part of the ArrayAccess interface |
||
45 | * |
||
46 | * @param $offset |
||
47 | * @throws \BadMethodCallException |
||
48 | */ |
||
49 | public function offsetUnset(/** @scrutinizer ignore-unused */ $offset) |
||
53 | ); |
||
54 | } |
||
55 | |||
58 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.