Completed
Branch theme-bundle (26965f)
by Kamil
30:47 queued 24s
created
src/Sylius/Component/Shipping/Calculator/DefaultCalculators.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,24 +19,24 @@
 block discarded – undo
19 19
     /**
20 20
      * Flat rate per shipment calculator.
21 21
      */
22
-    const FLAT_RATE           = 'flat_rate';
22
+    const FLAT_RATE = 'flat_rate';
23 23
 
24 24
     /**
25 25
      * Fixed price per item calculator.
26 26
      */
27
-    const PER_ITEM_RATE       = 'per_item_rate';
27
+    const PER_ITEM_RATE = 'per_item_rate';
28 28
 
29 29
     /**
30 30
      * Flexible rate calculator.
31 31
      * Fixed price for first item and constant rate
32 32
      * for each additional item with a limit.
33 33
      */
34
-    const FLEXIBLE_RATE       = 'flexible_rate';
34
+    const FLEXIBLE_RATE = 'flexible_rate';
35 35
 
36 36
     /**
37 37
      * Fixed price per weight calculator.
38 38
      */
39
-    const WEIGHT_RATE         = 'weight_rate';
39
+    const WEIGHT_RATE = 'weight_rate';
40 40
 
41 41
     /**
42 42
      * Flexible prices for weight ranges.
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
     public function getTaxons($taxonomy = null)
152 152
     {
153 153
         if (null !== $taxonomy) {
154
-            return $this->taxons->filter(function (BaseTaxonInterface $taxon) use ($taxonomy) {
154
+            return $this->taxons->filter(function(BaseTaxonInterface $taxon) use ($taxonomy) {
155 155
                 return $taxonomy === strtolower($taxon->getTaxonomy()->getName());
156 156
             });
157 157
         }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductVariant.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -138,10 +138,10 @@  discard block
 block discarded – undo
138 138
             $string .= '(';
139 139
 
140 140
             foreach ($this->getOptions() as $option) {
141
-                $string .= $option->getOption()->getName() . ': ' . $option->getValue() . ', ';
141
+                $string .= $option->getOption()->getName().': '.$option->getValue().', ';
142 142
             }
143 143
 
144
-            $string = substr($string, 0, -2) . ')';
144
+            $string = substr($string, 0, -2).')';
145 145
         }
146 146
 
147 147
         return $string;
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      */
303 303
     public function setSold($sold)
304 304
     {
305
-        $this->sold = (int)$sold;
305
+        $this->sold = (int) $sold;
306 306
 
307 307
         return $this;
308 308
     }
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
      */
329 329
     public function setAvailableOnDemand($availableOnDemand)
330 330
     {
331
-        $this->availableOnDemand = (bool)$availableOnDemand;
331
+        $this->availableOnDemand = (bool) $availableOnDemand;
332 332
 
333 333
         return $this;
334 334
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Order.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      */
274 274
     public function getInventoryUnitsByVariant(ProductVariantInterface $variant)
275 275
     {
276
-        return $this->getInventoryUnits()->filter(function (InventoryUnitInterface $unit) use ($variant) {
276
+        return $this->getInventoryUnits()->filter(function(InventoryUnitInterface $unit) use ($variant) {
277 277
             return $variant === $unit->getStockable();
278 278
         });
279 279
     }
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
             return false;
342 342
         }
343 343
 
344
-        return $this->payments->filter(function (BasePaymentInterface $payment) use ($state) {
344
+        return $this->payments->filter(function(BasePaymentInterface $payment) use ($state) {
345 345
             return $payment->getState() === $state;
346 346
         })->last();
347 347
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Promotion/Action/ShippingDiscountAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
         $adjustment = $this->createAdjustment($promotion);
37 37
         $adjustmentAmount = (int) round($subject->getAdjustmentsTotal(AdjustmentInterface::SHIPPING_ADJUSTMENT) * $configuration['percentage']);
38
-        $adjustment->setAmount(- $adjustmentAmount);
38
+        $adjustment->setAmount(-$adjustmentAmount);
39 39
 
40 40
         $subject->addAdjustment($adjustment);
41 41
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/Model/PaymentMethod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
      */
127 127
     public function setEnabled($enabled)
128 128
     {
129
-        $this->enabled = (Boolean)$enabled;
129
+        $this->enabled = (Boolean) $enabled;
130 130
     }
131 131
 
132 132
     /**
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Repository/InMemoryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      */
87 87
     public function remove(ResourceInterface $resource)
88 88
     {
89
-        $newResources = array_filter($this->findAll(), function ($object) use ($resource) {
89
+        $newResources = array_filter($this->findAll(), function($object) use ($resource) {
90 90
             return $object !== $resource;
91 91
         });
92 92
 
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/spec/Repository/InMemoryRepositorySpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 use Sylius\Component\Resource\Repository\InMemoryRepository;
22 22
 use Sylius\Component\Resource\Repository\RepositoryInterface;
23 23
 
24
-require_once __DIR__ . '/../Fixtures/SampleResourceInterface.php';
24
+require_once __DIR__.'/../Fixtures/SampleResourceInterface.php';
25 25
 
26 26
 /**
27 27
  * @author Jan Góralski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -481,7 +481,7 @@
 block discarded – undo
481 481
             return null;
482 482
         }
483 483
 
484
-        $filtered = $this->oauthAccounts->filter(function (UserOAuthInterface $oauth) use ($provider) {
484
+        $filtered = $this->oauthAccounts->filter(function(UserOAuthInterface $oauth) use ($provider) {
485 485
             return $provider === $oauth->getProvider();
486 486
         });
487 487
 
Please login to merge, or discard this patch.