| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class ReallySimpleJWTValidateTokenFactory implements RequiresConfig |
||
| 14 | { |
||
| 15 | use ConfigurationTrait; |
||
| 16 | |||
| 17 | public function __invoke(ContainerInterface $container): ValidateToken |
||
| 18 | { |
||
| 19 | $config = $container->get('config')['jwt_auth']; |
||
| 20 | |||
| 21 | return new ReallySimpleJWTValidateToken( |
||
| 22 | new TokenConfig( |
||
| 23 | $config['secret'], |
||
| 24 | $config['expiration'], |
||
| 25 | $config['issuer'] |
||
| 26 | ) |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc \Interop\Config\RequiresConfig::dimensions |
||
| 32 | */ |
||
| 33 | public function dimensions(): iterable |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths