Passed
Push — master ( 093472...d84877 )
by
unknown
26:06
created
SprykerTest/Zed/Discount/Business/DecisionRule/CurrencyDecisionRuleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function testDecisionRuleWhenCurrencyMatchesShouldReturnTrue(): void
32 32
     {
33 33
         $comparatorMock = $this->createComparatorMock();
34
-        $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $currency) {
34
+        $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $currency) {
35 35
             return $clauseTransfer->getValue() === $currency;
36 36
         });
37 37
 
Please login to merge, or discard this patch.
Zed/ProductOption/Business/OptionGroup/ProductOptionOrderSaverTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $salesOrderItemOptionEntityMock
47 47
             ->expects($this->exactly(2))
48 48
             ->method('save')
49
-            ->willReturnCallback(function () use ($salesOrderItemOptionEntityMock): void {
49
+            ->willReturnCallback(function() use ($salesOrderItemOptionEntityMock): void {
50 50
                 $salesOrderItemOptionEntityMock->setIdSalesOrderItemOption(1);
51 51
             });
52 52
 
Please login to merge, or discard this patch.
Zed/ProductOption/Business/OptionGroup/ProductOptionGroupSaverTest.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
         );
57 57
 
58 58
         $optionGroupEntityMock = $this->createProductOptionGroupEntityMock();
59
-        $optionGroupEntityMock->method('save')->willReturnCallback(function () use ($optionGroupEntityMock): void {
59
+        $optionGroupEntityMock->method('save')->willReturnCallback(function() use ($optionGroupEntityMock): void {
60 60
             $optionGroupEntityMock->setIdProductOptionGroup(1);
61 61
         });
62 62
 
Please login to merge, or discard this patch.
FileSystem/tests/SprykerTest/Service/FileSystem/FileSystemServiceTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -99,13 +99,13 @@  discard block
 block discarded – undo
99 99
     protected function setupContainerAndFlysystemService(Container $container): Container
100 100
     {
101 101
         $flysystemContainer = new Container();
102
-        $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FILESYSTEM_BUILDER] = function () {
102
+        $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FILESYSTEM_BUILDER] = function() {
103 103
             return [
104 104
                 new LocalFilesystemBuilderPlugin(),
105 105
             ];
106 106
         };
107 107
 
108
-        $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FLYSYSTEM] = function () {
108
+        $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FLYSYSTEM] = function() {
109 109
             return [];
110 110
         };
111 111
 
@@ -127,15 +127,15 @@  discard block
 block discarded – undo
127 127
         $fileSystemStreamPlugin = new FileSystemStreamPlugin();
128 128
         $fileSystemStreamPlugin->setService($flysystemService);
129 129
 
130
-        $container[FileSystemDependencyProvider::PLUGIN_READER] = function (Container $container) use ($fileSystemReaderPlugin) {
130
+        $container[FileSystemDependencyProvider::PLUGIN_READER] = function(Container $container) use ($fileSystemReaderPlugin) {
131 131
             return $fileSystemReaderPlugin;
132 132
         };
133 133
 
134
-        $container[FileSystemDependencyProvider::PLUGIN_WRITER] = function (Container $container) use ($fileSystemWriterPlugin) {
134
+        $container[FileSystemDependencyProvider::PLUGIN_WRITER] = function(Container $container) use ($fileSystemWriterPlugin) {
135 135
             return $fileSystemWriterPlugin;
136 136
         };
137 137
 
138
-        $container[FileSystemDependencyProvider::PLUGIN_STREAM] = function (Container $container) use ($fileSystemStreamPlugin) {
138
+        $container[FileSystemDependencyProvider::PLUGIN_STREAM] = function(Container $container) use ($fileSystemStreamPlugin) {
139 139
             return $fileSystemStreamPlugin;
140 140
         };
141 141
 
Please login to merge, or discard this patch.
Bundles/Cms/tests/SprykerTest/Zed/Cms/_support/Helper/CmsPageDataHelper.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
 
35 35
         $idCmsPage = $this->getCmsFacade()->createPage($cmsPageTransfer);
36 36
 
37
-        $this->getDataCleanupHelper()->_addCleanup(function () use ($idCmsPage): void {
37
+        $this->getDataCleanupHelper()->_addCleanup(function() use ($idCmsPage): void {
38 38
             $this->cleanupCmsPage($idCmsPage);
39 39
         });
40 40
 
Please login to merge, or discard this patch.
SprykerTest/Zed/CmsUserConnector/Business/CmsUserConnectorFacadeTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     public function testUpdateCmsVersionPluginPersistsUserInformation(): void
52 52
     {
53 53
         $container = new Container();
54
-        $container[CmsUserConnectorDependencyProvider::FACADE_USER] = function (Container $container) {
54
+        $container[CmsUserConnectorDependencyProvider::FACADE_USER] = function(Container $container) {
55 55
             return $this->createUserMockBridgeForUpdating();
56 56
         };
57 57
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function testExpandCmsVersionTransferAddsUserInformationToCmsVersionTransfer(): void
81 81
     {
82 82
         $container = new Container();
83
-        $container[CmsUserConnectorDependencyProvider::FACADE_USER] = function (Container $container) {
83
+        $container[CmsUserConnectorDependencyProvider::FACADE_USER] = function(Container $container) {
84 84
             return $this->createUserMockBridgeForExpanding();
85 85
         };
86 86
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     protected function prepareTest(Container $container): void
103 103
     {
104
-        $container[CmsUserConnectorDependencyProvider::QUERY_CONTAINER_CMS] = function (Container $container) {
104
+        $container[CmsUserConnectorDependencyProvider::QUERY_CONTAINER_CMS] = function(Container $container) {
105 105
             return new CmsUserConnectorToCmsQueryContainer($container->getLocator()
106 106
                 ->cms()
107 107
                 ->queryContainer());
Please login to merge, or discard this patch.
Shared/ProductQuantity/_support/Helper/ProductQuantityDataHelper.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
 
35 35
         $productQuantityTransfer = $this->storeProductQuantity($productQuantityTransfer);
36 36
 
37
-        $this->getDataCleanupHelper()->_addCleanup(function () use ($productQuantityTransfer): void {
37
+        $this->getDataCleanupHelper()->_addCleanup(function() use ($productQuantityTransfer): void {
38 38
             $this->cleanupProductQuantity($productQuantityTransfer->getIdProductQuantity());
39 39
         });
40 40
 
Please login to merge, or discard this patch.
Testify/tests/SprykerTest/Shared/Testify/_support/Helper/BusinessHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     private function createClosure(): Closure
165 165
     {
166 166
         $dependencies = $this->getDependencies();
167
-        $callback = function (TestifyConfiguratorInterface $configurator) use ($dependencies): void {
167
+        $callback = function(TestifyConfiguratorInterface $configurator) use ($dependencies): void {
168 168
             foreach ($dependencies as $key => $value) {
169 169
                 $configurator->getContainer()->set($key, $value);
170 170
             }
Please login to merge, or discard this patch.
Bundles/Container/tests/SprykerTest/Service/Container/ContainerTest.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function testSetAddsServiceOnConstruction(): void
55 55
     {
56 56
         //Arrange
57
-        $service = function () {
57
+        $service = function() {
58 58
             return static::SERVICE;
59 59
         };
60 60
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         //Arrange
76 76
         $container = new Container();
77
-        $service = function () {
77
+        $service = function() {
78 78
             return static::SERVICE;
79 79
         };
80 80
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $this->expectException(FrozenServiceException::class);
94 94
 
95 95
         $container = new Container();
96
-        $service = function () {
96
+        $service = function() {
97 97
             return static::SERVICE;
98 98
         };
99 99
         $container->set(static::SERVICE, $service);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         //Arrange
110 110
         $container = new Container();
111
-        $container->set(static::SERVICE, function () {
111
+        $container->set(static::SERVICE, function() {
112 112
             return new class
113 113
             {
114 114
             };
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     {
130 130
         //Arrange
131 131
         $container = new Container();
132
-        $container->set(static::SERVICE, function () {
132
+        $container->set(static::SERVICE, function() {
133 133
             return new class
134 134
             {
135 135
                 /**
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     {
159 159
         //Arrange
160 160
         $container = new Container();
161
-        $container->set(static::SERVICE, $container->factory(function () {
161
+        $container->set(static::SERVICE, $container->factory(function() {
162 162
             return new class
163 163
             {
164 164
             };
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     public function testHasReturnsTrueWhenServiceWasAdded(): void
199 199
     {
200 200
         $container = new Container();
201
-        $container->set(static::SERVICE, function (): void {
201
+        $container->set(static::SERVICE, function(): void {
202 202
         });
203 203
 
204 204
         $this->assertTrue($container->has(static::SERVICE));
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     {
212 212
         //Arrange
213 213
         $container = new Container();
214
-        $container->set(static::SERVICE, function (): void {
214
+        $container->set(static::SERVICE, function(): void {
215 215
         });
216 216
 
217 217
         //Act
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     {
262 262
         //Arrange
263 263
         $container = new Container();
264
-        $service = function () {
264
+        $service = function() {
265 265
             return static::SERVICE;
266 266
         };
267 267
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     public function testExtendThrowsExceptionWhenPassedServiceIsNotAService(): void
279 279
     {
280 280
         $container = new Container();
281
-        $container->set(static::SERVICE, function () {
281
+        $container->set(static::SERVICE, function() {
282 282
             return [static::SERVICE_PROPERTY_1 => true];
283 283
         });
284 284
 
@@ -292,14 +292,14 @@  discard block
 block discarded – undo
292 292
     public function testExtendThrowsExceptionWhenTheServiceToBeExtendedIsFrozen(): void
293 293
     {
294 294
         $container = new Container();
295
-        $container->set(static::SERVICE, function () {
295
+        $container->set(static::SERVICE, function() {
296 296
             return [static::SERVICE_PROPERTY_1 => true];
297 297
         });
298 298
 
299 299
         $container->get(static::SERVICE);
300 300
 
301 301
         $this->expectException(FrozenServiceException::class);
302
-        $container->extend(static::SERVICE, function (): void {
302
+        $container->extend(static::SERVICE, function(): void {
303 303
         });
304 304
     }
305 305
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         $container->set(static::SERVICE, 'not an object and not invokable');
313 313
 
314 314
         $this->expectException(ContainerException::class);
315
-        $container->extend(static::SERVICE, function (): void {
315
+        $container->extend(static::SERVICE, function(): void {
316 316
         });
317 317
     }
318 318
 
@@ -322,11 +322,11 @@  discard block
 block discarded – undo
322 322
     public function testExtendThrowsExceptionWhenTheServiceToBeExtendedIsProtected(): void
323 323
     {
324 324
         $container = new Container();
325
-        $container->set(static::SERVICE, $container->protect(function (): void {
325
+        $container->set(static::SERVICE, $container->protect(function(): void {
326 326
         }));
327 327
 
328 328
         $this->expectException(ContainerException::class);
329
-        $container->extend(static::SERVICE, function (): void {
329
+        $container->extend(static::SERVICE, function(): void {
330 330
         });
331 331
     }
332 332
 
@@ -336,10 +336,10 @@  discard block
 block discarded – undo
336 336
     public function testExtendAFactoryServiceWillReplaceTheServiceInTheFactoryCollection(): void
337 337
     {
338 338
         $container = new Container();
339
-        $container->set(static::SERVICE, $container->factory(function () {
339
+        $container->set(static::SERVICE, $container->factory(function() {
340 340
             return 'foo';
341 341
         }));
342
-        $container->extend(static::SERVICE, function ($service) {
342
+        $container->extend(static::SERVICE, function($service) {
343 343
             return $service . 'bar';
344 344
         });
345 345
 
@@ -353,12 +353,12 @@  discard block
 block discarded – undo
353 353
     {
354 354
         //Arrange
355 355
         $container = new Container();
356
-        $container->set(static::SERVICE, function () {
356
+        $container->set(static::SERVICE, function() {
357 357
             return [static::SERVICE_PROPERTY_1 => true];
358 358
         });
359 359
 
360 360
         //Act
361
-        $container->extend(static::SERVICE, function ($existingService, $container) {
361
+        $container->extend(static::SERVICE, function($existingService, $container) {
362 362
             $existingService[static::SERVICE_PROPERTY_2] = true;
363 363
 
364 364
             return $existingService;
@@ -378,14 +378,14 @@  discard block
 block discarded – undo
378 378
     {
379 379
         //Arrange
380 380
         $container = new Container();
381
-        $container->extend(static::SERVICE, function ($existingService, $container) {
381
+        $container->extend(static::SERVICE, function($existingService, $container) {
382 382
             $existingService[static::SERVICE_PROPERTY_2] = true;
383 383
 
384 384
             return $existingService;
385 385
         });
386 386
 
387 387
         //Act
388
-        $container->set(static::SERVICE, function () {
388
+        $container->set(static::SERVICE, function() {
389 389
             return [static::SERVICE_PROPERTY_1 => true];
390 390
         });
391 391
 
Please login to merge, or discard this patch.