Completed
Push — master ( d998d0...abb41b )
by Kamil
38:34
created
src/Sylius/Component/Product/Model/Product.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
      */
337 337
     public function getVariants()
338 338
     {
339
-        return $this->variants->filter(function (BaseVariantInterface $variant) {
339
+        return $this->variants->filter(function(BaseVariantInterface $variant) {
340 340
             return !$variant->isDeleted() && !$variant->isMaster();
341 341
         });
342 342
     }
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
      */
347 347
     public function getAvailableVariants()
348 348
     {
349
-        return $this->variants->filter(function (BaseVariantInterface $variant) {
349
+        return $this->variants->filter(function(BaseVariantInterface $variant) {
350 350
             return !$variant->isDeleted() && !$variant->isMaster() && $variant->isAvailable();
351 351
         });
352 352
     }
Please login to merge, or discard this patch.
Bundle/ThemeBundle/Translation/Finder/OrderingTranslationFilesFinder.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
          * PHP 5.* bug, fixed in PHP 7: https://bugs.php.net/bug.php?id=50688
40 40
          * "usort(): Array was modified by the user comparison function"
41 41
          */
42
-        @usort($files, function ($firstFile, $secondFile) use ($theme) {
42
+        @usort($files, function($firstFile, $secondFile) use ($theme) {
43 43
             $firstFile = str_replace($theme->getPath(), '', $firstFile);
44 44
             $secondFile = str_replace($theme->getPath(), '', $secondFile);
45 45
 
Please login to merge, or discard this patch.
ThemeBundle/spec/Translation/Finder/OrderingTranslationFilesFinderSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     public function getMatchers()
56 56
     {
57 57
         return [
58
-            'haveFirstElement' => function ($subject, $element) {
58
+            'haveFirstElement' => function($subject, $element) {
59 59
                 if ($element !== reset($subject)) {
60 60
                     throw new \InvalidArgumentException(sprintf(
61 61
                         'Expected "%s" as the first element, actual value was "%s".',
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/spec/Distributor/IntegerDistributorSpec.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,15 +33,15 @@
 block discarded – undo
33 33
 
34 34
     function it_distributes_simple_integers()
35 35
     {
36
-        $this->distribute(4, 0)->shouldReturn(array(0, 0, 0, 0));;
37
-        $this->distribute(4, 1000)->shouldReturn(array(250, 250, 250, 250));;
38
-        $this->distribute(4, -1000)->shouldReturn(array(-250, -250, -250, -250));;
36
+        $this->distribute(4, 0)->shouldReturn(array(0, 0, 0, 0)); ;
37
+        $this->distribute(4, 1000)->shouldReturn(array(250, 250, 250, 250)); ;
38
+        $this->distribute(4, -1000)->shouldReturn(array(-250, -250, -250, -250)); ;
39 39
     }
40 40
 
41 41
     function it_distributes_integers_that_cannot_be_split_equally()
42 42
     {
43
-        $this->distribute(3, 1000)->shouldReturn(array(334, 333, 333));;
44
-        $this->distribute(3, -1000)->shouldReturn(array(-334, -333, -333));;
43
+        $this->distribute(3, 1000)->shouldReturn(array(334, 333, 333)); ;
44
+        $this->distribute(3, -1000)->shouldReturn(array(-334, -333, -333)); ;
45 45
     }
46 46
 
47 47
     function it_throws_exception_if_number_of_targets_is_not_integer_or_below_1()
Please login to merge, or discard this patch.
Sylius/Bundle/OrderBundle/spec/Twig/AggregateAdjustmentsExtensionSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     public function getMatchers()
66 66
     {
67 67
         return [
68
-            'haveFunction' => function ($subject, $key) {
68
+            'haveFunction' => function($subject, $key) {
69 69
 
70 70
                 if (!is_array($subject)) {
71 71
                     throw new FailureException('Subject of "hasFunction" matcher must be an array');
Please login to merge, or discard this patch.