ErrorCollector::forbidden()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 2
rs 10
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
}