@@ -33,7 +33,7 @@ |
||
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 |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $fileSystemService->setFactory($factory); |
91 | 91 | $container = new Container(); |
92 | 92 | |
93 | - $container[FileManagerDependencyProvider::SERVICE_FILE_SYSTEM] = function (Container $container) use ($fileSystemService) { |
|
93 | + $container[FileManagerDependencyProvider::SERVICE_FILE_SYSTEM] = function(Container $container) use ($fileSystemService) { |
|
94 | 94 | return new FileManagerToFileSystemServiceBridge($fileSystemService); |
95 | 95 | }; |
96 | 96 | |
@@ -122,13 +122,13 @@ discard block |
||
122 | 122 | protected function setupContainerAndFlysystemService(ServiceContainer $container): ServiceContainer |
123 | 123 | { |
124 | 124 | $flysystemContainer = new ServiceContainer(); |
125 | - $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FILESYSTEM_BUILDER] = function (ServiceContainer $flysystemContainer) { |
|
125 | + $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FILESYSTEM_BUILDER] = function(ServiceContainer $flysystemContainer) { |
|
126 | 126 | return [ |
127 | 127 | new LocalFilesystemBuilderPlugin(), |
128 | 128 | ]; |
129 | 129 | }; |
130 | 130 | |
131 | - $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FLYSYSTEM] = function (ServiceContainer $flysystemContainer) { |
|
131 | + $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FLYSYSTEM] = function(ServiceContainer $flysystemContainer) { |
|
132 | 132 | return []; |
133 | 133 | }; |
134 | 134 | |
@@ -150,15 +150,15 @@ discard block |
||
150 | 150 | $fileSystemStreamPlugin = new FileSystemStreamPlugin(); |
151 | 151 | $fileSystemStreamPlugin->setService($flysystemService); |
152 | 152 | |
153 | - $container[FileSystemDependencyProvider::PLUGIN_READER] = function (ServiceContainer $container) use ($fileSystemReaderPlugin) { |
|
153 | + $container[FileSystemDependencyProvider::PLUGIN_READER] = function(ServiceContainer $container) use ($fileSystemReaderPlugin) { |
|
154 | 154 | return $fileSystemReaderPlugin; |
155 | 155 | }; |
156 | 156 | |
157 | - $container[FileSystemDependencyProvider::PLUGIN_WRITER] = function (ServiceContainer $container) use ($fileSystemWriterPlugin) { |
|
157 | + $container[FileSystemDependencyProvider::PLUGIN_WRITER] = function(ServiceContainer $container) use ($fileSystemWriterPlugin) { |
|
158 | 158 | return $fileSystemWriterPlugin; |
159 | 159 | }; |
160 | 160 | |
161 | - $container[FileSystemDependencyProvider::PLUGIN_STREAM] = function (ServiceContainer $container) use ($fileSystemStreamPlugin) { |
|
161 | + $container[FileSystemDependencyProvider::PLUGIN_STREAM] = function(ServiceContainer $container) use ($fileSystemStreamPlugin) { |
|
162 | 162 | return $fileSystemStreamPlugin; |
163 | 163 | }; |
164 | 164 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | { |
64 | 64 | $salesOrderThresholdTypeTransfer = $this->getFacade()->saveSalesOrderThresholdType($salesOrderThresholdTypeTransfer); |
65 | 65 | |
66 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($salesOrderThresholdTypeTransfer): void { |
|
66 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($salesOrderThresholdTypeTransfer): void { |
|
67 | 67 | $this->getSalesOrderThresholdTypeQuery() |
68 | 68 | ->filterByKey($salesOrderThresholdTypeTransfer->getKey()) |
69 | 69 | ->filterByThresholdGroup($salesOrderThresholdTypeTransfer->getThresholdGroup()) |
@@ -125,7 +125,7 @@ |
||
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 |
@@ -53,13 +53,13 @@ discard block |
||
53 | 53 | public function testPreRunPluginsWillExecutesBeforeConsoleCommands(): void |
54 | 54 | { |
55 | 55 | $container = new Container(); |
56 | - $container[ConsoleDependencyProvider::PLUGINS_CONSOLE_PRE_RUN_HOOK] = function (Container $container) { |
|
56 | + $container[ConsoleDependencyProvider::PLUGINS_CONSOLE_PRE_RUN_HOOK] = function(Container $container) { |
|
57 | 57 | $preRunPluginMock = $this->getPreRunPluginMock(); |
58 | 58 | |
59 | 59 | return [$preRunPluginMock]; |
60 | 60 | }; |
61 | 61 | |
62 | - $container[ConsoleDependencyProvider::PLUGINS_CONSOLE_POST_RUN_HOOK] = function (Container $container) { |
|
62 | + $container[ConsoleDependencyProvider::PLUGINS_CONSOLE_POST_RUN_HOOK] = function(Container $container) { |
|
63 | 63 | return []; |
64 | 64 | }; |
65 | 65 | |
@@ -75,11 +75,11 @@ discard block |
||
75 | 75 | public function testPostRunPluginsWillExecutesBeforeConsoleCommands(): void |
76 | 76 | { |
77 | 77 | $container = new Container(); |
78 | - $container[ConsoleDependencyProvider::PLUGINS_CONSOLE_PRE_RUN_HOOK] = function (Container $container) { |
|
78 | + $container[ConsoleDependencyProvider::PLUGINS_CONSOLE_PRE_RUN_HOOK] = function(Container $container) { |
|
79 | 79 | return []; |
80 | 80 | }; |
81 | 81 | |
82 | - $container[ConsoleDependencyProvider::PLUGINS_CONSOLE_POST_RUN_HOOK] = function (Container $container) { |
|
82 | + $container[ConsoleDependencyProvider::PLUGINS_CONSOLE_POST_RUN_HOOK] = function(Container $container) { |
|
83 | 83 | $postRunPluginMock = $this->getPostRunPluginMock(); |
84 | 84 | |
85 | 85 | return [$postRunPluginMock]; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | ->createCompanyUserInvitation($companyUserInvitationCreateRequestTransfer) |
49 | 49 | ->getCompanyUserInvitation(); |
50 | 50 | |
51 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($companyUserInvitationTransfer): void { |
|
51 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($companyUserInvitationTransfer): void { |
|
52 | 52 | $this->setDependencies(); |
53 | 53 | |
54 | 54 | $companyUserInvitationDeleteRequestTransfer = (new CompanyUserInvitationDeleteRequestTransfer()) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $companyUserInvitationTransfer = (new CompanyUserInvitationBuilder($seedData))->build(); |
72 | 72 | $companyUserInvitationTransfer->requireFkCompanyUser(); |
73 | 73 | |
74 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($companyUserInvitationTransfer): void { |
|
74 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($companyUserInvitationTransfer): void { |
|
75 | 75 | $this->setDependencies(); |
76 | 76 | |
77 | 77 | $criteriaFilter = (new CompanyUserInvitationCriteriaFilterTransfer()) |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function testShouldCommitWhenNoErrors(): void |
45 | 45 | { |
46 | - $callback = function (): void { |
|
46 | + $callback = function(): void { |
|
47 | 47 | }; |
48 | 48 | |
49 | 49 | $this->connection |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function testShouldCatchExceptionAndRollback(): void |
68 | 68 | { |
69 | - $callback = function (): void { |
|
69 | + $callback = function(): void { |
|
70 | 70 | throw new Exception('Error when saving'); |
71 | 71 | }; |
72 | 72 |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | protected function addKernelService(ContainerInterface $container): ContainerInterface |
80 | 80 | { |
81 | - $container->set(static::SERVICE_KERNEL, function (ContainerInterface $container) { |
|
81 | + $container->set(static::SERVICE_KERNEL, function(ContainerInterface $container) { |
|
82 | 82 | return new HttpKernel( |
83 | 83 | $this->getEventDispatcher($container), |
84 | 84 | $this->getResolver($container), |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | protected function addRequestStackService(ContainerInterface $container): ContainerInterface |
98 | 98 | { |
99 | - $container->set(static::SERVICE_REQUEST_STACK, function () { |
|
99 | + $container->set(static::SERVICE_REQUEST_STACK, function() { |
|
100 | 100 | return new RequestStack(); |
101 | 101 | }); |
102 | 102 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | protected function addRequestContextService(ContainerInterface $container): ContainerInterface |
112 | 112 | { |
113 | - $container->set(static::SERVICE_REQUEST_CONTEXT, function () { |
|
113 | + $container->set(static::SERVICE_REQUEST_CONTEXT, function() { |
|
114 | 114 | $context = new RequestContext(); |
115 | 115 | |
116 | 116 | $context->setHttpPort($this->getConfig()->getHttpPort()); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | protected function addSubRequestHandlerService(ContainerInterface $container): ContainerInterface |
131 | 131 | { |
132 | - $container->set(static::SERVICE_SUB_REQUEST, function (ContainerInterface $container): SubRequestHandlerInterface { |
|
132 | + $container->set(static::SERVICE_SUB_REQUEST, function(ContainerInterface $container): SubRequestHandlerInterface { |
|
133 | 133 | return new SubRequestHandler($container->get(static::SERVICE_KERNEL)); |
134 | 134 | }); |
135 | 135 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | protected function addCookie(ContainerInterface $container): ContainerInterface |
161 | 161 | { |
162 | - $container->set(static::SERVICE_COOKIES, function () { |
|
162 | + $container->set(static::SERVICE_COOKIES, function() { |
|
163 | 163 | return new ArrayObject(); |
164 | 164 | }); |
165 | 165 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function provide(ContainerInterface $container): ContainerInterface |
31 | 31 | { |
32 | - $container->set(static::SERVICE_FLASH_MESSENGER, function (ContainerInterface $container) { |
|
32 | + $container->set(static::SERVICE_FLASH_MESSENGER, function(ContainerInterface $container) { |
|
33 | 33 | return new FlashMessenger($this->getSession($container)->getFlashBag()); |
34 | 34 | }); |
35 | 35 |