1 | <?php |
||
12 | final class Ruleset |
||
13 | { |
||
14 | /** |
||
15 | * @var RulesetBuilder |
||
16 | */ |
||
17 | private $rulesetBuilder; |
||
18 | |||
19 | public function __construct(RulesetBuilder $rulesetBuilder) |
||
23 | |||
24 | /** |
||
25 | * @param array|Sniff[] $sniffs |
||
26 | */ |
||
27 | public function decorateSniffsWithCustomRules(array $sniffs) |
||
42 | |||
43 | /** |
||
44 | * @param string $sniffCode |
||
45 | * @param string $name |
||
46 | * @param string|array $value |
||
47 | */ |
||
48 | private function setSniffProperty(string $sniffCode, string $name, $value) |
||
68 | } |
||
69 |
This check looks for calls to
isset(...)
orempty()
on variables that are yet undefined. These calls will always produce the same result and can be removed.This is most likely caused by the renaming of a variable or the removal of a function/method parameter.