Completed
Branch develop (5a7a06)
by Neomerx
04:07
created
src/Http/Query/BaseQueryParserTrait.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param array  $parameters
33 33
      * @param string $errorTitle
34 34
      *
35
-     * @return iterable
35
+     * @return \Generator
36 36
      */
37 37
     protected function getIncludes(array $parameters, string $errorTitle): iterable
38 38
     {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * @param array  $parameters
50 50
      * @param string $errorTitle
51 51
      *
52
-     * @return iterable
52
+     * @return \Generator
53 53
      */
54 54
     protected function getFields(array $parameters, string $errorTitle): iterable
55 55
     {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param array  $parameters
70 70
      * @param string $errorTitle
71 71
      *
72
-     * @return iterable
72
+     * @return \Generator
73 73
      */
74 74
     protected function getSorts(array $parameters, string $errorTitle): iterable
75 75
     {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @param array  $parameters
102 102
      * @param string $errorTitle
103 103
      *
104
-     * @return iterable
104
+     * @return \Generator
105 105
      */
106 106
     protected function getProfileUrls(array $parameters, string $errorTitle): iterable
107 107
     {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * @param string|mixed $shouldBeString
122 122
      * @param string       $errorTitle
123 123
      *
124
-     * @return iterable
124
+     * @return \Generator
125 125
      */
126 126
     private function splitCommaSeparatedStringAndCheckNoEmpties(
127 127
         string $paramName,
@@ -133,10 +133,10 @@  discard block
 block discarded – undo
133 133
 
134 134
     /**
135 135
      * @param string       $paramName
136
-     * @param string|mixed $shouldBeString
136
+     * @param string $shouldBeString
137 137
      * @param string       $errorTitle
138 138
      *
139
-     * @return iterable
139
+     * @return \Generator
140 140
      */
141 141
     private function splitSpaceSeparatedStringAndCheckNoEmpties(
142 142
         string $paramName,
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      * @param string       $separator
153 153
      * @param string       $errorTitle
154 154
      *
155
-     * @return iterable
155
+     * @return \Generator
156 156
      *
157 157
      * @SuppressWarnings(PHPMD.IfStatementAssignment)
158 158
      */
Please login to merge, or discard this patch.
src/Parser/IdentifierAndResource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
         $currentPath    = $this->position->getPath();
187 187
         $nextLevel      = $this->position->getLevel() + 1;
188
-        $nextPathPrefix = empty($currentPath) === true ? '' : $currentPath . PositionInterface::PATH_SEPARATOR;
188
+        $nextPathPrefix = empty($currentPath) === true ? '' : $currentPath.PositionInterface::PATH_SEPARATOR;
189 189
         $this->getContext()->setPosition($this->getPosition());
190 190
         foreach ($this->schema->getRelationships($this->data, $this->getContext()) as $name => $description) {
191 191
             \assert($this->assertRelationshipNameAndDescription($name, $description) === true);
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
             \assert(
211 211
                 $hasData || $hasMeta || $hasLinks,
212
-                "Relationship `$name` for type `" . $this->getType() .
212
+                "Relationship `$name` for type `".$this->getType().
213 213
                 '` MUST contain at least one of the following: links, data or meta.'
214 214
             );
215 215
 
@@ -298,11 +298,11 @@  discard block
 block discarded – undo
298 298
     {
299 299
         \assert(
300 300
             \is_string($name) === true && empty($name) === false,
301
-            "Relationship names for type `" . $this->getType() . '` should be non-empty strings.'
301
+            "Relationship names for type `".$this->getType().'` should be non-empty strings.'
302 302
         );
303 303
         \assert(
304 304
             \is_array($description) === true && empty($description) === false,
305
-            "Relationship `$name` for type `" . $this->getType() . '` should be a non-empty array.'
305
+            "Relationship `$name` for type `".$this->getType().'` should be a non-empty array.'
306 306
         );
307 307
 
308 308
         return true;
Please login to merge, or discard this patch.