@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | $paypalProduct = PaypalProduct::where($product)->first(); |
| 30 | 30 | |
| 31 | - if (! $paypalProduct) { |
|
| 31 | + if (!$paypalProduct) { |
|
| 32 | 32 | $pp = new PaypalSubscription(); |
| 33 | 33 | $response = $pp->createProduct($product); |
| 34 | 34 | $product['paypal_id'] = $response['id']; |
@@ -247,7 +247,7 @@ |
||
| 247 | 247 | foreach ($plans as $plan) { |
| 248 | 248 | $paypalPlan = PaypalPlan::where('name', $plan['name'])->first(); |
| 249 | 249 | |
| 250 | - if (! $paypalPlan) { |
|
| 250 | + if (!$paypalPlan) { |
|
| 251 | 251 | $response = $pp->createPlan($plan, $product); |
| 252 | 252 | |
| 253 | 253 | PaypalPlan::create([ |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $paymentMethod = $request->payment_method; |
| 30 | 30 | |
| 31 | 31 | $subscription = $user->newSubscription('default', $plan_id) |
| 32 | - ->trialDays(14); |
|
| 32 | + ->trialDays(14); |
|
| 33 | 33 | |
| 34 | 34 | if ($couponId = $request->input('coupon_id')) { |
| 35 | 35 | $subscription->withCoupon($couponId); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | try { |
| 22 | 22 | $user->createAsStripeCustomer(); |
| 23 | - } catch(\Exception) { |
|
| 23 | + } catch (\Exception) { |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | $plan_id = $request->input('plan_id'); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | private function emailUnchagedForUser() |
| 45 | 45 | { |
| 46 | - return ! optional($this->route('person'))->hasUser() |
|
| 46 | + return !optional($this->route('person'))->hasUser() |
|
| 47 | 47 | || $this->get('email') === $this->route('person')->email; |
| 48 | 48 | } |
| 49 | 49 | } |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | protected $proxies; |
| 11 | 11 | |
| 12 | 12 | protected $headers = |
| 13 | - Request::HEADER_X_FORWARDED_FOR | |
|
| 14 | - Request::HEADER_X_FORWARDED_HOST | |
|
| 15 | - Request::HEADER_X_FORWARDED_PORT | |
|
| 16 | - Request::HEADER_X_FORWARDED_PROTO | |
|
| 13 | + Request::HEADER_X_FORWARDED_FOR| |
|
| 14 | + Request::HEADER_X_FORWARDED_HOST| |
|
| 15 | + Request::HEADER_X_FORWARDED_PORT| |
|
| 16 | + Request::HEADER_X_FORWARDED_PROTO| |
|
| 17 | 17 | Request::HEADER_X_FORWARDED_AWS_ELB; |
| 18 | 18 | } |
@@ -135,11 +135,11 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | // add birthyear to person table ( for form builder ) |
| 138 | - if ($title === 'BIRT' && ! empty($date)) { |
|
| 138 | + if ($title === 'BIRT' && !empty($date)) { |
|
| 139 | 139 | $this->birthday = date('Y-m-d', strtotime((string) $date)); |
| 140 | 140 | } |
| 141 | 141 | // add deathyear to person table ( for form builder ) |
| 142 | - if ($title === 'DEAT' && ! empty($date)) { |
|
| 142 | + if ($title === 'DEAT' && !empty($date)) { |
|
| 143 | 143 | $this->deathday = date('Y-m-d', strtotime((string) $date)); |
| 144 | 144 | } |
| 145 | 145 | $this->save(); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | public function setUpdatedBy() |
| 168 | 168 | { |
| 169 | - if (! is_dir(storage_path('app/public'))) { |
|
| 169 | + if (!is_dir(storage_path('app/public'))) { |
|
| 170 | 170 | // dir doesn't exist, make it |
| 171 | 171 | \File::makeDirectory(storage_path().'/app/public', 0777, true); |
| 172 | 172 | |
@@ -9,5 +9,5 @@ |
||
| 9 | 9 | |
| 10 | 10 | class Tenant extends BaseTenant implements TenantWithDatabase |
| 11 | 11 | { |
| 12 | - use HasDatabase,HasDomains; |
|
| 12 | + use HasDatabase, HasDomains; |
|
| 13 | 13 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | $result = $response->json(); |
| 66 | 66 | |
| 67 | - if (! self::$is_testing) { |
|
| 67 | + if (!self::$is_testing) { |
|
| 68 | 68 | $has_more_result = $result['total'] > $result['page']; |
| 69 | 69 | if ($has_more_result) { |
| 70 | 70 | $this->current_page++; |
@@ -20,14 +20,14 @@ |
||
| 20 | 20 | public function create() |
| 21 | 21 | { |
| 22 | 22 | return $this->form |
| 23 | - // ->options('type_id', Type::all()) |
|
| 23 | + // ->options('type_id', Type::all()) |
|
| 24 | 24 | ->create(); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public function edit(Note $note) |
| 28 | 28 | { |
| 29 | 29 | return $this->form |
| 30 | - // ->options('type_id', Type::all()) |
|
| 30 | + // ->options('type_id', Type::all()) |
|
| 31 | 31 | ->edit($note); |
| 32 | 32 | } |
| 33 | 33 | } |