| Conditions | 2 |
| Paths | 2 |
| Total Lines | 23 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function getScopeEntityByIdentifier($scopeIdentifier) |
||
| 22 | { |
||
| 23 | $scopes = [ |
||
| 24 | // Without this OpenID Connect cannot work. |
||
| 25 | 'openid' => [ |
||
| 26 | 'description' => 'Enable OpenID Connect support' |
||
| 27 | ], |
||
| 28 | 'basic' => [ |
||
| 29 | 'description' => 'Basic details about you', |
||
| 30 | ], |
||
| 31 | 'email' => [ |
||
| 32 | 'description' => 'Your email address', |
||
| 33 | ], |
||
| 34 | ]; |
||
| 35 | |||
| 36 | if (array_key_exists($scopeIdentifier, $scopes) === false) { |
||
| 37 | return; |
||
| 38 | } |
||
| 39 | |||
| 40 | $scope = new ScopeEntity(); |
||
| 41 | $scope->setIdentifier($scopeIdentifier); |
||
| 42 | |||
| 43 | return $scope; |
||
| 44 | } |
||
| 46 |
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