@@ -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++; |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | public function handle() |
| 36 | 36 | { |
| 37 | 37 | $p_id = $this->user->person_id; // person_id |
| 38 | - $f_id = 0; // family_id |
|
| 38 | + $f_id = 0; // family_id |
|
| 39 | 39 | |
| 40 | 40 | // $tenant = Manager::fromModel($this->user->company(), $this->user); |
| 41 | 41 | // $tenant->connect(); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $person = Person::where("child_in_family_id", $this->user->id)->first(); |
| 49 | 49 | |
| 50 | 50 | if ($person != null) { |
| 51 | - $f_id=$person->child_in_family_id; |
|
| 51 | + $f_id = $person->child_in_family_id; |
|
| 52 | 52 | } else { |
| 53 | 53 | $f_id = 0; |
| 54 | 54 | } |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | |
| 149 | 149 | public function storage(): Filesystem |
| 150 | 150 | { |
| 151 | - if (! $this->hasStoragePartition()) { |
|
| 151 | + if (!$this->hasStoragePartition()) { |
|
| 152 | 152 | $this->makeStoragePartition(); |
| 153 | 153 | } |
| 154 | 154 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | public function handle($request, Closure $next) |
| 14 | 14 | { |
| 15 | - if (! $request->user()) { |
|
| 15 | + if (!$request->user()) { |
|
| 16 | 16 | return $next($request); |
| 17 | 17 | } |
| 18 | 18 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public function getConnectionName() |
| 11 | 11 | { |
| 12 | - if (! App::runningUnitTests()) { |
|
| 12 | + if (!App::runningUnitTests()) { |
|
| 13 | 13 | if (Auth::check()) { |
| 14 | 14 | $user = \Auth::user(); |
| 15 | 15 | $role_id = $user->role_id; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | // If unique is still false at this point |
| 41 | 41 | // it will just repeat all the steps until |
| 42 | 42 | // it has generated a random string of characters |
| 43 | - } while (! $unique); |
|
| 43 | + } while (!$unique); |
|
| 44 | 44 | |
| 45 | 45 | return $random; |
| 46 | 46 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | public function initiateEmailActivationApi(User $user) |
| 22 | 22 | { |
| 23 | - if (! config('settings.activation') || ! $this->validateEmail($user)) { |
|
| 23 | + if (!config('settings.activation') || !$this->validateEmail($user)) { |
|
| 24 | 24 | return true; |
| 25 | 25 | } |
| 26 | 26 | |
@@ -35,19 +35,19 @@ |
||
| 35 | 35 | people.titl AS title, people.givn, people.surn, people.appellative, people.email, people.phone, |
| 36 | 36 | people.birthday, people.deathday, CASE WHEN users.id is null THEN 0 ELSE 1 END as "user", |
| 37 | 37 | companies.name as company, people.created_at |
| 38 | - ')->leftJoin('users', function ($join) use ($userId) { |
|
| 38 | + ')->leftJoin('users', function($join) use ($userId) { |
|
| 39 | 39 | $join->on('people.id', '=', 'users.person_id') |
| 40 | 40 | ->where('users.id', $userId); |
| 41 | 41 | }) |
| 42 | 42 | ->leftJoin( |
| 43 | 43 | 'company_person', |
| 44 | - function ($join) use ($userId) { |
|
| 44 | + function($join) use ($userId) { |
|
| 45 | 45 | $join |
| 46 | 46 | ->on('people.id', '=', 'company_person.person_id') |
| 47 | 47 | ->where('company_person.company_id', $userId) |
| 48 | 48 | ->where('company_person.is_main', true); |
| 49 | 49 | } |
| 50 | - )->leftJoin('companies', function ($join) use ($userId) { |
|
| 50 | + )->leftJoin('companies', function($join) use ($userId) { |
|
| 51 | 51 | $join->on('company_person.company_id', '=', 'companies.id') |
| 52 | 52 | ->where('companies.id', $userId); |
| 53 | 53 | }); |