Completed
Push — develop ( 390dfb...575cda )
by Filipe
23s
created
src/DefinitionLoader/AutowireDefinitionLoader.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
     {
56 56
         try {
57 57
             $this->directoryWatcher = new Directory($path);
58
-        } catch (DirectoryNotFound|DirectoryNotAccecible) {
58
+        } catch (DirectoryNotFound | DirectoryNotAccecible) {
59 59
             throw new InvalidDefinitionsPathException(
60
-                'Provided autowire definitions path is not valid or is not found. ' .
61
-                'Could not create container. Please check ' . $path
60
+                'Provided autowire definitions path is not valid or is not found. '.
61
+                'Could not create container. Please check '.$path
62 62
             );
63 63
         }
64 64
 
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
             $directory = new RecursiveDirectoryIterator($path);
96 96
         } catch (Exception) {
97 97
             throw new InvalidDefinitionsPathException(
98
-                'Provided autowire definitions path is not valid or is not found. ' .
99
-                'Could not create container. Please check ' . $path
98
+                'Provided autowire definitions path is not valid or is not found. '.
99
+                'Could not create container. Please check '.$path
100 100
             );
101 101
         }
102 102
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
     private function saveImplementations(): void
149 149
     {
150
-        $file = sys_get_temp_dir() . self::TMP_FILE_NAME;
150
+        $file = sys_get_temp_dir().self::TMP_FILE_NAME;
151 151
         if (is_file($file)) {
152 152
             unlink($file);
153 153
         }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
     private function loadImplementations(): bool
162 162
     {
163
-        $file = sys_get_temp_dir() . self::TMP_FILE_NAME;
163
+        $file = sys_get_temp_dir().self::TMP_FILE_NAME;
164 164
         if (!file_exists($file)) {
165 165
             return false;
166 166
         }
@@ -191,15 +191,15 @@  discard block
 block discarded – undo
191 191
 
192 192
     private function createCallback(string $className): callable
193 193
     {
194
-        return function (Container $container) use ($className) {
194
+        return function(Container $container) use ($className) {
195 195
             return $container->make($className);
196 196
         };
197 197
     }
198 198
 
199 199
     private function createAmbiguousCallback(string $interface): callable
200 200
     {
201
-        return function () use ($interface) {
202
-            throw new AmbiguousImplementationException("Ambiguous implementation for '$interface'. " .
201
+        return function() use ($interface) {
202
+            throw new AmbiguousImplementationException("Ambiguous implementation for '$interface'. ".
203 203
                 "There are more then 1 implementations you need to provide a service definition for this interface.");
204 204
         };
205 205
     }
Please login to merge, or discard this patch.