| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function get() { |
||
| 28 | $url = $this->endpoint . $this->api . $this->v2 . $this->client . '/'; |
||
| 29 | $request = $this->getClient()->get($url, [ |
||
| 30 | 'auth' => $this->getAuth(), |
||
| 31 | 'headers' => [ |
||
| 32 | 'content-type' => 'application/json' |
||
| 33 | ], |
||
| 34 | ]); |
||
| 35 | |||
| 36 | if($request->getStatusCode() === 404) { |
||
| 37 | throw new Exception('There was a issue connecting to Learning Locker.'); |
||
| 38 | } |
||
| 39 | |||
| 40 | $response = $request->json(); |
||
| 41 | |||
| 42 | return true; |
||
| 43 | } |
||
| 45 |
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