Completed
Pull Request — master (#118)
by
unknown
02:08
created
src/Test/ApiTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $this->assertSame(
165 165
                 JSON_ERROR_NONE,
166 166
                 json_last_error(),
167
-                "Not valid JSON: " . json_last_error_msg() . "(" . var_export($content, true) . ")"
167
+                "Not valid JSON: ".json_last_error_msg()."(".var_export($content, true).")"
168 168
             );
169 169
         }
170 170
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     {
200 200
         $uri = $path;
201 201
         if (count($params)) {
202
-            $uri = $path . '?' . http_build_query($params);
202
+            $uri = $path.'?'.http_build_query($params);
203 203
         }
204 204
 
205 205
         return $uri;
Please login to merge, or discard this patch.
tests/unit/EventListener/Request/RequestProcessorTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -303,7 +303,7 @@
 block discarded – undo
303 303
         {
304 304
             /**
305 305
              * @param array $attributes
306
-             * @param array $content
306
+             * @param string $content
307 307
              */
308 308
             public function __construct(array $attributes, $content)
309 309
             {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             ->expects($this->once())
171 171
             ->method('assemble')
172 172
             ->willReturnCallback(
173
-                function (
173
+                function(
174 174
                     Operation $operation,
175 175
                     array $query,
176 176
                     array $attributes,
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             ->expects($this->once())
214 214
             ->method('assemble')
215 215
             ->willReturnCallback(
216
-                function (
216
+                function(
217 217
                     Operation $operation,
218 218
                     array $query,
219 219
                     array $attributes,
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
             ->method('hydrate')
232 232
             ->with($body, $this->isInstanceOf(Schema::class))
233 233
             ->willReturnCallback(
234
-                function () use ($dto) {
234
+                function() use ($dto) {
235 235
                     return $dto;
236 236
                 }
237 237
             );
Please login to merge, or discard this patch.
tests/functional/BasicPetStoreApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     {
60 60
         $id = rand();
61 61
 
62
-        $responseData = $this->get('/v2/pet/' . $id);
62
+        $responseData = $this->get('/v2/pet/'.$id);
63 63
 
64 64
         $this->assertSame($id, $responseData->id);
65 65
     }
Please login to merge, or discard this patch.
tests/functional/GenericDataApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      */
62 62
     public function canFindByCriteria()
63 63
     {
64
-        $criteria     = [
64
+        $criteria = [
65 65
             (object)[
66 66
                 'fieldName' => 'x',
67 67
                 'operator'  => 'eq',
Please login to merge, or discard this patch.
src/DependencyInjection/SwaggerRequestAuthorizationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     public function create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint)
41 41
     {
42
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
42
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
43 43
 
44 44
         $loader->load('security/request_voting.yml');
45 45
 
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             ->beforeNormalization()
35 35
             ->ifString()
36 36
             ->then(
37
-                function ($v) {
37
+                function($v) {
38 38
                     return [$v];
39 39
                 }
40 40
             )
Please login to merge, or discard this patch.
tests/unit/Test/ApiResponseErrorExceptionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function getGetDataAndContentFromException()
39 39
     {
40
-        $data    = (object)[
40
+        $data = (object)[
41 41
             'message' => 'Reason',
42 42
             'extra'   => 'foo',
43 43
         ];
Please login to merge, or discard this patch.
src/Security/RbacRequestVoter.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -102,6 +102,7 @@
 block discarded – undo
102 102
 
103 103
     /**
104 104
      * {@inheritdoc}
105
+     * @param string $class
105 106
      */
106 107
     public function supportsClass($class)
107 108
     {
Please login to merge, or discard this patch.
tests/unit/Security/RbacRequestVoterTest.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,6 @@  discard block
 block discarded – undo
171 171
     /**
172 172
      * @param array  $attributes
173 173
      *
174
-     * @param string $content
175 174
      *
176 175
      * @return Request
177 176
      */
@@ -181,7 +180,6 @@  discard block
 block discarded – undo
181 180
         {
182 181
             /**
183 182
              * @param array $attributes
184
-             * @param array $content
185 183
              */
186 184
             public function __construct(array $attributes)
187 185
             {
Please login to merge, or discard this patch.