1 | <?php |
||
15 | class LcobucciParser implements ParserInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var Parser $parser |
||
19 | */ |
||
20 | protected $parser; |
||
21 | |||
22 | /** |
||
23 | * @var Signer |
||
24 | */ |
||
25 | protected $signer; |
||
26 | |||
27 | /** |
||
28 | * @var Configuration |
||
29 | */ |
||
30 | protected $config; |
||
31 | |||
32 | /** |
||
33 | * @var ValidationData |
||
34 | */ |
||
35 | protected $validation; |
||
36 | |||
37 | /** |
||
38 | * @param Parser $parser |
||
39 | * @param Signer $signer |
||
40 | * @param Configuration $config |
||
41 | * @param ValidationData $validation |
||
42 | */ |
||
43 | 3 | public function __construct( |
|
55 | |||
56 | /** |
||
57 | * @inheritDoc |
||
58 | */ |
||
59 | 3 | public function parseToken($token) |
|
67 | |||
68 | /** |
||
69 | * @param string $token |
||
70 | * @return ParsedToken |
||
71 | * @throws InvalidException if token can't be parsed |
||
72 | */ |
||
73 | 3 | protected function getParsedToken($token) |
|
85 | |||
86 | /** |
||
87 | * @param ParsedToken $parsed |
||
88 | * @throws InvalidException if token validation fails |
||
89 | */ |
||
90 | 3 | protected function verifyParsedToken(ParsedToken $parsed) |
|
100 | |||
101 | /** |
||
102 | * @param ParsedToken $parsed |
||
103 | * @throws InvalidException if token validation fails |
||
104 | */ |
||
105 | 2 | protected function validateParsedToken(ParsedToken $parsed) |
|
115 | |||
116 | /** |
||
117 | * @param ParsedToken $parsed |
||
118 | * @return array |
||
119 | */ |
||
120 | 1 | protected function getTokenMetadata(ParsedToken $parsed) |
|
128 | } |
||
129 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.