Completed
Push — master ( 0ea243...da58d4 )
by Henry
10:25 queued 33s
created

includes/Template/Helper/HelperAbstract.php (1 issue)

Look for PHPDoc comments for non-existent parameters and make alternative suggestion.

Documentation Minor

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
namespace Redaxscript\Template\Helper;
3
4
use Redaxscript\Language;
5
use Redaxscript\Registry;
6
7
/**
8
 * abstract class to create a helper class
9
 *
10
 * @since 3.0.0
11
 *
12
 * @package Redaxscript
13
 * @category Template
14
 * @author Henry Ruhs
15
 */
16
17
abstract class HelperAbstract implements HelperInterface
18
{
19
	/**
20
	 * instance of the registry class
21
	 *
22
	 * @var Registry
23
	 */
24
25
	protected $_registry;
26
27
	/**
28
	 * instance of the language class
29
	 *
30
	 * @var Registry
31
	 */
32
33
	protected $_language;
34
35
	/**
36
	 * constructor of the class
37
	 *
38
	 * @since 3.0.0
39
	 *
40
	 * @param Registry $registry instance of the registry class
41
	 * @param Language $language; instance of the language; class
42
	 */
0 ignored issues
show
There is no parameter named $language;. Did you maybe mean $language?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

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

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

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

Loading history...
43
44 57
	public function __construct(Registry $registry, Language $language)
45
	{
46 57
		$this->_registry = $registry;
47 57
		$this->_language = $language;
48
	}
49
}