| Conditions | 3 |
| Paths | 4 |
| Total Lines | 25 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function call(Micro $api) |
||
| 24 | { |
||
| 25 | $config = $api->getService('config'); |
||
| 26 | $request = $api->getService('request'); |
||
| 27 | |||
| 28 | $anonymousUser = false; |
||
| 29 | $token = null; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * This is where we will find if the user exists based on |
||
| 33 | * the token passed using Bearer Authentication. |
||
| 34 | */ |
||
| 35 | if (!empty($request->getBearerTokenFromHeader())) { |
||
| 36 | $token = $this->getToken($request->getBearerTokenFromHeader()); |
||
| 37 | } else { |
||
| 38 | $anonymousUser = true; |
||
| 39 | } |
||
| 40 | |||
| 41 | if (!$anonymousUser) { |
||
| 42 | $this->sessionUser($api, $config, $token, $request); |
||
| 43 | } else { |
||
| 44 | $this->anonymousUser($api, $config, $token, $request); |
||
| 45 | } |
||
| 46 | |||
| 47 | return true; |
||
| 48 | } |
||
| 50 |
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