Passed
Push — master ( a9f76a...c7e826 )
by
unknown
50:44
created
Zed/Gui/Communication/Plugin/Twig/Buttons/Form/SubmitButtonTwigPlugin.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
      */
47 47
     protected function getZedSubmitButtonFunction(Environment $twig): TwigFunction
48 48
     {
49
-        return new TwigFunction(static::FUNCTION_NAME_SUBMIT_BUTTON, function (string $value, array $attr = []) use ($twig) {
49
+        return new TwigFunction(static::FUNCTION_NAME_SUBMIT_BUTTON, function(string $value, array $attr = []) use ($twig) {
50 50
             return $twig->render(
51 51
                 $this->getConfig()->getSubmitButtonDefaultTemplatePath(),
52 52
                 [
Please login to merge, or discard this patch.
Spryker/Zed/Gui/Communication/Plugin/Twig/Buttons/AbstractButtonTwig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      */
62 62
     protected function getButtonGroupFunction(): TwigFunction
63 63
     {
64
-        return new TwigFunction($this->getFunctionName(), function ($url, $title, $options = []) {
64
+        return new TwigFunction($this->getFunctionName(), function($url, $title, $options = []) {
65 65
             if (!array_key_exists(ButtonUrlGenerator::ICON, $options)) {
66 66
                 $options[ButtonUrlGenerator::ICON] = $this->getIcon();
67 67
             }
Please login to merge, or discard this patch.
Communication/Plugin/ServiceProvider/FormTypeExtensionServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function register(Application $app)
27 27
     {
28
-        $app['form.type.extensions'] = $app->share(function () {
28
+        $app['form.type.extensions'] = $app->share(function() {
29 29
             return [
30 30
                 new NoValidateTypeExtension(),
31 31
             ];
Please login to merge, or discard this patch.
Bundles/CmsBlock/src/Spryker/Zed/CmsBlock/Business/Model/CmsBlockWriter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function activateById(int $idCmsBlock): void
99 99
     {
100
-        $this->handleDatabaseTransaction(function () use ($idCmsBlock) {
100
+        $this->handleDatabaseTransaction(function() use ($idCmsBlock) {
101 101
             $this->updateIsActiveByIdTransaction($idCmsBlock, true);
102 102
             $this->touchFacade->touchActive(CmsBlockConfig::RESOURCE_TYPE_CMS_BLOCK, $idCmsBlock);
103 103
         });
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function deactivateById(int $idCmsBlock): void
112 112
     {
113
-        $this->handleDatabaseTransaction(function () use ($idCmsBlock) {
113
+        $this->handleDatabaseTransaction(function() use ($idCmsBlock) {
114 114
             $this->updateIsActiveByIdTransaction($idCmsBlock, false);
115 115
             $this->touchFacade->touchDeleted(CmsBlockConfig::RESOURCE_TYPE_CMS_BLOCK, $idCmsBlock);
116 116
         });
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             );
138 138
         }
139 139
 
140
-        $this->handleDatabaseTransaction(function () use ($cmsBlockTransfer, $spyCmsBlock) {
140
+        $this->handleDatabaseTransaction(function() use ($cmsBlockTransfer, $spyCmsBlock) {
141 141
             $this->updateCmsBlockTransaction($cmsBlockTransfer, $spyCmsBlock);
142 142
             $this->updateCmsBlockPluginsTransaction($cmsBlockTransfer);
143 143
         });
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             $cmsBlockTransfer->setKey($this->cmsBlockKeyProvider->generateKey());
159 159
         }
160 160
 
161
-        $this->handleDatabaseTransaction(function () use ($cmsBlockTransfer) {
161
+        $this->handleDatabaseTransaction(function() use ($cmsBlockTransfer) {
162 162
             $this->createCmsBlockTransaction($cmsBlockTransfer);
163 163
             $this->updateCmsBlockPluginsTransaction($cmsBlockTransfer);
164 164
         });
Please login to merge, or discard this patch.
src/Spryker/Zed/CmsBlock/Business/Model/CmsBlockStoreRelationMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     protected function selectIdStores(ArrayObject $storeTransferCollection): array
62 62
     {
63
-        return array_map(function (StoreTransfer $storeTransfer) {
63
+        return array_map(function(StoreTransfer $storeTransfer) {
64 64
             return $storeTransfer->getIdStore();
65 65
         }, $storeTransferCollection->getArrayCopy());
66 66
     }
Please login to merge, or discard this patch.
CmsBlock/src/Spryker/Zed/CmsBlock/Business/Model/CmsBlockGlossaryWriter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             return;
104 104
         }
105 105
 
106
-        $this->handleDatabaseTransaction(function () use ($glossaryKeys) {
106
+        $this->handleDatabaseTransaction(function() use ($glossaryKeys) {
107 107
             $this->deleteGlossaryKeysTransaction($glossaryKeys);
108 108
         });
109 109
     }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function saveGlossary(CmsBlockGlossaryTransfer $cmsBlockGlossaryTransfer): CmsBlockGlossaryTransfer
117 117
     {
118
-        $this->handleDatabaseTransaction(function () use ($cmsBlockGlossaryTransfer) {
118
+        $this->handleDatabaseTransaction(function() use ($cmsBlockGlossaryTransfer) {
119 119
             $this->saveCmsGlossaryTransaction($cmsBlockGlossaryTransfer);
120 120
         });
121 121
 
Please login to merge, or discard this patch.
src/Spryker/Client/CmsBlockStorage/Storage/CmsBlockStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $results = $this->storageClient->getMulti($storageKeys) ?: [];
129 129
         $results = array_values(array_filter($results));
130 130
 
131
-        $blocks = array_map(function ($result) {
131
+        $blocks = array_map(function($result) {
132 132
             return $this->utilEncodingService->decodeJson($result, true);
133 133
         }, $results);
134 134
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         $results = $this->storageClient->getMulti($blockNameStorageKeys);
159 159
         $results = array_values(array_filter($results));
160 160
 
161
-        $blockKeys = array_map(function ($result) {
161
+        $blockKeys = array_map(function($result) {
162 162
             $mappingData = $this->utilEncodingService->decodeJson($result, true);
163 163
 
164 164
             return $mappingData['id'] ?? null;
Please login to merge, or discard this patch.
Communication/Plugin/Event/Listener/CmsSlotStoragePublishListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
             ];
Please login to merge, or discard this patch.
Communication/Plugin/Application/ErrorHandlerApplicationPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $userPath = $this->getConfig()->getUserBasePath();
61 61
         $handler = new PrettyPageHandler();
62 62
         if ($userPath) {
63
-            $handler->setEditor(function ($file, $line) use ($userPath) {
63
+            $handler->setEditor(function($file, $line) use ($userPath) {
64 64
                 $serverPath = $this->getConfig()->getServerBasePath();
65 65
                 $file = str_replace($serverPath, $userPath, $file);
66 66
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     protected function getErrorLoggerCallbackHandler(): HandlerInterface
88 88
     {
89
-        return new CallbackHandler(function ($exception) {
89
+        return new CallbackHandler(function($exception) {
90 90
             ErrorLogger::getInstance()->log($exception);
91 91
         });
92 92
     }
Please login to merge, or discard this patch.