Completed
Push — master ( 1652fa...4eeda9 )
by
unknown
9s
created
Utils/Generator/RandomFixtureGenerator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,8 +95,8 @@
 block discarded – undo
95 95
     /**
96 96
      * @param $typeName
97 97
      * @param array|null $typeParams
98
-     * @param null       $group
99
-     * @param null       $version
98
+     * @param string       $group
99
+     * @param string       $version
100 100
      *
101 101
      * @return float|int|string|array|\DateTime|EntityInterface
102 102
      *
Please login to merge, or discard this patch.
Command/SmokeTestRunCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $testNames = $this->getTestNames();
119 119
             $smokeTests = \array_filter(
120 120
                 $smokeTests,
121
-                function ($key) use ($test) {
121
+                function($key) use ($test) {
122 122
                     return $key === $test;
123 123
                 },
124 124
                 ARRAY_FILTER_USE_KEY
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             if (!empty($skipTests)) {
152 152
                 $smokeTests = \array_filter(
153 153
                     $smokeTests,
154
-                    function ($smokeTestInfo) use ($skipTests, &$skipped) {
154
+                    function($smokeTestInfo) use ($skipTests, &$skipped) {
155 155
                         $key = $smokeTestInfo['id'];
156 156
                         $skipping = \in_array($key, $skipTests);
157 157
                         if ($skipping) {
Please login to merge, or discard this patch.
Tests/Symfony/Validator/AbstractValidatorTest.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $test = $this;
77 77
 
78
-        $callback = function ($value, ExecutionContextInterface $context) use ($test) {
78
+        $callback = function($value, ExecutionContextInterface $context) use ($test) {
79 79
             $test->assertNull($context->getClassName());
80 80
             $test->assertNull($context->getPropertyName());
81 81
             $test->assertSame('', $context->getPropertyPath());
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $test = $this;
112 112
         $entity = new Entity();
113 113
 
114
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
114
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity) {
115 115
             $test->assertSame($test::ENTITY_CLASS, $context->getClassName());
116 116
             $test->assertNull($context->getPropertyName());
117 117
             $test->assertSame('', $context->getPropertyPath());
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $entity = new Entity();
150 150
         $entity->firstName = 'Bernhard';
151 151
 
152
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
152
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity) {
153 153
             $propertyMetadatas = $test->metadata->getPropertyMetadata('firstName');
154 154
 
155 155
             $test->assertSame($test::ENTITY_CLASS, $context->getClassName());
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         $entity = new Entity();
190 190
         $entity->setLastName('Schussek');
191 191
 
192
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
192
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity) {
193 193
             $propertyMetadatas = $test->metadata->getPropertyMetadata('lastName');
194 194
 
195 195
             $test->assertSame($test::ENTITY_CLASS, $context->getClassName());
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         $entity = new Entity();
230 230
         $array = ['key' => $entity];
231 231
 
232
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity, $array) {
232
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity, $array) {
233 233
             $test->assertSame($test::ENTITY_CLASS, $context->getClassName());
234 234
             $test->assertNull($context->getPropertyName());
235 235
             $test->assertSame('[key]', $context->getPropertyPath());
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         $entity = new Entity();
268 268
         $array = [2 => ['key' => $entity]];
269 269
 
270
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity, $array) {
270
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity, $array) {
271 271
             $test->assertSame($test::ENTITY_CLASS, $context->getClassName());
272 272
             $test->assertNull($context->getPropertyName());
273 273
             $test->assertSame('[2][key]', $context->getPropertyPath());
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         $entity = new Entity();
306 306
         $traversable = new \ArrayIterator(['key' => $entity]);
307 307
 
308
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity, $traversable) {
308
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity, $traversable) {
309 309
             $test->assertSame($test::ENTITY_CLASS, $context->getClassName());
310 310
             $test->assertNull($context->getPropertyName());
311 311
             $test->assertSame('[key]', $context->getPropertyPath());
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
             2 => new \ArrayIterator(['key' => $entity]),
346 346
         ]);
347 347
 
348
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity, $traversable) {
348
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity, $traversable) {
349 349
             $test->assertSame($test::ENTITY_CLASS, $context->getClassName());
350 350
             $test->assertNull($context->getPropertyName());
351 351
             $test->assertSame('[2][key]', $context->getPropertyPath());
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
         $entity = new Entity();
384 384
         $entity->reference = new Reference();
385 385
 
386
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
386
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity) {
387 387
             $test->assertSame($test::REFERENCE_CLASS, $context->getClassName());
388 388
             $test->assertNull($context->getPropertyName());
389 389
             $test->assertSame('reference', $context->getPropertyPath());
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
         $entity->reference = new Reference();
424 424
         $entity->reference->value = 'Foobar';
425 425
 
426
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
426
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity) {
427 427
             $propertyMetadatas = $test->referenceMetadata->getPropertyMetadata('value');
428 428
 
429 429
             $test->assertSame($test::REFERENCE_CLASS, $context->getClassName());
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
         $entity->reference = new Reference();
466 466
         $entity->reference->setPrivateValue('Bamboo');
467 467
 
468
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
468
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity) {
469 469
             $propertyMetadatas = $test->referenceMetadata->getPropertyMetadata('privateValue');
470 470
 
471 471
             $test->assertSame($test::REFERENCE_CLASS, $context->getClassName());
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
         $entity = new Entity();
533 533
         $entity->reference = ['key' => new Reference()];
534 534
 
535
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
535
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity) {
536 536
             $test->assertSame($test::REFERENCE_CLASS, $context->getClassName());
537 537
             $test->assertNull($context->getPropertyName());
538 538
             $test->assertSame('reference[key]', $context->getPropertyPath());
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
         $entity = new Entity();
573 573
         $entity->reference = [2 => ['key' => new Reference()]];
574 574
 
575
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
575
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity) {
576 576
             $test->assertSame($test::REFERENCE_CLASS, $context->getClassName());
577 577
             $test->assertNull($context->getPropertyName());
578 578
             $test->assertSame('reference[2][key]', $context->getPropertyPath());
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
         $entity = new Entity();
611 611
         $entity->reference = ['key' => new Reference()];
612 612
 
613
-        $callback = function ($value, ExecutionContextInterface $context) {
613
+        $callback = function($value, ExecutionContextInterface $context) {
614 614
             $context->addViolation('Message %param%', ['%param%' => 'value']);
615 615
         };
616 616
 
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
         $entity = new Entity();
631 631
         $entity->reference = [2 => ['key' => new Reference()]];
632 632
 
633
-        $callback = function ($value, ExecutionContextInterface $context) {
633
+        $callback = function($value, ExecutionContextInterface $context) {
634 634
             $context->addViolation('Message %param%', ['%param%' => 'value']);
635 635
         };
636 636
 
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
         $entity = new Entity();
678 678
         $entity->reference = new \ArrayIterator(['key' => new Reference()]);
679 679
 
680
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
680
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity) {
681 681
             $test->assertSame($test::REFERENCE_CLASS, $context->getClassName());
682 682
             $test->assertNull($context->getPropertyName());
683 683
             $test->assertSame('reference[key]', $context->getPropertyPath());
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
         $entity = new Entity();
716 716
         $entity->reference = new \ArrayIterator(['key' => new Reference()]);
717 717
 
718
-        $callback = function ($value, ExecutionContextInterface $context) {
718
+        $callback = function($value, ExecutionContextInterface $context) {
719 719
             $context->addViolation('Message %param%', ['%param%' => 'value']);
720 720
         };
721 721
 
@@ -754,7 +754,7 @@  discard block
 block discarded – undo
754 754
             2 => new \ArrayIterator(['key' => new Reference()]),
755 755
         ]);
756 756
 
757
-        $callback = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
757
+        $callback = function($value, ExecutionContextInterface $context) use ($test, $entity) {
758 758
             $test->assertSame($test::REFERENCE_CLASS, $context->getClassName());
759 759
             $test->assertNull($context->getPropertyName());
760 760
             $test->assertSame('reference[2][key]', $context->getPropertyPath());
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
         $entity->firstName = 'Bernhard';
797 797
         $entity->setLastName('Schussek');
798 798
 
799
-        $callback1 = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
799
+        $callback1 = function($value, ExecutionContextInterface $context) use ($test, $entity) {
800 800
             $propertyMetadatas = $test->metadata->getPropertyMetadata('firstName');
801 801
 
802 802
             $test->assertSame($test::ENTITY_CLASS, $context->getClassName());
@@ -811,7 +811,7 @@  discard block
 block discarded – undo
811 811
             $context->addViolation('Message %param%', ['%param%' => 'value']);
812 812
         };
813 813
 
814
-        $callback2 = function ($value, ExecutionContextInterface $context) {
814
+        $callback2 = function($value, ExecutionContextInterface $context) {
815 815
             $context->addViolation('Other violation');
816 816
         };
817 817
 
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
         $entity = new Entity();
872 872
         $entity->setLastName('Schussek');
873 873
 
874
-        $callback1 = function ($value, ExecutionContextInterface $context) use ($test, $entity) {
874
+        $callback1 = function($value, ExecutionContextInterface $context) use ($test, $entity) {
875 875
             $propertyMetadatas = $test->metadata->getPropertyMetadata('firstName');
876 876
 
877 877
             $test->assertSame($test::ENTITY_CLASS, $context->getClassName());
@@ -886,7 +886,7 @@  discard block
 block discarded – undo
886 886
             $context->addViolation('Message %param%', ['%param%' => 'value']);
887 887
         };
888 888
 
889
-        $callback2 = function ($value, ExecutionContextInterface $context) {
889
+        $callback2 = function($value, ExecutionContextInterface $context) {
890 890
             $context->addViolation('Other violation');
891 891
         };
892 892
 
@@ -922,7 +922,7 @@  discard block
 block discarded – undo
922 922
     {
923 923
         $test = $this;
924 924
 
925
-        $callback1 = function ($value, ExecutionContextInterface $context) use ($test) {
925
+        $callback1 = function($value, ExecutionContextInterface $context) use ($test) {
926 926
             $propertyMetadatas = $test->metadata->getPropertyMetadata('firstName');
927 927
 
928 928
             $test->assertSame($test::ENTITY_CLASS, $context->getClassName());
@@ -937,7 +937,7 @@  discard block
 block discarded – undo
937 937
             $context->addViolation('Message %param%', ['%param%' => 'value']);
938 938
         };
939 939
 
940
-        $callback2 = function ($value, ExecutionContextInterface $context) {
940
+        $callback2 = function($value, ExecutionContextInterface $context) {
941 941
             $context->addViolation('Other violation');
942 942
         };
943 943
 
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
         $entity->reference = new Reference();
1003 1003
         $entity->reference2 = $entity->reference;
1004 1004
 
1005
-        $callback = function ($value, ExecutionContextInterface $context) {
1005
+        $callback = function($value, ExecutionContextInterface $context) {
1006 1006
             $context->addViolation('Message');
1007 1007
         };
1008 1008
 
@@ -1022,7 +1022,7 @@  discard block
 block discarded – undo
1022 1022
         $entity->reference = new Reference();
1023 1023
         $entity->reference2 = new Reference();
1024 1024
 
1025
-        $callback = function ($value, ExecutionContextInterface $context) {
1025
+        $callback = function($value, ExecutionContextInterface $context) {
1026 1026
             $context->addViolation('Message');
1027 1027
         };
1028 1028
 
@@ -1040,7 +1040,7 @@  discard block
 block discarded – undo
1040 1040
     {
1041 1041
         $entity = new Entity();
1042 1042
 
1043
-        $callback = function ($value, ExecutionContextInterface $context) {
1043
+        $callback = function($value, ExecutionContextInterface $context) {
1044 1044
             $context->addViolation('Message');
1045 1045
         };
1046 1046
 
@@ -1063,7 +1063,7 @@  discard block
 block discarded – undo
1063 1063
     {
1064 1064
         $entity = new Entity();
1065 1065
 
1066
-        $callback = function ($value, ExecutionContextInterface $context) {
1066
+        $callback = function($value, ExecutionContextInterface $context) {
1067 1067
             $context->addViolation('Message');
1068 1068
         };
1069 1069
 
@@ -1086,15 +1086,15 @@  discard block
 block discarded – undo
1086 1086
     {
1087 1087
         $entity = new Entity();
1088 1088
 
1089
-        $callback1 = function ($value, ExecutionContextInterface $context) {
1089
+        $callback1 = function($value, ExecutionContextInterface $context) {
1090 1090
             $context->addViolation('Violation in Group 2');
1091 1091
         };
1092
-        $callback2 = function ($value, ExecutionContextInterface $context) {
1092
+        $callback2 = function($value, ExecutionContextInterface $context) {
1093 1093
             $context->addViolation('Violation in Group 3');
1094 1094
         };
1095 1095
 
1096 1096
         $this->metadata->addConstraint(new Callback([
1097
-            'callback' => function () {},
1097
+            'callback' => function() {},
1098 1098
             'groups' => 'Group 1',
1099 1099
         ]));
1100 1100
         $this->metadata->addConstraint(new Callback([
@@ -1120,15 +1120,15 @@  discard block
 block discarded – undo
1120 1120
     {
1121 1121
         $entity = new Entity();
1122 1122
 
1123
-        $callback1 = function ($value, ExecutionContextInterface $context) {
1123
+        $callback1 = function($value, ExecutionContextInterface $context) {
1124 1124
             $context->addViolation('Violation in Group 2');
1125 1125
         };
1126
-        $callback2 = function ($value, ExecutionContextInterface $context) {
1126
+        $callback2 = function($value, ExecutionContextInterface $context) {
1127 1127
             $context->addViolation('Violation in Group 3');
1128 1128
         };
1129 1129
 
1130 1130
         $this->metadata->addConstraint(new Callback([
1131
-            'callback' => function () {},
1131
+            'callback' => function() {},
1132 1132
             'groups' => 'Group 1',
1133 1133
         ]));
1134 1134
         $this->metadata->addConstraint(new Callback([
@@ -1155,10 +1155,10 @@  discard block
 block discarded – undo
1155 1155
         $entity = new Entity();
1156 1156
         $entity->reference = new Reference();
1157 1157
 
1158
-        $callback1 = function ($value, ExecutionContextInterface $context) {
1158
+        $callback1 = function($value, ExecutionContextInterface $context) {
1159 1159
             $context->addViolation('Violation in Default group');
1160 1160
         };
1161
-        $callback2 = function ($value, ExecutionContextInterface $context) {
1161
+        $callback2 = function($value, ExecutionContextInterface $context) {
1162 1162
             $context->addViolation('Violation in group sequence');
1163 1163
         };
1164 1164
 
@@ -1186,10 +1186,10 @@  discard block
 block discarded – undo
1186 1186
     {
1187 1187
         $entity = new Entity();
1188 1188
 
1189
-        $callback1 = function ($value, ExecutionContextInterface $context) {
1189
+        $callback1 = function($value, ExecutionContextInterface $context) {
1190 1190
             $context->addViolation('Violation in other group');
1191 1191
         };
1192
-        $callback2 = function ($value, ExecutionContextInterface $context) {
1192
+        $callback2 = function($value, ExecutionContextInterface $context) {
1193 1193
             $context->addViolation('Violation in group sequence');
1194 1194
         };
1195 1195
 
@@ -1217,16 +1217,16 @@  discard block
 block discarded – undo
1217 1217
         $sequence = new GroupSequence(['Group 1', 'Group 2', 'Group 3', 'Entity']);
1218 1218
         $entity = new GroupSequenceProviderEntity($sequence);
1219 1219
 
1220
-        $callback1 = function ($value, ExecutionContextInterface $context) {
1220
+        $callback1 = function($value, ExecutionContextInterface $context) {
1221 1221
             $context->addViolation('Violation in Group 2');
1222 1222
         };
1223
-        $callback2 = function ($value, ExecutionContextInterface $context) {
1223
+        $callback2 = function($value, ExecutionContextInterface $context) {
1224 1224
             $context->addViolation('Violation in Group 3');
1225 1225
         };
1226 1226
 
1227 1227
         $metadata = new ClassMetadata(\get_class($entity));
1228 1228
         $metadata->addConstraint(new Callback([
1229
-            'callback' => function () {},
1229
+            'callback' => function() {},
1230 1230
             'groups' => 'Group 1',
1231 1231
         ]));
1232 1232
         $metadata->addConstraint(new Callback([
@@ -1253,16 +1253,16 @@  discard block
 block discarded – undo
1253 1253
         $sequence = ['Group 1', 'Group 2', 'Group 3', 'Entity'];
1254 1254
         $entity = new GroupSequenceProviderEntity($sequence);
1255 1255
 
1256
-        $callback1 = function ($value, ExecutionContextInterface $context) {
1256
+        $callback1 = function($value, ExecutionContextInterface $context) {
1257 1257
             $context->addViolation('Violation in Group 2');
1258 1258
         };
1259
-        $callback2 = function ($value, ExecutionContextInterface $context) {
1259
+        $callback2 = function($value, ExecutionContextInterface $context) {
1260 1260
             $context->addViolation('Violation in Group 3');
1261 1261
         };
1262 1262
 
1263 1263
         $metadata = new ClassMetadata(\get_class($entity));
1264 1264
         $metadata->addConstraint(new Callback([
1265
-            'callback' => function () {},
1265
+            'callback' => function() {},
1266 1266
             'groups' => 'Group 1',
1267 1267
         ]));
1268 1268
         $metadata->addConstraint(new Callback([
Please login to merge, or discard this patch.
Command/Fixtures/GenerateFixtureCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
                 }
233 233
 
234 234
                 if ($result) {
235
-                    $result = (int)$result;
235
+                    $result = (int) $result;
236 236
                 }
237 237
 
238 238
                 break;
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
                 }
246 246
 
247 247
                 if ($result) {
248
-                    $result = (float)$result;
248
+                    $result = (float) $result;
249 249
                 }
250 250
 
251 251
                 break;
Please login to merge, or discard this patch.
Tests/Serializer/Metadata/Driver/AnnotationDriverTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
     protected function setUp()
33 33
     {
34
-       static::bootKernel();
34
+        static::bootKernel();
35 35
 
36 36
         $this->container = static::$kernel->getContainer();
37 37
         $this->serializer = $this->container->get('jms_serializer');
Please login to merge, or discard this patch.