Completed
Push — master ( 0396dc...7b8655 )
by John
08:32
created
src/Description/Document/Definition/RefResolver/RefResolver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     /**
60 60
      * Resolve all references
61 61
      *
62
-     * @return mixed The whole definition can be a reference to a scalar value
62
+     * @return \stdClass The whole definition can be a reference to a scalar value
63 63
      */
64 64
     public function resolve()
65 65
     {
Please login to merge, or discard this patch.
src/Request/RequestParameterAssembler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $body = null
49 49
     ): \stdClass {
50 50
     
51
-        $headerParamMap = array_combine(array_map(function ($key) {
51
+        $headerParamMap = array_combine(array_map(function($key) {
52 52
             return $this->getHeaderParameterName($key);
53 53
         }, array_keys($headers)), array_keys($headers));
54 54
 
@@ -128,18 +128,18 @@  discard block
 block discarded – undo
128 128
     private function getHeaderParameterName(string $headerName)
129 129
     {
130 130
         $replacements = [
131
-            function ($matches) {
131
+            function($matches) {
132 132
                 return strtolower($matches[2]);
133 133
             },
134
-            function ($matches) {
134
+            function($matches) {
135 135
                 return strtoupper($matches[2]);
136 136
             },
137
-            function ($matches) {
137
+            function($matches) {
138 138
                 return strtoupper($matches[1]);
139 139
             },
140 140
         ];
141 141
 
142
-        foreach (['/^(X-)?(.*)/i', '/(\-)([\S]{1})/', '/(^[\S]{1})/',] as $index => $pattern) {
142
+        foreach (['/^(X-)?(.*)/i', '/(\-)([\S]{1})/', '/(^[\S]{1})/', ] as $index => $pattern) {
143 143
             $headerName = preg_replace_callback($pattern, $replacements[$index], $headerName);
144 144
         }
145 145
 
Please login to merge, or discard this patch.
src/Description/Builder/RamlBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $paths   = [];
30 30
 
31 31
         /** @noinspection PhpUnusedParameterInspection */
32
-        $this->document->apply(function ($definition, $attributeName, $parent, $parentAttributeName) use (&$paths) {
32
+        $this->document->apply(function($definition, $attributeName, $parent, $parentAttributeName) use (&$paths) {
33 33
             if (substr((string)$attributeName, 0, 1) === '/') {
34 34
                 $pathName         = "{$parentAttributeName}{$attributeName}";
35 35
                 $paths[$pathName] = $this->createPath($pathName, $definition);
Please login to merge, or discard this patch.
src/Hydrator/Processors/Factory/FactoryQueue.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * PriorityQueue constructor.
23 23
      * @param Factory[] ...$factories
24
+     * @param ComplexTypeFactory $factories
24 25
      */
25 26
     public function __construct(Factory ...$factories)
26 27
     {
@@ -38,8 +39,8 @@  discard block
 block discarded – undo
38 39
     }
39 40
 
40 41
     /**
41
-     * @param mixed $value
42
-     * @param mixed $priority
42
+     * @param Factory $value
43
+     * @param integer $priority
43 44
      */
44 45
     public function insert($value, $priority)
45 46
     {
Please login to merge, or discard this patch.
src/Hydrator/Processors/Object/ObjectProcessor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
     /**
60 60
      * @param mixed $node
61
-     * @return mixed
61
+     * @return \stdClass
62 62
      */
63 63
     public function dehydrate($node)
64 64
     {
Please login to merge, or discard this patch.
src/Hydrator/Processors/Scalar/NumberProcessor.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
      * Cast a scalar value using the schema.
31 31
      *
32 32
      * @param mixed  $value
33
-     * @param Schema $schema
34 33
      *
35 34
      * @return float|int|string|\DateTimeInterface
36 35
      * @throws UnsupportedException
Please login to merge, or discard this patch.
src/Hydrator/Processors/ArrayProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             }
53 53
         }
54 54
 
55
-        return array_map(function ($value) {
55
+        return array_map(function($value) {
56 56
             return $this->itemsProcessor->hydrate($value);
57 57
         }, $value);
58 58
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function dehydrate($value)
65 65
     {
66
-        return array_map(function ($value) {
66
+        return array_map(function($value) {
67 67
             return $this->itemsProcessor->dehydrate($value);
68 68
         }, $value);
69 69
     }
Please login to merge, or discard this patch.
src/Hydrator/Processors/AnyProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         }
67 67
 
68 68
         if (is_array($value)) {
69
-            return array_map(function ($itemValue) {
69
+            return array_map(function($itemValue) {
70 70
                 return $this->hydrate($itemValue);
71 71
             }, $value);
72 72
         }
Please login to merge, or discard this patch.
src/Description/Builder/OpenApiBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         /** @var ObjectSchema[] $typeDefinitions */
48 48
         $typeDefinitions = [];
49 49
 
50
-        $description->accept(new ClosureVisitor($this, function ($schema) use (&$typeDefinitions) {
50
+        $description->accept(new ClosureVisitor($this, function($schema) use (&$typeDefinitions) {
51 51
             if ($schema instanceof ObjectSchema) {
52 52
                 if (isset($schema->getDefinition()->{'x-ref-id'})) {
53 53
                     $typeName = substr(
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             }
61 61
         }));
62 62
 
63
-        $this->document->apply(function ($composite, $attribute, $parent, $parentAttribute) use (&$typeDefinitions) {
63
+        $this->document->apply(function($composite, $attribute, $parent, $parentAttribute) use (&$typeDefinitions) {
64 64
             if ($parentAttribute === 'definitions') {
65 65
                 $schema = $this->schemaFactory->create($composite);
66 66
                 if ($schema instanceof ObjectSchema) {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $complexTypes[] = $type;
76 76
         }
77 77
 
78
-        $description->accept(new ClosureVisitor($description, function () use (&$complexTypes) {
78
+        $description->accept(new ClosureVisitor($description, function() use (&$complexTypes) {
79 79
             /** @noinspection PhpUndefinedFieldInspection */
80 80
             $this->complexTypes = $complexTypes;
81 81
         }));
Please login to merge, or discard this patch.