@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function factory(): FactoryInterface |
| 53 | 53 | { |
| 54 | - if($this->factory === null) { |
|
| 54 | + if ($this->factory === null) { |
|
| 55 | 55 | try { |
| 56 | 56 | $className = $this->searchInNamespaces('Factory', FactoryInterface::class); |
| 57 | 57 | } catch (NotFoundException $e) { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function facade(): FacadeInterface |
| 71 | 71 | { |
| 72 | - if($this->facade === null) { |
|
| 72 | + if ($this->facade === null) { |
|
| 73 | 73 | try { |
| 74 | 74 | $className = $this->searchInNamespaces('Facade', FacadeInterface::class); |
| 75 | 75 | } catch (NotFoundException $e) { |
@@ -90,10 +90,10 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | private function searchInNamespaces(string $expectedClassBaseName, string $expectedInterface) |
| 92 | 92 | { |
| 93 | - foreach($this->searchableNamespaces as $namespace){ |
|
| 93 | + foreach ($this->searchableNamespaces as $namespace) { |
|
| 94 | 94 | $expectedClassName = $namespace . sprintf(self::$classNameSchema, $this->locateName, $expectedClassBaseName); |
| 95 | - if(class_exists($expectedClassName) === true |
|
| 96 | - && in_array($expectedInterface, class_implements($expectedClassName))){ |
|
| 95 | + if (class_exists($expectedClassName) === true |
|
| 96 | + && in_array($expectedInterface, class_implements($expectedClassName))) { |
|
| 97 | 97 | return $expectedClassName; |
| 98 | 98 | } |
| 99 | 99 | } |