Completed
Push — master ( 0729b3...dbaae6 )
by Kamil
18:26
created
src/Sylius/Component/Core/Model/Product.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -368,7 +368,7 @@
 block discarded – undo
368 368
      */
369 369
     public function getMainTaxon()
370 370
     {
371
-       return $this->mainTaxon;
371
+        return $this->mainTaxon;
372 372
     }
373 373
 
374 374
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function getMetadataIdentifier()
102 102
     {
103
-        return $this->getMetadataClassIdentifier() . '-' . $this->getId();
103
+        return $this->getMetadataClassIdentifier().'-'.$this->getId();
104 104
     }
105 105
 
106 106
     /**
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     public function getTaxons($taxonomy = null)
168 168
     {
169 169
         if (null !== $taxonomy) {
170
-            return $this->taxons->filter(function (BaseTaxonInterface $taxon) use ($taxonomy) {
170
+            return $this->taxons->filter(function(BaseTaxonInterface $taxon) use ($taxonomy) {
171 171
                 return $taxonomy === strtolower($taxon->getTaxonomy()->getName());
172 172
             });
173 173
         }
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/Core/spec/Model/CustomerSpec.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Sylius\Component\Core\Model\CustomerInterface;
18 18
 
19 19
 /**
20
-
21 20
  * @author Alexandre Bacco <[email protected]>
22 21
  */
23 22
 class CustomerSpec extends ObjectBehavior
Please login to merge, or discard this patch.
src/Sylius/Component/Core/spec/Model/ProductSpec.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
 
164 164
     function it_has_no_main_taxon_by_default()
165 165
     {
166
-      $this->getMainTaxon()->shouldReturn(null);
166
+        $this->getMainTaxon()->shouldReturn(null);
167 167
     }
168 168
 
169 169
     function it_sets_main_taxon(TaxonInterface $taxon)
Please login to merge, or discard this patch.
src/Sylius/Component/Taxation/Model/TaxCategory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     public function getCode()
82 82
     {
83
-         return $this->code;
83
+            return $this->code;
84 84
     }
85 85
 
86 86
     /**
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/spec/Model/PaymentSpec.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@
 block discarded – undo
48 48
 
49 49
     function its_payment_method_is_mutable(PaymentMethodInterface $method)
50 50
     {
51
-      $this->setMethod($method);
52
-      $this->getMethod()->shouldReturn($method);
51
+        $this->setMethod($method);
52
+        $this->getMethod()->shouldReturn($method);
53 53
     }
54 54
 
55 55
     function it_has_no_source_by_default()
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.