Completed
Push — master ( fea2cb...118c60 )
by Litera
21s
created

PublicProgramOverviewControl   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace App\Components;
4
5
use App\Components\PublicProgramsControl;
6
use App\Models\BlockModel;
7
8
class PublicProgramOverviewControl extends AProgramOverviewControl
9
{
10
11
	const TEMPLATE_NAME = 'PublicProgramOverview';
12
13
	/**
14
	 * @param BlockModel               $model
15
	 * @param PublicBlockDetailControl $blockDetailControl
0 ignored issues
show
Documentation introduced by
There is no parameter named $blockDetailControl. Did you maybe mean $control?

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...
16
	 */
17
	public function __construct(BlockModel $model, PublicBlocksByDayControl $control)
0 ignored issues
show
Unused Code introduced by
The parameter $model is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
	{
19
		$this->setBlocksBayControl($control);
20
	}
21
22
}
23