Passed
Pull Request — master (#8)
by Alexander
01:18
created

ContextMethod   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 17
c 1
b 0
f 0
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A staticMethod() 0 3 1
A privateMethod() 0 3 1
A protectedMethod() 0 3 1
A publicStaticMethod() 0 3 1
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