InspectorInterface
last analyzed

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
valid() 0 1 ?
1
<?php
2
3
namespace VersionTool\Inspectors;
4
5
use VersionTool\Info\InfoInterface;
6
use VersionTool\Util\ComposerInfo;
7
8
interface InspectorInterface
9
{
10
    /**
11
     * valid checks to see if the provided path is the project root for
12
     * an application that is the specific type of application handled
13
     * by the class that implements InspectorInterface.
14
     *
15
     * @param string $path
0 ignored issues
show
Bug introduced by
There is no parameter named $path. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
16
     * @return InfoInterface|false
17
     */
18
    public function valid(ComposerInfo $composer_info);
19
}
20