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.
Loading history...
18
19
20
// Build the input for our validation
21
$input = array('image' => Input::file('image'));
22
23
// Within the ruleset, make sure we let the validator know that this
24
// file should be an image
25
$rules = array(
26
'image' => 'image'
27
);
28
29
// Now pass the input and rules into the validator
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.