| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function createDefinition(ContainerBuilder $container, array $config): Definition |
||
| 26 | { |
||
| 27 | $definition = new Definition(JWKSet::class); |
||
|
|
|||
| 28 | $definition->setFactory([ |
||
| 29 | new Reference(JWKFactory::class), |
||
| 30 | 'createFromValues', |
||
| 31 | ]); |
||
| 32 | $definition->setArguments([ |
||
| 33 | json_decode($config['value'], true), |
||
| 34 | ]); |
||
| 35 | |||
| 36 | return $definition; |
||
| 37 | } |
||
| 38 | |||
| 59 |
This check looks for accesses to local static members using the fully qualified name instead of
self::.While this is perfectly valid, the fully qualified name of
Certificate::TRIPLEDES_CBCcould just as well be replaced byself::TRIPLEDES_CBC. Referencing local members withself::assured the access will still work when the class is renamed, makes it perfectly clear that the member is in fact local and will usually be shorter.