Completed
Push — master ( 111bcd...99ca87 )
by Andrey
26:30
created
src/ObjectConstructor/DoctrineObjectConstructorFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             $errMsg = 'Manager registry service name not specified';
40 40
             throw new Exception\RuntimeException($errMsg);
41 41
         }
42
-        $managerRegistry = $serviceLocator->get($creationOptions['managerRegistry']);
42
+        $managerRegistry = $serviceLocator->get($creationOptions[ 'managerRegistry' ]);
43 43
 
44 44
         if (!$managerRegistry instanceof ManagerRegistry) {
45 45
             $errMsg = sprintf(
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             $errMsg = 'Fallback constructor name not specified';
55 55
             throw new Exception\RuntimeException($errMsg);
56 56
         }
57
-        $fallbackConstructor = $serviceLocator->get($creationOptions['fallbackConstructor']);
57
+        $fallbackConstructor = $serviceLocator->get($creationOptions[ 'fallbackConstructor' ]);
58 58
 
59 59
         if (!$fallbackConstructor instanceof ObjectConstructorInterface) {
60 60
             $errMsg = sprintf(
Please login to merge, or discard this patch.
src/Visitor/NamingStrategyTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             throw new Exception\RuntimeException($errMsg);
41 41
         }
42 42
 
43
-        $namingStrategy = $creationOptions['namingStrategy'];
43
+        $namingStrategy = $creationOptions[ 'namingStrategy' ];
44 44
 
45 45
         return $serviceLocator->get($namingStrategy);
46 46
     }
Please login to merge, or discard this patch.
src/Visitor/JsonSerializationVisitorFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@
 block discarded – undo
36 36
 
37 37
         $creationOptions = $this->getCreationOptions();
38 38
         if (array_key_exists('jsonOptions', $creationOptions)) {
39
-            $jsonOptions = $creationOptions['jsonOptions'];
39
+            $jsonOptions = $creationOptions[ 'jsonOptions' ];
40 40
             if (!is_array($jsonOptions)) {
41 41
                 $errMsg = 'Json options is not array';
42 42
                 throw new Exception\RuntimeException($errMsg);
43 43
             }
44 44
             if (array_key_exists('options', $jsonOptions)) {
45
-                $visitor->setOptions($jsonOptions['options']);
45
+                $visitor->setOptions($jsonOptions[ 'options' ]);
46 46
             }
47 47
         }
48 48
 
Please login to merge, or discard this patch.
src/Visitor/XmlDeserializationVisitorFactory.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
         $xmlDeserializationVisitor = new XmlDeserializationVisitor($namingStrategy);
36 36
 
37 37
         if (array_key_exists('doctypeWhitelist', $creationOptions)) {
38
-            $doctypeWhitelist = $creationOptions['doctypeWhitelist'];
38
+            $doctypeWhitelist = $creationOptions[ 'doctypeWhitelist' ];
39 39
             if (!is_array($doctypeWhitelist)) {
40 40
                 $errMsg = 'Doctype whitelist not array';
41 41
                 throw new Exception\RuntimeException($errMsg);
Please login to merge, or discard this patch.
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/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/SerializedNameAnnotationStrategyFactory.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.