1 | <?php |
||
21 | class PersonalSettingsControllerTest extends AbstractElasticsearchTestCase |
||
22 | { |
||
23 | /** |
||
24 | * @var Client. |
||
25 | */ |
||
26 | private $client; |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | protected function setUp() |
||
36 | |||
37 | /** |
||
38 | * Test settings page ability to set values to cookie. |
||
39 | */ |
||
40 | public function testSettingsAction() |
||
61 | } |
||
62 |
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.