Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 14 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
73 | View Code Duplication | public function searchContentQueryWithInvalidDataProvider() |
|
74 | { |
||
75 | return array( |
||
76 | array( |
||
77 | '/1/2', |
||
78 | ), |
||
79 | array( |
||
80 | array('/1/2/', '/1/2/4'), |
||
81 | ), |
||
82 | array( |
||
83 | '/1/id0', |
||
84 | ), |
||
85 | ); |
||
86 | } |
||
87 | } |
||
88 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.