NullLanguageDetector   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A detect() 0 3 1
1
<?php
2
3
namespace Onoi\Tesa\LanguageDetector;
4
5
/**
6
 * @license GNU GPL v2+
7
 * @since 0.1
8
 *
9
 * @author mwjames
10
 */
11
class NullLanguageDetector implements LanguageDetector {
12
13
	/**
14
	 * @since 0.1
15
	 *
16
	 * @param string $word
0 ignored issues
show
Bug introduced by
There is no parameter named $word. 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...
17
	 *
18
	 * @return null
19
	 */
20 1
	public function detect( $text ) {
21 1
		return null;
22
	}
23
24
}
25