Completed
Pull Request — master (#18)
by Rémi
02:13
created
lib/Api/Plan.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Zoho\Subscription\Api;
5 5
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     {
126 126
         foreach ($filters as $key => $filter) {
127 127
             if (array_key_exists($key, current($plans))) {
128
-                $plans = array_filter($plans, function ($element) use ($key, $filter) {
128
+                $plans = array_filter($plans, function($element) use ($key, $filter) {
129 129
                     return $element[$key] == $filter;
130 130
                 });
131 131
             }
@@ -141,6 +141,6 @@  discard block
 block discarded – undo
141 141
     public function getPriceByPlanCode(string $planCode): string
142 142
     {
143 143
         $plan = $this->getPlan($planCode);
144
-        return (array_key_exists('recurring_price',$plan)) ? $plan['recurring_price'] : '';
144
+        return (array_key_exists('recurring_price', $plan)) ? $plan['recurring_price'] : '';
145 145
     }
146 146
 }
Please login to merge, or discard this patch.