Passed
Pull Request — master (#405)
by Kirill
08:21 queued 04:03
created

UndefinedMeta   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A method() 0 5 1
1
<?php
2
3
/**
4
 * This file is part of Attributes package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Spiral\Tests\Attributes\Reader\Fixture;
13
14
/** @HelloWorld */
15
#[HelloWorld]
16
class UndefinedMeta
17
{
18
    #[HelloWorld]
19
    public const CONSTANT = 0xDEADBEEF;
20
21
    /** @HelloWorld */
22
    #[HelloWorld]
23
    public $property = 0xDEADBEEF;
24
25
    /** @HelloWorld */
26
    #[HelloWorld]
27
    public function method(
28
        #[HelloWorld]
0 ignored issues
show
Unused Code introduced by
The parameter $parameter 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

28
        /** @scrutinizer ignore-unused */ #[HelloWorld]

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...
29
        int $parameter
30
    ): void {}
31
}
32
33
#[HelloWorld]
34
function undefined_meta()
35
{
36
}
37