Passed
Pull Request — master (#8)
by
unknown
04:39
created

ContextMethod::staticMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Injector\Tests\Support;
6
7
class ContextMethod
8
{
9
    private function privateMethod(): bool
10
    {
11
        return true;
12
    }
13
    protected function protectedMethod(): bool
14
    {
15
        return true;
16
    }
17
    private static function staticMethod(): string
0 ignored issues
show
Unused Code introduced by
The method staticMethod() is not used, and could be removed.

This check looks for private methods that have been defined, but are not used inside the class.

Loading history...
18
    {
19
        return static::class;
20
    }
21
    public static function publicStaticMethod(): string
22
    {
23
        return static::class;
24
    }
25
}
26