Passed
Pull Request — master (#5)
by Dominique
38:29
created
Bundles/Tax/src/Spryker/Zed/Tax/Persistence/TaxRepository.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,16 +54,16 @@
 block discarded – undo
54 54
      */
55 55
     public function findTaxRate(int $idTaxRate): ?TaxRateTransfer
56 56
     {
57
-         $taxRateEntity = $this->getFactory()->createTaxRateQuery()->findOneByIdTaxRate($idTaxRate);
57
+            $taxRateEntity = $this->getFactory()->createTaxRateQuery()->findOneByIdTaxRate($idTaxRate);
58 58
 
59 59
         if ($taxRateEntity === null) {
60 60
             return $taxRateEntity;
61 61
         }
62 62
 
63
-         return $this->getFactory()->createTaxRateMapper()->mapTaxRateEntityToTaxRateTransfer(
64
-             $taxRateEntity,
65
-             new TaxRateTransfer()
66
-         );
63
+            return $this->getFactory()->createTaxRateMapper()->mapTaxRateEntityToTaxRateTransfer(
64
+                $taxRateEntity,
65
+                new TaxRateTransfer()
66
+            );
67 67
     }
68 68
 
69 69
     /**
Please login to merge, or discard this patch.
Business/Model/PriceProductAbstractStorageWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             return;
42 42
         }
43 43
 
44
-        $priceKeys = array_map(function (PriceProductMerchantRelationshipStorageTransfer $priceProductMerchantRelationshipStorageTransfer) {
44
+        $priceKeys = array_map(function(PriceProductMerchantRelationshipStorageTransfer $priceProductMerchantRelationshipStorageTransfer) {
45 45
             return $priceProductMerchantRelationshipStorageTransfer->getPriceKey();
46 46
         }, $priceProductMerchantRelationshipStorageTransfers);
47 47
 
Please login to merge, or discard this patch.
Zed/PriceProductMerchantRelationshipStorage/Business/Model/PriceGrouper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      */
67 67
     protected function filterPriceData(array $priceData, string $excludeKey): array
68 68
     {
69
-        $priceData = array_filter($priceData, function ($v, $k) use ($excludeKey) {
69
+        $priceData = array_filter($priceData, function($v, $k) use ($excludeKey) {
70 70
             if ($k === $excludeKey) {
71 71
                 return true;
72 72
             }
Please login to merge, or discard this patch.
Business/Model/PriceProductConcreteStorageWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             return;
42 42
         }
43 43
 
44
-        $priceKeys = array_map(function (PriceProductMerchantRelationshipStorageTransfer $priceProductMerchantRelationshipStorageTransfer) {
44
+        $priceKeys = array_map(function(PriceProductMerchantRelationshipStorageTransfer $priceProductMerchantRelationshipStorageTransfer) {
45 45
             return $priceProductMerchantRelationshipStorageTransfer->getPriceKey();
46 46
         }, $priceProductMerchantRelationshipStorageTransfers);
47 47
 
Please login to merge, or discard this patch.
Communication/Plugin/Event/Listener/ProductStorageListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             throw new SkippedTestError('Warning: not in suite environment');
48 48
         }
49 49
 
50
-        $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) {
50
+        $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) {
51 51
             return [
52 52
                 $container->getLocator()->rabbitMq()->client()->createQueueAdapter(),
53 53
             ];
Please login to merge, or discard this patch.
Communication/Plugin/Event/Listener/GlossaryStorageListenerTest.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.
DocumentationGeneratorRestApi/Business/Analyzer/ResourcePluginAnalyzer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
     protected function getResourceIdFromResourceType(string $resourceType): string
238 238
     {
239 239
         $resourceTypeExploded = explode('-', $resourceType);
240
-        $resourceTypeCamelCased = array_map(function ($value) {
240
+        $resourceTypeCamelCased = array_map(function($value) {
241 241
             return ucfirst($this->textInflector->singularize($value));
242 242
         }, $resourceTypeExploded);
243 243
 
Please login to merge, or discard this patch.
Zed/DocumentationGeneratorRestApi/Business/Finder/GlueControllerFinder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     protected function getControllerSourceDirectories(string $moduleName): array
97 97
     {
98
-        $directories = array_map(function ($directory) use ($moduleName) {
98
+        $directories = array_map(function($directory) use ($moduleName) {
99 99
             return sprintf($directory, $moduleName);
100 100
         }, $this->sourceDirectories);
101 101
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     protected function getExistingSourceDirectories(array $dirs): array
111 111
     {
112
-        return array_filter($dirs, function ($directory) {
112
+        return array_filter($dirs, function($directory) {
113 113
             return (bool)glob($directory, GLOB_ONLYDIR);
114 114
         });
115 115
     }
Please login to merge, or discard this patch.
Processor/Validator/Constraint/RestRequestValidatorConstraintResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
      */
119 119
     protected function instantiateConstraintFromConfig(): callable
120 120
     {
121
-        return function (array $validatorConfig): Constraint {
121
+        return function(array $validatorConfig): Constraint {
122 122
             $shortClassName = key($validatorConfig);
123 123
             $parameters = $this->getParameters($validatorConfig);
124 124
 
Please login to merge, or discard this patch.