Avoid variables with short names like $at. Configured minimum length is 3.
Short variable names may make your code harder to understand. Variable names should
be self-descriptive. This check looks for variable names who are shorter than
a configured minimum.
Loading history...
23
24
/**
25
* @var array
26
*/
27
private $information;
28
29
/**
30
* @param Token $token
31
* @param DateTime|null $at
32
* @param array $information
33
*/
34
1
public function __construct(Token $token, DateTime $at = null, array $information)
Avoid variables with short names like $at. Configured minimum length is 3.
Short variable names may make your code harder to understand. Variable names should
be self-descriptive. This check looks for variable names who are shorter than
a configured minimum.
Parameters which have default values should be placed at the end.
If you place a parameter with a default value before a parameter with a default value,
the default value of the first parameter will never be used as it will always
need to be passed anyway:
// $a must always be passed; it's default value is never used.functionsomeFunction($a=5,$b){}
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.