1 | <?php |
||
2 | |||
3 | namespace Ijeffro\Laralocker\LearningLocker; |
||
4 | |||
5 | use Config; |
||
6 | |||
7 | use GuzzleHttp\Client; |
||
0 ignored issues
–
show
|
|||
8 | use GuzzleHttp\Psr7\Request; |
||
0 ignored issues
–
show
The type
GuzzleHttp\Psr7\Request was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
9 | use GuzzleHttp\Exception\RequestException; |
||
0 ignored issues
–
show
The type
GuzzleHttp\Exception\RequestException was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
10 | |||
11 | use GuzzleHttp\Pool; |
||
0 ignored issues
–
show
The type
GuzzleHttp\Pool was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
12 | use GuzzleHttp\Psr7\Response; |
||
0 ignored issues
–
show
The type
GuzzleHttp\Psr7\Response was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
13 | |||
14 | use Psr7\Http\Message\RequestInterface; |
||
0 ignored issues
–
show
The type
Psr7\Http\Message\RequestInterface was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
15 | use GuzzleHttp\Promise\PromiseInterface; |
||
0 ignored issues
–
show
The type
GuzzleHttp\Promise\PromiseInterface was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
16 | use Psr7\Http\Message\ResponseInterface; |
||
0 ignored issues
–
show
The type
Psr7\Http\Message\ResponseInterface was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
17 | |||
18 | |||
19 | class Connection { |
||
20 | |||
21 | protected $org; |
||
22 | protected $url; |
||
23 | protected $key; |
||
24 | protected $secret; |
||
25 | protected $headers; |
||
26 | protected $settings; |
||
27 | protected $endpoint; |
||
28 | protected $connection; |
||
29 | |||
30 | public function __construct($key = null, $secret = null, $url = null) { |
||
31 | // $this->org = $org; |
||
32 | // $this->settings = $settings; |
||
33 | // $this->endpoint = $settings[LearningLocker::URL] ?? null; |
||
34 | // $this->key = $settings[LearningLocker::KEY] ?? null; |
||
35 | // $this->secret = $settings[LearningLocker::SECRET] ?? null; |
||
36 | |||
37 | $this->url = Config::get('laralocker.learning-locker.api.url') ? Config::get('laralocker.learning-locker.api.url') : $url; |
||
38 | $this->key = Config::get('laralocker.learning-locker.api.key') ? Config::get('laralocker.learning-locker.api.key') : $key; |
||
39 | $this->secret = Config::get('laralocker.learning-locker.api.secret') ? Config::get('laralocker.learning-locker.api.secret') : $secret; |
||
40 | |||
41 | $this->headers = [ |
||
42 | 'Accept' => 'application/json', |
||
43 | 'Content-Type' => 'application/json' |
||
44 | ]; |
||
45 | |||
46 | } |
||
47 | |||
48 | protected function client() { |
||
49 | return new Client(); |
||
50 | } |
||
51 | |||
52 | protected function auth() { |
||
53 | return [$this->key, $this->secret]; |
||
54 | } |
||
55 | |||
56 | protected function headers() { |
||
57 | return $this->headers; |
||
58 | } |
||
59 | } |
||
60 |
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