@@ -31,8 +31,8 @@ |
||
| 31 | 31 | public function create(string $moduleName, Locator $locator) : LocatorProxyInterface |
| 32 | 32 | { |
| 33 | 33 | $proxy = new LocatorProxy($this->searchableNamespaces, $moduleName, $locator); |
| 34 | - if(get_class($proxy->factory()) === EmptyFactory::class |
|
| 35 | - && get_class($proxy->facade()) === EmptyFacade::class){ |
|
| 34 | + if (get_class($proxy->factory()) === EmptyFactory::class |
|
| 35 | + && get_class($proxy->facade()) === EmptyFacade::class) { |
|
| 36 | 36 | throw new NotFoundException(sprintf('Module %s was not found. You need at least a factory or a facade', $moduleName)); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function locate(string $moduleName) : LocatorProxyInterface |
| 36 | 36 | { |
| 37 | - if(!isset($this->proxies[$moduleName])){ |
|
| 37 | + if (!isset($this->proxies[$moduleName])) { |
|
| 38 | 38 | $this->proxies[$moduleName] = $this->factory->create($moduleName, $this); |
| 39 | 39 | } |
| 40 | 40 | |