| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function get(): SchemeCollectionInterface |
||
| 32 | { |
||
| 33 | foreach ($this->importAppConfig as $app) { |
||
| 34 | $injector = Injector::getInstance($app->appName, $app->context, $app->appDir); |
||
| 35 | $adapter = new AppAdapter($injector, $app->appName); |
||
| 36 | $this->schemeCollection |
||
| 37 | ->scheme('page')->host($app->host)->toAdapter($adapter) |
||
| 38 | ->scheme('app')->host($app->host)->toAdapter($adapter); |
||
| 39 | } |
||
| 40 | |||
| 41 | return $this->schemeCollection; |
||
|
|
|||
| 42 | } |
||
| 44 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: