Passed
Push — master ( ce35d5...4f9e4f )
by Nelson
02:36
created

WithSomeMethodsClass::privateMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
/**
3
 * PHP: Nelson Martell Library file
4
 *
5
 * Copyright © 2019 Nelson Martell (http://nelson6e65.github.io)
6
 *
7
 * Licensed under The MIT License (MIT)
8
 * For full copyright and license information, please see the LICENSE
9
 * Redistributions of files must retain the above copyright notice.
10
 *
11
 * @copyright 2019 Nelson Martell
12
 * @link      http://nelson6e65.github.io/php_nml/
13
 * @since     1.0.0
14
 * @license   http://www.opensource.org/licenses/mit-license.php The MIT License (MIT)
15
 * */
16
17
namespace NelsonMartell\Test\DataProviders\ExampleClass;
18
19
use BadMethodCallException;
20
21
22
/**
23
 * @internal
24
 *
25
 * @author Nelson Martell <[email protected]>
26
 * @since 1.0.0
27
 *
28
 * @method string magicMethod()
29
 */
30
class WithSomeMethodsClass
31
{
32
    /**
33
     *
34
     */
35
    private function privateMethod() : void
36
    {
37
    }
38
39
    /**
40
     *
41
     */
42
    protected function protectedMethod() : void
43
    {
44
    }
45
46
    /**
47
     *
48
     */
49
    public function publicMethod() : void
50
    {
51
    }
52
53
    /**
54
     *
55
     *
56
     * @param  string $name
57
     * @param  array  $arguments
58
     *
59
     * @return
60
     */
61
    public function _call(string $name, array $arguments = [])
0 ignored issues
show
Unused Code introduced by
The parameter $arguments 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

61
    public function _call(string $name, /** @scrutinizer ignore-unused */ array $arguments = [])

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...
62
    {
63
        if ($name === 'magicMethod') {
64
            return 'string';
65
        }
66
67
        throw new BadMethodCallException($name.' method do not exists.');
68
    }
69
}
70