@@ -795,7 +795,7 @@ |
||
| 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 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 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 |
||
| 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()); |
@@ -98,7 +98,7 @@ |
||
| 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 | } |