Completed
Pull Request — master (#33)
by Rafał
03:14
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.
Form/Type/SubscriptionEditType.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             'invalid_message' => 'paywall.manage.error.currency',
31 31
             'required' => true,
32 32
         ))
33
-         ->add('type', 'choice', array(
33
+            ->add('type', 'choice', array(
34 34
             'label' => 'paywall.manage.label.paymenttype',
35 35
             'choices' => array(
36 36
                 'P' => 'paywall.manage.label.paid',
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.
EventListener/PermissionsListener.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -15,30 +15,30 @@  discard block
 block discarded – undo
15 15
 class PermissionsListener
16 16
 {
17 17
     /**
18
-      * TranslatorInterface.
19
-      *
20
-      * @var Translator
21
-      */
22
-     protected $translator;
18
+     * TranslatorInterface.
19
+     *
20
+     * @var Translator
21
+     */
22
+        protected $translator;
23 23
 
24
-     /**
25
-      * Construct.
26
-      *
27
-      * @param TranslatorInterface $translator Translator object
28
-      */
29
-     public function __construct(TranslatorInterface $translator)
30
-     {
31
-         $this->translator = $translator;
32
-     }
24
+        /**
25
+         * Construct.
26
+         *
27
+         * @param TranslatorInterface $translator Translator object
28
+         */
29
+        public function __construct(TranslatorInterface $translator)
30
+        {
31
+            $this->translator = $translator;
32
+        }
33 33
 
34
-     /**
35
-      * Register plugin permissions in Newscoop ACL.
36
-      *
37
-      * @param PluginPermissionsEvent $event
38
-      */
39
-     public function registerPermissions(PluginPermissionsEvent $event)
40
-     {
41
-         $event->registerPermissions($this->translator->trans('paywall.title'), array(
34
+        /**
35
+         * Register plugin permissions in Newscoop ACL.
36
+         *
37
+         * @param PluginPermissionsEvent $event
38
+         */
39
+        public function registerPermissions(PluginPermissionsEvent $event)
40
+        {
41
+            $event->registerPermissions($this->translator->trans('paywall.title'), array(
42 42
             Permissions::SUBSCRIPTION_ADD => $this->translator->trans('paywall.permissions.add'),
43 43
             Permissions::SUBSCRIPTIONS_MANAGE => $this->translator->trans('paywall.permissions.manage'),
44 44
             Permissions::SUBSCRIPTIONS_VIEW => $this->translator->trans('paywall.permissions.list'),
@@ -52,6 +52,6 @@  discard block
 block discarded – undo
52 52
             Permissions::PAYMENTS_VIEW => $this->translator->trans('paywall.permissions.payments.main'),
53 53
             Permissions::PAYMENTS_MANAGE => $this->translator->trans('paywall.permissions.payments.manage'),
54 54
             Permissions::SIDEBAR => $this->translator->trans('paywall.permissions.sidebar'),
55
-         ));
56
-     }
55
+            ));
56
+        }
57 57
 }
Please login to merge, or discard this patch.