Completed
Pull Request — master (#753)
by Amrouche
03:59 queued 26s
created
src/Util/RequestParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         $source = preg_replace_callback(
57 57
             '/(^|(?<=&))[^=[&]+/',
58
-            function ($key) {
58
+            function($key) {
59 59
                 return bin2hex(urldecode($key[0]));
60 60
             },
61 61
             $source
Please login to merge, or discard this patch.
src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.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
                     ->useAttributeAsKey('format')
41 41
                     ->beforeNormalization()
42 42
                         ->ifArray()
43
-                        ->then(function ($v) {
43
+                        ->then(function($v) {
44 44
                             foreach ($v as $format => $value) {
45 45
                                 if (isset($value['mime_types'])) {
46 46
                                     continue;
Please login to merge, or discard this patch.
src/Serializer/AbstractItemNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $this->contextBuilder = $contextBuilder;
57 57
         $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor();
58 58
 
59
-        $this->setCircularReferenceHandler(function ($object) {
59
+        $this->setCircularReferenceHandler(function($object) {
60 60
             return $this->iriConverter->getIriFromItem($object);
61 61
         });
62 62
     }
Please login to merge, or discard this patch.
src/Hal/Serializer/ItemNormalizer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
      * @param string|null $format
216 216
      * @param array       $context
217 217
      *
218
-     * @return bool|string
218
+     * @return string|false
219 219
      */
220 220
     private function getCacheKey(string $format = null, array $context)
221 221
     {
Please login to merge, or discard this patch.
src/Bridge/Doctrine/Orm/Util/QueryNameGenerator.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
  * Converts {@see \Symfony\Component\Validator\ConstraintViolationListInterface} the API Problem spec (RFC 7807).
19 19
  *
20 20
  * @see https://tools.ietf.org/html/rfc7807
21
-
22 21
  * @author Kévin Dunglas <[email protected]>
23 22
  */
24 23
 final class ConstraintViolationListNormalizer implements NormalizerInterface
Please login to merge, or discard this patch.
src/Bridge/Doctrine/Orm/Extension/EagerLoadingExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      * @param QueryBuilder $queryBuilder
68 68
      * @param string       $resourceClass
69 69
      */
70
-    private function joinRelations(QueryBuilder $queryBuilder, string $resourceClass, string $originAlias = 'o', string &$relationAlias = 'a')
70
+    private function joinRelations(QueryBuilder $queryBuilder, string $resourceClass, string $originAlias = 'o', string & $relationAlias = 'a')
71 71
     {
72 72
         $classMetadata = $queryBuilder->getEntityManager()->getClassMetadata($resourceClass);
73 73
         $j = 0;
Please login to merge, or discard this patch.
src/Metadata/Resource/Factory/XmlResourceMetadataFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      *
66 66
      * @param string $resourceClass
67 67
      *
68
-     * @return array
68
+     * @return null|string
69 69
      */
70 70
     private function getMetadata(string $resourceClass) : array
71 71
     {
Please login to merge, or discard this patch.
src/Bridge/Doctrine/Orm/Filter/SearchFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@
 block discarded – undo
286 286
      */
287 287
     protected function createWrapCase(bool $caseSensitive) : \Closure
288 288
     {
289
-        return function (string $expr) use ($caseSensitive) : string {
289
+        return function(string $expr) use ($caseSensitive) : string {
290 290
             if ($caseSensitive) {
291 291
                 return $expr;
292 292
             }
Please login to merge, or discard this patch.
src/Swagger/Serializer/DocumentationNormalizer.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     /**
158 158
      * @param string           $method
159 159
      * @param \ArrayObject     $pathOperation
160
-     * @param array            $mimeTypes
160
+     * @param string[]            $mimeTypes
161 161
      * @param bool             $collection
162 162
      * @param ResourceMetadata $resourceMetadata
163 163
      * @param string           $resourceClass
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      * @param \ArrayObject $pathOperation
194 194
      * @param string $resourceShortName
195 195
      *
196
-     * @return mixed
196
+     * @return \ArrayObject
197 197
      */
198 198
     private function getPathOperationByMethodDelete(\ArrayObject $pathOperation, string $resourceShortName) : \ArrayObject
199 199
     {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      *
145 145
      * @return string
146 146
      */
147
-    private function getDefinitionParameterSchema(\ArrayObject &$definitions, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $operationName) : string
147
+    private function getDefinitionParameterSchema(\ArrayObject & $definitions, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $operationName) : string
148 148
     {
149 149
         $parameterSerializerContext = $collection ? $resourceMetadata->getCollectionOperationAttribute($operationName, 'normalization_context', null, true) : $resourceMetadata->getItemOperationAttribute($operationName, 'normalization_context', null, true);
150 150
         $parameterDefinition = $this->getDefinitionSchema($resourceClass, $resourceMetadata, $parameterSerializerContext);
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      *
168 168
      * @return \ArrayObject|null
169 169
      */
170
-    public function getPathOperationByMethod(string $method, \ArrayObject $pathOperation, array $mimeTypes, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $resourceShortName, string $operationName, \ArrayObject &$definitions)
170
+    public function getPathOperationByMethod(string $method, \ArrayObject $pathOperation, array $mimeTypes, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $resourceShortName, string $operationName, \ArrayObject & $definitions)
171 171
     {
172 172
         if ('GET' === $method) {
173 173
             return $this->getPathOperationByMethodGet($pathOperation, $mimeTypes, $collection, $resourceMetadata, $resourceClass, $resourceShortName, $operationName, $definitions);
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      *
223 223
      * @return string
224 224
      */
225
-    private function getDefinitionResponseSchema(\ArrayObject &$definitions, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $operationName) : string
225
+    private function getDefinitionResponseSchema(\ArrayObject & $definitions, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $operationName) : string
226 226
     {
227 227
         $responseSerializerContext = $collection ? $resourceMetadata->getCollectionOperationAttribute($operationName, 'denormalization_context', null, true) : $resourceMetadata->getItemOperationAttribute($operationName, 'denormalization_context', null, true);
228 228
         $responseDefinition = $this->getDefinitionSchema($resourceClass, $resourceMetadata, $responseSerializerContext);
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      *
245 245
      * @return \ArrayObject
246 246
      */
247
-    private function getPathOperationByMethodPut(\ArrayObject $pathOperation, array $mimeTypes, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $resourceShortName, string $operationName, \ArrayObject &$definitions)
247
+    private function getPathOperationByMethodPut(\ArrayObject $pathOperation, array $mimeTypes, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $resourceShortName, string $operationName, \ArrayObject & $definitions)
248 248
     {
249 249
 
250 250
         $pathOperation['consumes'] ?? $pathOperation['consumes'] = $mimeTypes;
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      *
289 289
      * @return \ArrayObject
290 290
      */
291
-    private function getPathOperationByMethodPost(\ArrayObject $pathOperation, array $mimeTypes, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $resourceShortName, string $operationName, \ArrayObject &$definitions)
291
+    private function getPathOperationByMethodPost(\ArrayObject $pathOperation, array $mimeTypes, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $resourceShortName, string $operationName, \ArrayObject & $definitions)
292 292
     {
293 293
         $pathOperation['consumes'] ?? $pathOperation['consumes'] = $mimeTypes;
294 294
         $pathOperation['produces'] ?? $pathOperation['produces'] = $mimeTypes;
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
      *
324 324
      * @return \ArrayObject
325 325
      */
326
-    private function getPathOperationByMethodGet(\ArrayObject $pathOperation, array $mimeTypes, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $resourceShortName, string $operationName, \ArrayObject &$definitions)
326
+    private function getPathOperationByMethodGet(\ArrayObject $pathOperation, array $mimeTypes, bool $collection, ResourceMetadata $resourceMetadata, string $resourceClass, string $resourceShortName, string $operationName, \ArrayObject & $definitions)
327 327
     {
328 328
         $responseDefinitionKey = $this->getDefinitionResponseSchema($definitions, $collection, $resourceMetadata, $resourceClass, $operationName);
329 329
 
@@ -422,8 +422,7 @@  discard block
 block discarded – undo
422 422
         $valueType = $type->isCollection() ? $type->getCollectionValueType() : $type;
423 423
 
424 424
         switch ($valueType ? $valueType->getBuiltinType() : null) {
425
-            case Type::BUILTIN_TYPE_STRING:
426
-                $valueSchema['type'] = 'string';
425
+            case Type::BUILTIN_TYPE_STRING : $valueSchema['type'] = 'string';
427 426
                 break;
428 427
 
429 428
             case Type::BUILTIN_TYPE_INT:
Please login to merge, or discard this patch.