Completed
Push — master ( 99ca87...95904e )
by Andrey
23:44
created
src/MetadataDriver/FileLocatorAbstractFactory.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param                         $name
29 29
      * @param                         $requestedName
30 30
      *
31
-     * @return bool|void
31
+     * @return boolean
32 32
      */
33 33
     public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
34 34
     {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param                         $name
43 43
      * @param                         $requestedName
44 44
      *
45
-     * @return AdapterInterface
45
+     * @return FileLocatorInterface
46 46
      * @throws \Nnx\JmsSerializerModule\MetadataDriver\Exception\RuntimeException
47 47
      * @throws \Nnx\JmsSerializerModule\Options\Exception\InvalidArgumentException
48 48
      * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         $name = $fileLocatorConfig->getName();
65 65
         $options = $fileLocatorConfig->getOptions();
66 66
 
67
-        $fileLocator =  $serviceLocator->get(
67
+        $fileLocator = $serviceLocator->get(
68 68
             $name,
69 69
             $options
70 70
         );
Please login to merge, or discard this patch.
src/MetadataDriver/MetadataDriverAbstractFactory.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param                         $name
29 29
      * @param                         $requestedName
30 30
      *
31
-     * @return bool|void
31
+     * @return boolean
32 32
      */
33 33
     public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
34 34
     {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param                         $name
43 43
      * @param                         $requestedName
44 44
      *
45
-     * @return AdapterInterface
45
+     * @return DriverInterface
46 46
      * @throws \Nnx\JmsSerializerModule\MetadataDriver\Exception\RuntimeException
47 47
      * @throws \Nnx\JmsSerializerModule\Options\Exception\InvalidArgumentException
48 48
      * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         $name = $metadataDriverConfig->getName();
65 65
         $options = $metadataDriverConfig->getOptions();
66 66
 
67
-        $metadataDriver =  $serviceLocator->get(
67
+        $metadataDriver = $serviceLocator->get(
68 68
             $name,
69 69
             $options
70 70
         );
Please login to merge, or discard this patch.
src/Serializer/JmsSerializerAbstractFactory.php 1 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/Visitor/VisitorsAbstractFactory.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @param                         $name
28 28
      * @param                         $requestedName
29 29
      *
30
-     * @return bool|void
30
+     * @return boolean
31 31
      */
32 32
     public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
33 33
     {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @param                         $name
42 42
      * @param                         $requestedName
43 43
      *
44
-     * @return ObjectConstructorInterface
44
+     * @return VisitorInterface
45 45
      * @throws \Nnx\JmsSerializerModule\Visitor\Exception\RuntimeException
46 46
      * @throws \Nnx\JmsSerializerModule\ObjectConstructor\Exception\RuntimeException
47 47
      * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         $name = $visitorConfig->getName();
65 65
         $options = $visitorConfig->getOptions();
66 66
 
67
-        $visitor =  $serviceLocator->get(
67
+        $visitor = $serviceLocator->get(
68 68
             $name,
69 69
             $options
70 70
         );
Please login to merge, or discard this patch.
src/Visitor/VisitorsMapAbstractFactory.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param                         $name
30 30
      * @param                         $requestedName
31 31
      *
32
-     * @return bool|void
32
+     * @return boolean
33 33
      */
34 34
     public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
35 35
     {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param                         $name
44 44
      * @param                         $requestedName
45 45
      *
46
-     * @return ObjectConstructorInterface
46
+     * @return Map
47 47
      * @throws \Nnx\JmsSerializerModule\Visitor\Exception\RuntimeException
48 48
      * @throws \Nnx\JmsSerializerModule\ObjectConstructor\Exception\RuntimeException
49 49
      * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         $moduleOptions = $moduleOptionsManager->get(ModuleOptions::class);
72 72
 
73 73
 
74
-        $list = [];
74
+        $list = [ ];
75 75
 
76 76
         if ($isSerializationVisitors) {
77 77
             $list = $moduleOptions->getSerializationVisitor($name);
Please login to merge, or discard this patch.
src/ObjectConstructor/ObjectConstructorAbstractFactory.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 = $objectConstructorConfig->getName();
64 64
         $options = $objectConstructorConfig->getOptions();
65 65
 
66
-        $objectConstructor =  $serviceLocator->get(
66
+        $objectConstructor = $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.
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.