Completed
Branch theme-bundle (26965f)
by Kamil
30:47 queued 24s
created
src/Sylius/Component/Inventory/spec/Operator/BackordersHandlerSpec.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     function it_is_initializable()
33 33
     {
34 34
         $this->shouldHaveType('Sylius\Component\Inventory\Operator\BackordersHandler');
35
-   }
35
+    }
36 36
 
37 37
     function it_implements_Sylius_inventory_backorders_handler_interface()
38 38
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/OrderItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
             return $this->adjustments;
144 144
         }
145 145
 
146
-        return $this->adjustments->filter(function (AdjustmentInterface $adjustment) use ($type) {
146
+        return $this->adjustments->filter(function(AdjustmentInterface $adjustment) use ($type) {
147 147
             return $type === $adjustment->getType();
148 148
         });
149 149
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@
 block discarded – undo
281 281
             return $this->adjustments;
282 282
         }
283 283
 
284
-        return $this->adjustments->filter(function (AdjustmentInterface $adjustment) use ($type) {
284
+        return $this->adjustments->filter(function(AdjustmentInterface $adjustment) use ($type) {
285 285
             return $type === $adjustment->getType();
286 286
         });
287 287
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/Product.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
      */
351 351
     public function getVariants()
352 352
     {
353
-        return $this->variants->filter(function (BaseVariantInterface $variant) {
353
+        return $this->variants->filter(function(BaseVariantInterface $variant) {
354 354
             return !$variant->isDeleted() && !$variant->isMaster();
355 355
         });
356 356
     }
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
      */
361 361
     public function getAvailableVariants()
362 362
     {
363
-        return $this->variants->filter(function (BaseVariantInterface $variant) {
363
+        return $this->variants->filter(function(BaseVariantInterface $variant) {
364 364
             return !$variant->isDeleted() && !$variant->isMaster() && $variant->isAvailable();
365 365
         });
366 366
     }
@@ -514,8 +514,8 @@  discard block
 block discarded – undo
514 514
     {
515 515
         $this->deletedAt = $deletedAt;
516 516
 
517
-        if(null === $deletedAt) {
518
-            foreach($this->variants as $variant) {
517
+        if (null === $deletedAt) {
518
+            foreach ($this->variants as $variant) {
519 519
                 $variant->setDeletedAt(null);
520 520
             }
521 521
         }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/DateRange.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
     public function isInRange()
48 48
     {
49
-        if($this->start > new \DateTime() || ($this->end !== null && $this->end < new \DateTime())){
49
+        if ($this->start > new \DateTime() || ($this->end !== null && $this->end < new \DateTime())) {
50 50
             return false;
51 51
         }
52 52
         return true;
Please login to merge, or discard this patch.
src/Sylius/Component/Pricing/spec/Calculator/VolumeBasedCalculatorSpec.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     function it_assumes_quantity_is_1_if_not_provided_in_context(PriceableInterface $priceable)
35 35
     {
36 36
         $configuration = array(
37
-            array('min' => 0,  'max' => 9,  'price' => 1699),
37
+            array('min' => 0, 'max' => 9, 'price' => 1699),
38 38
             array('min' => 10, 'max' => 19, 'price' => 1499),
39 39
             array('min' => 20, 'max' => 29, 'price' => 1299),
40 40
         );
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     function it_returns_the_price_based_on_the_quantity(PriceableInterface $priceable)
46 46
     {
47 47
         $configuration = array(
48
-            array('min' => 0,  'max' => 9,  'price' => 1699),
48
+            array('min' => 0, 'max' => 9, 'price' => 1699),
49 49
             array('min' => 10, 'max' => 19, 'price' => 1499),
50 50
             array('min' => 20, 'max' => 29, 'price' => 1299),
51 51
         );
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
     function it_returns_the_correct_price_for_highest_quantity_range(PriceableInterface $priceable)
58 58
     {
59 59
         $configuration = array(
60
-            array('min' => 0,  'max' => 9,    'price' => 1699),
61
-            array('min' => 10, 'max' => 19,   'price' => 1499),
62
-            array('min' => 20, 'max' => 29,   'price' => 1299),
60
+            array('min' => 0, 'max' => 9, 'price' => 1699),
61
+            array('min' => 10, 'max' => 19, 'price' => 1499),
62
+            array('min' => 20, 'max' => 29, 'price' => 1299),
63 63
             array('min' => 30, 'max' => null, 'price' => 1099),
64 64
         );
65 65
 
Please login to merge, or discard this patch.
src/Sylius/Component/Shipping/spec/Calculator/VolumeRateCalculatorSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $subject->getShippingVolume()->willReturn(100);
30 30
 
31
-        $this->calculate($subject, array('amount' => 500, 'division' => 2))->shouldReturn(500 * 100/2);
31
+        $this->calculate($subject, array('amount' => 500, 'division' => 2))->shouldReturn(500 * 100 / 2);
32 32
     }
33 33
 
34 34
     function its_calculated_value_should_be_an_integer(ShippingSubjectInterface $subject)
Please login to merge, or discard this patch.
src/Sylius/Component/Shipping/spec/Calculator/WeightRateCalculatorSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         $subject->getShippingWeight()->willReturn(10);
41 41
 
42
-        $this->calculate($subject, array('fixed' => 200, 'variable' => 500, 'division' => 1))->shouldReturn(200 + 500*10);
42
+        $this->calculate($subject, array('fixed' => 200, 'variable' => 500, 'division' => 1))->shouldReturn(200 + 500 * 10);
43 43
     }
44 44
 
45 45
     function its_calculated_value_should_be_an_integer(ShippingSubjectInterface $subject)
Please login to merge, or discard this patch.
src/Sylius/Component/Shipping/Calculator/PerItemRateCalculator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function calculate(ShippingSubjectInterface $subject, array $configuration)
25 25
     {
26
-        return (int)($configuration['amount'] * $subject->getShippingItemCount());
26
+        return (int) ($configuration['amount'] * $subject->getShippingItemCount());
27 27
     }
28 28
 
29 29
     /**
Please login to merge, or discard this patch.