Passed
Push — master ( e0cd82...d9403f )
by
unknown
30:43
created
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.
Container/tests/SprykerTest/Service/Container/ContainerGlobalTest.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public function testSetGlobalAddsAService(): void
49 49
     {
50 50
         $container = new Container();
51
-        $service = function () {
51
+        $service = function() {
52 52
             return static::SERVICE_GLOBAL;
53 53
         };
54 54
         $container->setGlobal(static::SERVICE_GLOBAL, $service);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function testSetGlobalAddsAServiceAndMakesItGloballyAvailable(): void
63 63
     {
64 64
         $container = new Container();
65
-        $service = function () {
65
+        $service = function() {
66 66
             return static::SERVICE_GLOBAL;
67 67
         };
68 68
         $container->setGlobal(static::SERVICE_GLOBAL, $service);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     public function testSetGlobalThrowsAnExceptionWhenServiceWasAlreadyRetrieved(): void
79 79
     {
80 80
         $container = new Container();
81
-        $service = function () {
81
+        $service = function() {
82 82
             return static::SERVICE_GLOBAL;
83 83
         };
84 84
         $container->setGlobal(static::SERVICE_GLOBAL, $service);
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     public function testGetGlobalReturnsSameServiceInstanceOnConsecutiveCalls(): void
96 96
     {
97 97
         $container = new Container();
98
-        $container->setGlobal(static::SERVICE_GLOBAL, function () {
98
+        $container->setGlobal(static::SERVICE_GLOBAL, function() {
99 99
             return new class
100 100
             {
101 101
             };
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     public function testHasReturnsTrueWhenGlobalServiceIsSet(): void
124 124
     {
125 125
         $container = new Container();
126
-        $container->setGlobal(static::SERVICE_GLOBAL, function () {
126
+        $container->setGlobal(static::SERVICE_GLOBAL, function() {
127 127
             return static::SERVICE_GLOBAL;
128 128
         });
129 129
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     public function testRemoveRemovesAGlobalService(): void
139 139
     {
140 140
         $container = new Container();
141
-        $container->setGlobal(static::SERVICE_GLOBAL, function (): void {
141
+        $container->setGlobal(static::SERVICE_GLOBAL, function(): void {
142 142
         });
143 143
 
144 144
         $container->remove(static::SERVICE_GLOBAL);
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     public function testConfigureWithIsGlobalTrueWillMakeServiceGloballyAvailable(): void
164 164
     {
165 165
         $container = new Container();
166
-        $container->set(static::SERVICE, function () {
166
+        $container->set(static::SERVICE, function() {
167 167
             return static::SERVICE;
168 168
         });
169 169
         $container->configure(static::SERVICE, ['isGlobal' => true]);
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     public function testExtendThrowsExceptionWhenPassedServiceIsNotAService(): void
179 179
     {
180 180
         $container = new Container();
181
-        $container->setGlobal(static::SERVICE_GLOBAL, function () {
181
+        $container->setGlobal(static::SERVICE_GLOBAL, function() {
182 182
             return [static::SERVICE_PROPERTY_1 => true];
183 183
         });
184 184
 
@@ -192,14 +192,14 @@  discard block
 block discarded – undo
192 192
     public function testExtendThrowsExceptionWhenTheServiceToBeExtendedIsFrozen(): void
193 193
     {
194 194
         $container = new Container();
195
-        $container->setGlobal(static::SERVICE_GLOBAL, function () {
195
+        $container->setGlobal(static::SERVICE_GLOBAL, function() {
196 196
             return [static::SERVICE_PROPERTY_1 => true];
197 197
         });
198 198
 
199 199
         $container->get(static::SERVICE_GLOBAL);
200 200
 
201 201
         $this->expectException(FrozenServiceException::class);
202
-        $container->extend(static::SERVICE_GLOBAL, function (): void {
202
+        $container->extend(static::SERVICE_GLOBAL, function(): void {
203 203
         });
204 204
     }
205 205
 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         $container->get(static::SERVICE_GLOBAL);
215 215
 
216 216
         $this->expectException(ContainerException::class);
217
-        $container->extend(static::SERVICE_GLOBAL, function (): void {
217
+        $container->extend(static::SERVICE_GLOBAL, function(): void {
218 218
         });
219 219
     }
220 220
 
@@ -224,12 +224,12 @@  discard block
 block discarded – undo
224 224
     public function testExtendExtendsAGlobalService(): void
225 225
     {
226 226
         $container = new Container();
227
-        $container->set(static::SERVICE_GLOBAL, function () {
227
+        $container->set(static::SERVICE_GLOBAL, function() {
228 228
             return 'foo';
229 229
         });
230 230
         $container->configure(static::SERVICE_GLOBAL, ['isGlobal' => true]);
231 231
 
232
-        $container->extend(static::SERVICE_GLOBAL, function ($existingService) {
232
+        $container->extend(static::SERVICE_GLOBAL, function($existingService) {
233 233
             return $existingService . 'bar';
234 234
         });
235 235
 
Please login to merge, or discard this patch.
tests/SprykerTest/Zed/Navigation/_support/Helper/NavigationDataHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
         $this->getNavigationFacade()->createNavigation($navigationTransfer);
35 35
 
36
-        $this->getDataCleanupHelper()->_addCleanup(function () use ($navigationTransfer): void {
36
+        $this->getDataCleanupHelper()->_addCleanup(function() use ($navigationTransfer): void {
37 37
             $this->cleanupNavigation($navigationTransfer);
38 38
         });
39 39
 
Please login to merge, or discard this patch.
_support/Helper/BusinessOnBehalfDataImportHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         $customerEntity->save();
126 126
         $customerTransfer->fromArray($customerEntity->toArray(), true);
127 127
 
128
-        $this->getDataCleanupHelper()->_addCleanup(function () use ($customerTransfer): void {
128
+        $this->getDataCleanupHelper()->_addCleanup(function() use ($customerTransfer): void {
129 129
             $this->cleanupCustomer($customerTransfer);
130 130
         });
131 131
 
Please login to merge, or discard this patch.