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...
19
}
20
21
/**
22
* Clean up any temporary directories that may have been created
23
*/
24
public function cleanup()
25
{
26
$fs = new Filesystem();
27
foreach ($this->tmpDirs as $tmpDir) {
28
try {
29
$fs->remove($tmpDir);
30
}
31
catch (\Exception $e) {
32
// Ignore problems with removing fixtures.
33
}
34
}
35
$this->tmpDirs = [];
36
}
37
38
/**
39
* Create a new temporary directory.
40
*
41
* @param string|bool $basedir Where to store the temporary directory
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.