@@ -100,7 +100,7 @@ |
||
100 | 100 | ->getMock(); |
101 | 101 | $leagueBearerTokenValidator->expects($this->once())->method('setPublicKey'); |
102 | 102 | $leagueBearerTokenValidator->expects($this->once())->method('validateAuthorization')->willReturnCallback( |
103 | - function (ServerRequestInterface $request) { |
|
103 | + function(ServerRequestInterface $request) { |
|
104 | 104 | return $request |
105 | 105 | ->withAttribute('oauth_access_token_id', '') |
106 | 106 | ->withAttribute('oauth_client_id', '') |
@@ -78,7 +78,7 @@ |
||
78 | 78 | $indexMock->method('getName')->willReturn($indexName); |
79 | 79 | $clientMock = $this->createClientMock($indexMock); |
80 | 80 | $mappingMock = $this->tester->createMappingMock([ |
81 | - 'toArray' => function () use ($mappings) { |
|
81 | + 'toArray' => function() use ($mappings) { |
|
82 | 82 | return $mappings; |
83 | 83 | }, |
84 | 84 | ]); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | protected function createMappingBuilderMock(array $mappings = []): MappingBuilderInterface |
41 | 41 | { |
42 | 42 | $mappingMock = $this->tester->createMappingMock([ |
43 | - 'toArray' => function () use ($mappings) { |
|
43 | + 'toArray' => function() use ($mappings) { |
|
44 | 44 | return $mappings; |
45 | 45 | }, |
46 | 46 | ]); |
@@ -128,7 +128,7 @@ |
||
128 | 128 | { |
129 | 129 | $this->bulkProductReviewSearchRequestTransfer->requireProductAbstractIds(); |
130 | 130 | |
131 | - return array_map(function (int $productAbstractId) { |
|
131 | + return array_map(function(int $productAbstractId) { |
|
132 | 132 | return (string)$productAbstractId; |
133 | 133 | }, $this->bulkProductReviewSearchRequestTransfer->getProductAbstractIds()); |
134 | 134 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | return $this->get(TranslatorConstants::TRANSLATION_ZED_FILE_PATH_PATTERNS); |
63 | 63 | } |
64 | 64 | |
65 | - return array_map(function (string $projectNamespace) { |
|
65 | + return array_map(function(string $projectNamespace) { |
|
66 | 66 | return sprintf('%s/src/%s/Zed/Translator/data/*/[a-z][a-z]_[A-Z][A-Z].csv', APPLICATION_ROOT_DIR, $projectNamespace); |
67 | 67 | }, $this->getSharedConfig()->getProjectNamespaces()); |
68 | 68 | } |
@@ -79,7 +79,7 @@ |
||
79 | 79 | return []; |
80 | 80 | } |
81 | 81 | |
82 | - return array_map(function ($value) { |
|
82 | + return array_map(function($value) { |
|
83 | 83 | return (int)$value; |
84 | 84 | }, explode(',', $merchantOrderItemIds)); |
85 | 85 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function addGuiTableFactoryService(ContainerInterface $container): ContainerInterface |
48 | 48 | { |
49 | - $container->set(static::SERVICE_GUI_TABLE_FACTORY, function (): GuiTableFactoryInterface { |
|
49 | + $container->set(static::SERVICE_GUI_TABLE_FACTORY, function(): GuiTableFactoryInterface { |
|
50 | 50 | return $this->getFactory()->createGuiTableFactory(); |
51 | 51 | }); |
52 | 52 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | protected function addGuiTableHttpDataRequestExecutorService(ContainerInterface $container): ContainerInterface |
62 | 62 | { |
63 | - $container->set(static::SERVICE_GUI_TABLE_HTTP_DATA_REQUEST_EXECUTOR, function (): GuiTableDataRequestExecutorInterface { |
|
63 | + $container->set(static::SERVICE_GUI_TABLE_HTTP_DATA_REQUEST_EXECUTOR, function(): GuiTableDataRequestExecutorInterface { |
|
64 | 64 | return $this->getFactory()->createGuiTableDataRequestExecutor(); |
65 | 65 | }); |
66 | 66 |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | { |
97 | 97 | Request::setTrustedHosts(['localhost']); |
98 | 98 | |
99 | - $requestFactory = function (array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null) { |
|
99 | + $requestFactory = function(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null) { |
|
100 | 100 | $request = new Request($query, $request, $attributes, $cookies, $files, $server, $content); |
101 | 101 | $request->server->set('SERVER_NAME', 'localhost'); |
102 | 102 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $twigConfig = new TwigConfig(); |
128 | 128 | /** @var \Spryker\Shared\Kernel\AbstractBundleConfig $twigBundleConfigMock */ |
129 | 129 | $twigBundleConfigMock = Stub::make(TwigConfig::class, [ |
130 | - 'getTemplatePaths' => function () use ($twigConfig) { |
|
130 | + 'getTemplatePaths' => function() use ($twigConfig) { |
|
131 | 131 | $paths = $twigConfig->getTemplatePaths(); |
132 | 132 | $paths[] = APPLICATION_VENDOR_DIR . '/spryker/spryker/Bundles/%2$s/src/*/Zed/%1$s/Presentation'; |
133 | 133 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | parent::setUp(); |
42 | 42 | |
43 | - $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) { |
|
43 | + $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) { |
|
44 | 44 | return [ |
45 | 45 | $container->getLocator()->rabbitMq()->client()->createQueueAdapter(), |
46 | 46 | ]; |