| 1 | <?php |
||
| 10 | class SignedElement |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var XMLSecurityKey[] |
||
| 14 | */ |
||
| 15 | private $xmlSecurityKeyStore; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * SignedElement constructor. |
||
| 19 | * @param XMLSecurityKey[] $xmlSecurityKeyStore |
||
| 20 | */ |
||
| 21 | public function __construct(array $xmlSecurityKeyStore) |
||
| 25 | |||
| 26 | |||
| 27 | public function validate(SamlSignedElement $signedElement, $result) |
||
| 50 | } |
||
| 51 |
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.