Failed Conditions
Branch master (6be865)
by Anton
53:12
created
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.
src/Spryker/Client/CmsSlotStorage/CmsSlotStorageDependencyProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     protected function addSynchronizationService(Container $container): Container
41 41
     {
42
-        $container->set(static::SERVICE_SYNCHRONIZATION, function (Container $container) {
42
+        $container->set(static::SERVICE_SYNCHRONIZATION, function(Container $container) {
43 43
             return new CmsSlotStorageToSynchronizationServiceBridge($container->getLocator()->synchronization()->service());
44 44
         });
45 45
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     protected function addStorageClient(Container $container): Container
55 55
     {
56
-        $container->set(static::CLIENT_STORAGE, function (Container $container) {
56
+        $container->set(static::CLIENT_STORAGE, function(Container $container) {
57 57
             return new CmsSlotStorageToStorageClientBridge($container->getLocator()->storage()->client());
58 58
         });
59 59
 
Please login to merge, or discard this patch.
src/Spryker/Zed/CmsSlotStorage/CmsSlotStorageDependencyProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected function addCmsSlotFacade(Container $container): Container
58 58
     {
59
-        $container->set(static::FACADE_CMS_SLOT, function (Container $container) {
59
+        $container->set(static::FACADE_CMS_SLOT, function(Container $container) {
60 60
             return new CmsSlotStorageToCmsSlotFacadeBridge($container->getLocator()->cmsSlot()->facade());
61 61
         });
62 62
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     protected function addEventBehaviorFacade(Container $container): Container
72 72
     {
73
-        $container->set(static::FACADE_EVENT_BEHAVIOR, function (Container $container) {
73
+        $container->set(static::FACADE_EVENT_BEHAVIOR, function(Container $container) {
74 74
             return new CmsSlotStorageToEventBehaviorFacadeBridge($container->getLocator()->eventBehavior()->facade());
75 75
         });
76 76
 
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.
Yves/ErrorHandler/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.
ShipmentGui/Communication/Form/ShipmentCarrier/ShipmentCarrierFormType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
             'constraints' => [
79 79
                 new NotBlank(),
80 80
                 new Callback([
81
-                    'callback' => function (string $carrierName, ExecutionContextInterface $context): void {
81
+                    'callback' => function(string $carrierName, ExecutionContextInterface $context): void {
82 82
                         $shipmentCarrierRequestTransfer = $this->createShipmentCarrierRequestTransfer($carrierName, $context);
83 83
 
84 84
                         if ($this->getFactory()->getShipmentFacade()->findShipmentCarrier($shipmentCarrierRequestTransfer)) {
Please login to merge, or discard this patch.
src/Spryker/Zed/Shipment/Business/ShipmentMethod/ShipmentMethodDeleter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             return false;
54 54
         }
55 55
 
56
-        $this->getTransactionHandler()->handleTransaction(function () use ($idShipmentMethod): void {
56
+        $this->getTransactionHandler()->handleTransaction(function() use ($idShipmentMethod): void {
57 57
             $this->executeDeleteShipmentMethodTransaction($idShipmentMethod);
58 58
         });
59 59
 
Please login to merge, or discard this patch.
src/Spryker/Zed/Shipment/Business/ShipmentMethod/ShipmentMethodCreator.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
     public function createShipmentMethod(ShipmentMethodTransfer $shipmentMethodTransfer): ?int
58 58
     {
59
-        return $this->getTransactionHandler()->handleTransaction(function () use ($shipmentMethodTransfer): ?int {
59
+        return $this->getTransactionHandler()->handleTransaction(function() use ($shipmentMethodTransfer) : ?int {
60 60
             return $this->executeCreateShipmentMethodTransaction($shipmentMethodTransfer);
61 61
         });
62 62
     }
Please login to merge, or discard this patch.