Completed
Push — master ( de5bbc...cd26e6 )
by Andrey
03:25
created
src/MetadataDriver/FileLocatorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             $errMsg = 'Directories for FileLocator is not specified';
36 36
             throw new Exception\RuntimeException($errMsg);
37 37
         }
38
-        $directories = $creationOptions['directories'];
38
+        $directories = $creationOptions[ 'directories' ];
39 39
 
40 40
         if (!is_array($directories)) {
41 41
             $errMsg = 'Directories for FileLocator is not array';
Please login to merge, or discard this patch.
src/MetadataDriver/LazyLoadingDriverFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             throw new Exception\RuntimeException($errMsg);
36 36
         }
37 37
 
38
-        $realDriverId = $creationOptions['realDriverId'];
38
+        $realDriverId = $creationOptions[ 'realDriverId' ];
39 39
 
40 40
         if (!$serviceLocator instanceof ContainerInterface) {
41 41
             $errMsg = sprintf('Service  locator not implement %s', ContainerInterface::class);
Please login to merge, or discard this patch.
src/MetadataDriver/AnnotationDriverFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             throw new Exception\RuntimeException($errMsg);
39 39
         }
40 40
 
41
-        $reader = $serviceLocator->get($creationOptions['reader']);
41
+        $reader = $serviceLocator->get($creationOptions[ 'reader' ]);
42 42
 
43 43
         if (!$reader instanceof Reader) {
44 44
             $errMsg = sprintf('Annotation reader not implement %s', Reader::class);
Please login to merge, or discard this patch.
src/MetadataDriver/FileDriverAbstractFactory.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             throw new Exception\RuntimeException($errMsg);
56 56
         }
57 57
 
58
-        $fileLocatorName = $creationOptions['fileLocator'];
58
+        $fileLocatorName = $creationOptions[ 'fileLocator' ];
59 59
         $fileLocator = $serviceLocator->get($fileLocatorName);
60 60
 
61 61
         $r = new ReflectionClass($requestedName);
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * @param                         $name
27 27
      * @param                         $requestedName
28 28
      *
29
-     * @return bool|void
29
+     * @return boolean
30 30
      */
31 31
     public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
32 32
     {
Please login to merge, or discard this patch.
src/MetadataDriver/DriverChainFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $creationOptions = $this->getCreationOptions();
34 34
 
35
-        $targetDrivers = [];
35
+        $targetDrivers = [ ];
36 36
         if (array_key_exists('drivers', $creationOptions)) {
37
-            $drivers = $creationOptions['drivers'];
37
+            $drivers = $creationOptions[ 'drivers' ];
38 38
 
39 39
             if (!is_array($drivers)) {
40 40
                 $errMsg = 'Drivers config is not array';
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                     throw new Exception\RuntimeException($errMsg);
57 57
                 }
58 58
 
59
-                $targetDrivers[] = $targetDriver;
59
+                $targetDrivers[ ] = $targetDriver;
60 60
             }
61 61
         }
62 62
 
Please login to merge, or discard this patch.
src/NamingStrategy/NamingStrategyAbstractFactory.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $name = $strategyConfig->getName();
63 63
         $options = $strategyConfig->getOptions();
64 64
 
65
-        $strategy =  $serviceLocator->get(
65
+        $strategy = $serviceLocator->get(
66 66
             $name,
67 67
             $options
68 68
         );
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * @param                         $name
27 27
      * @param                         $requestedName
28 28
      *
29
-     * @return bool|void
29
+     * @return boolean
30 30
      */
31 31
     public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
32 32
     {
Please login to merge, or discard this patch.
src/NamingStrategy/CamelCaseNamingStrategyFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@
 block discarded – undo
33 33
 
34 34
         $separator = '_';
35 35
         if (array_key_exists('separator', $creationOptions)) {
36
-            $separator = (string)$creationOptions['separator'];
36
+            $separator = (string) $creationOptions[ 'separator' ];
37 37
         }
38 38
 
39 39
         $lowerCase = true;
40 40
         if (array_key_exists('lowerCase', $creationOptions)) {
41
-            $lowerCase = (boolean)$creationOptions['lowerCase'];
41
+            $lowerCase = (boolean) $creationOptions[ 'lowerCase' ];
42 42
         }
43 43
 
44 44
         return new CamelCaseNamingStrategy($separator, $lowerCase);
Please login to merge, or discard this patch.
src/NamingStrategy/CacheNamingStrategyFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             $errMsg = 'Delegate naming strategy not specified';
37 37
             throw new Exception\RuntimeException($errMsg);
38 38
         }
39
-        $delegateName = $creationOptions['delegate'];
39
+        $delegateName = $creationOptions[ 'delegate' ];
40 40
 
41 41
         /** @var PropertyNamingStrategyInterface $delegate */
42 42
         $delegate = $serviceLocator->get($delegateName);
Please login to merge, or discard this patch.
src/EventDispatcher/EventDispatcherAbstractFactory.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $name = $eventDispatcherConfig->getName();
64 64
         $options = $eventDispatcherConfig->getOptions();
65 65
 
66
-        $eventDispatcher =  $serviceLocator->get(
66
+        $eventDispatcher = $serviceLocator->get(
67 67
             $name,
68 68
             $options
69 69
         );
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * @param                         $name
27 27
      * @param                         $requestedName
28 28
      *
29
-     * @return bool|void
29
+     * @return boolean
30 30
      */
31 31
     public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
32 32
     {
Please login to merge, or discard this patch.