Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function testPrivateKeyNotSplFileObject() |
||
18 | { |
||
19 | $this->setExpectedException('\\InvalidArgumentException', 'private_key needs to be instance of SplFileObject'); |
||
20 | $grantType = new JwtBearer($this->getClient(), [ |
||
|
|||
21 | 'client_id' => 'testClient', |
||
22 | 'private_key' => 'INVALID' |
||
23 | ]); |
||
24 | } |
||
25 | |||
37 |
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.