@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public function getDefinition(string $class): Definition |
111 | 111 | { |
112 | - if (! isset($this->definitionCache[$class])) { |
|
112 | + if (!isset($this->definitionCache[$class])) { |
|
113 | 113 | $this->definitionCache[$class] = $this->createDefinition($class); |
114 | 114 | } |
115 | 115 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | protected function createDefinition(string $class): Definition |
126 | 126 | { |
127 | - $path = $this->basePath . DIRECTORY_SEPARATOR . str_replace('\\', '.', $class) . '.yml'; |
|
127 | + $path = $this->basePath.DIRECTORY_SEPARATOR.str_replace('\\', '.', $class).'.yml'; |
|
128 | 128 | $config = $this->readConfig($path); |
129 | 129 | |
130 | 130 | $definition = new Definition($class); |
@@ -149,8 +149,8 @@ discard block |
||
149 | 149 | */ |
150 | 150 | protected function readConfig(string $path): array |
151 | 151 | { |
152 | - if (! is_readable($path)) { |
|
153 | - throw new DefinitionProviderException('Unable to read definition by path: ' . $path); |
|
152 | + if (!is_readable($path)) { |
|
153 | + throw new DefinitionProviderException('Unable to read definition by path: '.$path); |
|
154 | 154 | } |
155 | 155 | |
156 | 156 | $content = file_get_contents($path); |