Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | #[Override] |
||
33 | public function get(): SchemeCollection |
||
34 | { |
||
35 | $schemeCollection = (new SchemeCollectionProvider($this->appName, $this->injector))->get(); |
||
36 | foreach ($this->importAppConfig as $importApp) { |
||
37 | $adapter = new AppAdapter($this->injector, $importApp->appName); |
||
38 | $schemeCollection |
||
39 | ->scheme('page')->host($importApp->host)->toAdapter($adapter) |
||
40 | ->scheme('app')->host($importApp->host)->toAdapter($adapter); |
||
41 | } |
||
42 | |||
43 | return $schemeCollection; |
||
|
|||
44 | } |
||
46 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: