Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | #[Override] |
||
29 | public function get(): SchemeCollection |
||
30 | { |
||
31 | $schemeCollection = new SchemeCollection(); |
||
32 | $pageAdapter = new AppAdapter($this->injector, $this->appName); |
||
33 | $appAdapter = new AppAdapter($this->injector, $this->appName); |
||
34 | $schemeCollection->scheme('page')->host('self')->toAdapter($pageAdapter); |
||
35 | $schemeCollection->scheme('app')->host('self')->toAdapter($appAdapter); |
||
36 | $schemeCollection->scheme('http')->host('self')->toAdapter(new HttpAdapter($this->injector)); |
||
37 | |||
38 | return $schemeCollection; |
||
|
|||
39 | } |
||
41 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: