Completed
Push — master ( 9d3813...8b213d )
by Kévin
11s
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/Swagger/Serializer/DocumentationNormalizer.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
     /**
171 171
      * @param \ArrayObject     $pathOperation
172
-     * @param array            $mimeTypes
172
+     * @param string[]            $mimeTypes
173 173
      * @param bool             $collection
174 174
      * @param ResourceMetadata $resourceMetadata
175 175
      * @param string           $resourceClass
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 
220 220
     /**
221 221
      * @param \ArrayObject     $pathOperation
222
-     * @param array            $mimeTypes
222
+     * @param string[]            $mimeTypes
223 223
      * @param bool             $collection
224 224
      * @param ResourceMetadata $resourceMetadata
225 225
      * @param string           $resourceClass
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
     /**
256 256
      * @param \ArrayObject     $pathOperation
257
-     * @param array            $mimeTypes
257
+     * @param string[]            $mimeTypes
258 258
      * @param bool             $collection
259 259
      * @param ResourceMetadata $resourceMetadata
260 260
      * @param string           $resourceClass
Please login to merge, or discard this patch.
src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                     ->useAttributeAsKey('exception_class')
105 105
                     ->beforeNormalization()
106 106
                         ->ifArray()
107
-                        ->then(function (array $exceptionToStatus) {
107
+                        ->then(function(array $exceptionToStatus) {
108 108
                             foreach ($exceptionToStatus as &$httpStatusCode) {
109 109
                                 if (is_int($httpStatusCode)) {
110 110
                                     continue;
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     ->prototype('integer')->end()
122 122
                     ->validate()
123 123
                         ->ifArray()
124
-                        ->then(function (array $exceptionToStatus) {
124
+                        ->then(function(array $exceptionToStatus) {
125 125
                             foreach ($exceptionToStatus as $httpStatusCode) {
126 126
                                 if ($httpStatusCode < 100 || $httpStatusCode >= 600) {
127 127
                                     throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode));
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                     ->useAttributeAsKey('format')
154 154
                     ->beforeNormalization()
155 155
                         ->ifArray()
156
-                        ->then(function ($v) {
156
+                        ->then(function($v) {
157 157
                             foreach ($v as $format => $value) {
158 158
                                 if (isset($value['mime_types'])) {
159 159
                                     continue;
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
@@ -323,7 +323,7 @@
 block discarded – undo
323 323
      */
324 324
     protected function createWrapCase(bool $caseSensitive): \Closure
325 325
     {
326
-        return function (string $expr) use ($caseSensitive): string {
326
+        return function(string $expr) use ($caseSensitive): string {
327 327
             if ($caseSensitive) {
328 328
                 return $expr;
329 329
             }
Please login to merge, or discard this patch.
src/Bridge/Doctrine/Orm/Filter/OrderFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     public function __construct(ManagerRegistry $managerRegistry, RequestStack $requestStack, string $orderParameterName, LoggerInterface $logger = null, array $properties = null)
45 45
     {
46 46
         if (null !== $properties) {
47
-            $properties = array_map(function ($propertyOptions) {
47
+            $properties = array_map(function($propertyOptions) {
48 48
                 // shorthand for default direction
49 49
                 if (is_string($propertyOptions)) {
50 50
                     $propertyOptions = [
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
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      *
98 98
      * @throws RuntimeException when the max number of joins has been reached
99 99
      */
100
-    private function joinRelations(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, bool $forceEager, string $parentAlias, array $propertyMetadataOptions = [], bool $wasLeftJoin = false, int &$joinCount = 0)
100
+    private function joinRelations(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, bool $forceEager, string $parentAlias, array $propertyMetadataOptions = [], bool $wasLeftJoin = false, int & $joinCount = 0)
101 101
     {
102 102
         if ($joinCount > $this->maxJoins) {
103 103
             throw new RuntimeException('The total number of joined relations has exceeded the specified maximum. Raise the limit if necessary.');
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
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
      * @param string|null $format
202 202
      * @param array       $context
203 203
      *
204
-     * @return bool|string
204
+     * @return string|false
205 205
      */
206 206
     private function getHalCacheKey(string $format = null, array $context)
207 207
     {
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
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $this->resourceClassResolver = $resourceClassResolver;
52 52
         $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor();
53 53
 
54
-        $this->setCircularReferenceHandler(function ($object) {
54
+        $this->setCircularReferenceHandler(function($object) {
55 55
             return $this->iriConverter->getIriFromItem($object);
56 56
         });
57 57
     }
Please login to merge, or discard this patch.