Issues (15)

src/ArrayAccessTrait.php (1 issue)

Severity
1
<?php
2
/**
3
 * ArrayAccessTrait
4
 *
5
 * @package php-deferred-callchain
6
 * @author  Jean Claveau
7
 */
8
namespace JClaveau\Async;
9
use       BadMethodCallException;
10
11
/**
12
 * Trait gathering unused array access required methods
13
 */
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)
0 ignored issues
show
The parameter $value is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

23
    public function offsetSet(/** @scrutinizer ignore-unused */ $offset, /** @scrutinizer ignore-unused */ $value)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
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)
50
    {
51
        throw new BadMethodCallException(
52
            "not implemented"
53
        );
54
    }
55
56
    /**/
57
}
58