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
return new ScopeEntity($identifier);
19
}
20
}
21
22
/**
23
* {@inheritDoc}
24
*/
25
public function finalizeScopes(
26
array $scopes,
27
$grantType,
28
ClientEntityInterface $clientEntity,
29
$userIdentifier = null
30
) {
31
// only check if we have a user, should a client have scopes?
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.