| @@ -15,7 +15,7 @@ discard block | ||
| 15 | 15 | |
| 16 | 16 | protected function processDependenciesFromAnnotations(ContainerInterface $container, $serviceName) | 
| 17 | 17 |      { | 
| 18 | -        if (! class_exists($serviceName)) { | |
| 18 | +        if (!class_exists($serviceName)) { | |
| 19 | 19 | throw new RuntimeException(sprintf( | 
| 20 | 20 | 'Annotated factories can only be used with services that are identified by their FQCN. ' . | 
| 21 | 21 | 'Provided "%s" service name is not a valid class.', | 
| @@ -26,13 +26,13 @@ discard block | ||
| 26 | 26 | $annotationReader = $this->createAnnotationReader($container); | 
| 27 | 27 | $refClass = new \ReflectionClass($serviceName); | 
| 28 | 28 | $constructor = $refClass->getConstructor(); | 
| 29 | -        if (! isset($constructor)) { | |
| 29 | +        if (!isset($constructor)) { | |
| 30 | 30 | return new $serviceName(); | 
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | 33 | /** @var Inject $inject */ | 
| 34 | 34 | $inject = $annotationReader->getMethodAnnotation($constructor, Inject::class); | 
| 35 | -        if (! isset($inject)) { | |
| 35 | +        if (!isset($inject)) { | |
| 36 | 36 | throw new RuntimeException(sprintf( | 
| 37 | 37 | 'You need to use the "%s" annotation in your services constructors so that he "%s" factory can ' . | 
| 38 | 38 | 'create them.', | 
| @@ -43,7 +43,7 @@ discard block | ||
| 43 | 43 | |
| 44 | 44 | $services = []; | 
| 45 | 45 |          foreach ($inject->getServices() as $serviceKey) { | 
| 46 | -            if (! $container->has($serviceKey)) { | |
| 46 | +            if (!$container->has($serviceKey)) { | |
| 47 | 47 | throw new RuntimeException(sprintf( | 
| 48 | 48 | 'Defined injectable service "%s" could not be found in container.', | 
| 49 | 49 | $serviceKey | 
| @@ -60,10 +60,10 @@ discard block | ||
| 60 | 60 | |
| 61 | 61 | private function createAnnotationReader(ContainerInterface $container) | 
| 62 | 62 |      { | 
| 63 | -        AnnotationRegistry::registerLoader(function ($class) { | |
| 63 | +        AnnotationRegistry::registerLoader(function($class) { | |
| 64 | 64 |              $file = str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php'; | 
| 65 | 65 | $file = realpath(__DIR__ . '/../Annotation/' . basename($file)); | 
| 66 | -            if (! $file) { | |
| 66 | +            if (!$file) { | |
| 67 | 67 | return false; | 
| 68 | 68 | } | 
| 69 | 69 | |
| @@ -71,7 +71,7 @@ discard block | ||
| 71 | 71 | return true; | 
| 72 | 72 | }); | 
| 73 | 73 | |
| 74 | -        if (! $container->has(self::CACHE_SERVICE)) { | |
| 74 | +        if (!$container->has(self::CACHE_SERVICE)) { | |
| 75 | 75 | return new AnnotationReader(); | 
| 76 | 76 |          } else { | 
| 77 | 77 | /** @var Cache $cache */ |