@@ -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'); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | if ($request->has('payment_method')) { |
29 | 29 | $paymentMethod = $request->payment_method; |
30 | 30 | $subscription = $user->newSubscription('default', $plan_id) |
31 | - ->trialDays(14); |
|
31 | + ->trialDays(14); |
|
32 | 32 | if ($couponId = $request->input('coupon_id')) { |
33 | 33 | $subscription->withCoupon($couponId); |
34 | 34 | } |
@@ -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 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function edit(Repository $repository) |
28 | 28 | { |
29 | 29 | return $this->form |
30 | - // ->options('type_id', Type::all()) |
|
30 | + // ->options('type_id', Type::all()) |
|
31 | 31 | ->edit($repository); |
32 | 32 | } |
33 | 33 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | return $this->form |
24 | 24 | ->options('husband_id', Person::all()) |
25 | 25 | ->options('wife_id', Person::all()) |
26 | - // ->options('type_id', Type::all()) |
|
26 | + // ->options('type_id', Type::all()) |
|
27 | 27 | ->options('child_id', Person::all()) |
28 | 28 | ->create(); |
29 | 29 | } |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | ->options('husband_id', Person::all()) |
35 | 35 | ->options('wife_id', Person::all()) |
36 | 36 | ->append('family_id', $family->id) |
37 | - ->value('child_id', $family->children) |
|
38 | - ->options('child_id', Person::all()) |
|
37 | + ->value('child_id', $family->children) |
|
38 | + ->options('child_id', Person::all()) |
|
39 | 39 | ->edit($family); |
40 | 40 | } |
41 | 41 | } |