Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
22 | public function loadRoutes() |
||
|
|||
23 | { |
||
24 | $configDirectories = [__DIR__.'/../../Resources/config']; |
||
25 | $fileLocator = new FileLocator($configDirectories); |
||
26 | |||
27 | if ($this->enableFosLogin) { |
||
28 | $loaderResolver = new LoaderResolver([new XmlFileLoader($fileLocator)]); |
||
29 | $delegatingLoader = new DelegatingLoader($loaderResolver); |
||
30 | $collection = $delegatingLoader->load('routing_fos.xml'); |
||
31 | } else { |
||
32 | $collection = new RouteCollection(); |
||
33 | } |
||
34 | |||
35 | return $collection; |
||
36 | } |
||
37 | } |
||
38 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.