ErrorCollector   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A forbidden() 0 2 1
A required() 0 2 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: peter
5
 * Date: 20.07.18
6
 * Time: 13:51
7
 */
8
9
namespace Maslosoft\Whitelist\Helpers;
10
11
use Maslosoft\Whitelist\Interfaces\TokenInterface;
12
13
class ErrorCollector
14
{
15
	private $errors = [];
0 ignored issues
show
introduced by
The private property $errors is not used, and could be removed.
Loading history...
16
	public function forbidden(TokenInterface $token)
0 ignored issues
show
Unused Code introduced by
The parameter $token 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

16
	public function forbidden(/** @scrutinizer ignore-unused */ TokenInterface $token)

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...
17
	{
18
19
	}
20
21
	public function required(TokenInterface $token)
0 ignored issues
show
Unused Code introduced by
The parameter $token 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

21
	public function required(/** @scrutinizer ignore-unused */ TokenInterface $token)

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...
22
	{
23
24
	}
25
}