Completed
Push — master ( 837000...3a864f )
by Rafał
8s
created
Entity/UserSubscription.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -795,7 +795,7 @@
 block discarded – undo
795 795
             return $this->modifications;
796 796
         }
797 797
 
798
-        return $this->modifications->filter(function (Modification $modification) use ($type) {
798
+        return $this->modifications->filter(function(Modification $modification) use ($type) {
799 799
             return $type === $modification->getLabel();
800 800
         });
801 801
     }
Please login to merge, or discard this patch.
Form/Type/OrderItemType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             ),
57 57
         ));
58 58
 
59
-        $formModifier = function (FormInterface $form, Subscription $subscription = null) {
59
+        $formModifier = function(FormInterface $form, Subscription $subscription = null) {
60 60
             $periods = null === $subscription ? array() : $subscription->getRanges();
61 61
 
62 62
             $form->add('duration', 'entity', array(
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         $builder->addEventListener(
75 75
             FormEvents::PRE_SET_DATA,
76
-            function (FormEvent $event) use ($formModifier) {
76
+            function(FormEvent $event) use ($formModifier) {
77 77
                 $item = $event->getData();
78 78
                 $subscription = null;
79 79
                 if ($item) {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
         $builder->get('subscription')->addEventListener(
87 87
             FormEvents::POST_SUBMIT,
88
-            function (FormEvent $event) use ($formModifier) {
88
+            function(FormEvent $event) use ($formModifier) {
89 89
                 $subscription = $event->getForm()->getData();
90 90
                 $formModifier($event->getForm()->getParent(), $subscription);
91 91
             }
Please login to merge, or discard this patch.
Services/PaywallService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function filterRanges(Subscription $subscription, $periodId)
39 39
     {
40
-        $ranges = $subscription->getRanges()->filter(function (Duration $duration) use ($periodId) {
40
+        $ranges = $subscription->getRanges()->filter(function(Duration $duration) use ($periodId) {
41 41
             return $duration->getId() == $periodId;
42 42
         });
43 43
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             foreach ($orderItems as $value) {
97 97
                 $parent = $item->getParent();
98 98
                 if ($item->getSubscription()->getId() == $value->getSubscription()->getId() &&
99
-                    $parent  == $value
99
+                    $parent == $value
100 100
                 ) {
101 101
                     $value->setProlonged(true);
102 102
                     $value->setToPay($parent->getToPay());
Please login to merge, or discard this patch.
Resources/smartyPlugins/block.subscribe_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             }
99 99
 
100 100
             if ($options !== '') {
101
-                $html  .= '<select name="batchorder['.$subscription['id'].']"><option value="">'.$p_params['choose_text'].'</option>'.$options.'</select><br>';
101
+                $html .= '<select name="batchorder['.$subscription['id'].']"><option value="">'.$p_params['choose_text'].'</option>'.$options.'</select><br>';
102 102
             }
103 103
         }
104 104
     }
Please login to merge, or discard this patch.