Completed
Push — master ( afc44c...0950d8 )
by Alejandro
01:30
created
src/Factory/AbstractAnnotatedFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
 
25 25
     protected function processDependenciesFromAnnotations(ServiceLocatorInterface $container, $serviceName)
26 26
     {
27
-        if (! class_exists($serviceName)) {
27
+        if (!class_exists($serviceName)) {
28 28
             throw new Exception\RuntimeException(sprintf(
29
-                'Annotated factories can only be used with services that are identified by their FQCN. ' .
29
+                'Annotated factories can only be used with services that are identified by their FQCN. '.
30 30
                 'Provided "%s" service name is not a valid class.',
31 31
                 $serviceName
32 32
             ));
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
 
57 57
             // Even when dots are found, try to find a service with the full name
58 58
             // If it is not found, then assume dots are used to get part of an array service
59
-            if (count($parts) > 1 && ! $container->has($serviceKey)) {
59
+            if (count($parts) > 1 && !$container->has($serviceKey)) {
60 60
                 $serviceKey = array_shift($parts);
61 61
             } else {
62 62
                 $parts = [];
63 63
             }
64 64
 
65
-            if (! $container->has($serviceKey)) {
65
+            if (!$container->has($serviceKey)) {
66 66
                 throw new Exception\RuntimeException(sprintf(
67 67
                     'Defined injectable service "%s" could not be found in container.',
68 68
                     $serviceKey
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
         AnnotationRegistry::registerLoader('class_exists');
93 93
 
94
-        if (! $container->has(self::CACHE_SERVICE)) {
94
+        if (!$container->has(self::CACHE_SERVICE)) {
95 95
             return self::$annotationReader = new AnnotationReader();
96 96
         } else {
97 97
             /** @var Cache $cache */
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $key = array_shift($keys);
112 112
 
113 113
         // When one of the provided keys is not found, thorw an exception
114
-        if (! isset($array[$key])) {
114
+        if (!isset($array[$key])) {
115 115
             throw new InvalidArgumentException(sprintf(
116 116
                 'The key "%s" provided in the dotted notation could not be found in the array service',
117 117
                 $key
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         }
120 120
 
121 121
         $value = $array[$key];
122
-        if (! empty($keys) && (is_array($value) || $value instanceof \ArrayAccess)) {
122
+        if (!empty($keys) && (is_array($value) || $value instanceof \ArrayAccess)) {
123 123
             $value = $this->readKeysFromArray($keys, $value);
124 124
         }
125 125
 
Please login to merge, or discard this patch.