Total Complexity | 7 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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() { |
||
50 | } |
||
51 | |||
52 | protected function auth() { |
||
53 | return [$this->key, $this->secret]; |
||
54 | } |
||
55 | |||
56 | protected function 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