@@ -39,7 +39,7 @@ |
||
| 39 | 39 | |
| 40 | 40 | private static function tenantPrefix() |
| 41 | 41 | { |
| 42 | - if (! isset(self::$tenantPrefix)) { |
|
| 42 | + if (!isset(self::$tenantPrefix)) { |
|
| 43 | 43 | self::$tenantPrefix = self::tenantDatabase(); |
| 44 | 44 | } |
| 45 | 45 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | protected function hideSensitiveRequestDetails() |
| 26 | 26 | { |
| 27 | - if (! $this->app->isLocal()) { |
|
| 27 | + if (!$this->app->isLocal()) { |
|
| 28 | 28 | Telescope::hideRequestParameters(['_token']); |
| 29 | 29 | Telescope::hideRequestHeaders(['cookie', 'x-csrf-token', 'x-xsrf-token']); |
| 30 | 30 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | |
| 52 | 52 | protected function configureRateLimiting() |
| 53 | 53 | { |
| 54 | - RateLimiter::for('api', fn () => App::runningUnitTests() |
|
| 54 | + RateLimiter::for ('api', fn () => App::runningUnitTests() |
|
| 55 | 55 | ? Limit::none() |
| 56 | 56 | : Limit::perMinute(1000)); |
| 57 | 57 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | $fam = Family::where('husband_id', $husband->id)->where('wife_id', $wife->id)->first(); |
| 51 | 51 | |
| 52 | - if (! $fam) { |
|
| 52 | + if (!$fam) { |
|
| 53 | 53 | $fam = Family::create([ |
| 54 | 54 | 'description' => $description, |
| 55 | 55 | 'husband_id' => $husband->id, |
@@ -19,13 +19,13 @@ |
||
| 19 | 19 | // and filter living individuals out |
| 20 | 20 | $peopleQuery = TenantPerson::where('birthday', '<', Carbon::now()->subYears(100)) |
| 21 | 21 | ->whereNull('deathday') |
| 22 | - ->with(['systemPerson' => function ($query) { |
|
| 22 | + ->with(['systemPerson' => function($query) { |
|
| 23 | 23 | $query->select('id', 'name'); |
| 24 | 24 | }]); |
| 25 | 25 | |
| 26 | 26 | $words = explode(' ', (string) $request->input('name')); |
| 27 | 27 | |
| 28 | - $peopleQuery->where(function ($query) use ($words) { |
|
| 28 | + $peopleQuery->where(function($query) use ($words) { |
|
| 29 | 29 | foreach ($words as $text) { |
| 30 | 30 | $query->orWhere('name', 'like', '%'.$text.'%'); |
| 31 | 31 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | $families = Family::where('husband_id', $start_id)->orwhere('wife_id', $start_id)->get(); |
| 52 | - if (! (is_countable($families) ? count($families) : 0)) { |
|
| 52 | + if (!(is_countable($families) ? count($families) : 0)) { |
|
| 53 | 53 | $person = Person::find($start_id); |
| 54 | 54 | |
| 55 | 55 | // do not process for null |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | ]; |
| 82 | 82 | foreach ($partners as $partner) { |
| 83 | 83 | $p = Person::find($partner); |
| 84 | - if (isset($p) && ! isset($this->persons[$partner])) { |
|
| 84 | + if (isset($p) && !isset($this->persons[$partner])) { |
|
| 85 | 85 | $this->persons[$partner] = $p; |
| 86 | 86 | } |
| 87 | 87 | } |
@@ -15,15 +15,15 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $shipTo = [ |
| 17 | 17 | 'companyName' => 'No Name', |
| 18 | - 'firstName' => 'John', // required |
|
| 19 | - 'lastName' => 'Doe', // required |
|
| 20 | - 'addressLine1' => '451 Clarkson Ave', // required |
|
| 18 | + 'firstName' => 'John', // required |
|
| 19 | + 'lastName' => 'Doe', // required |
|
| 20 | + 'addressLine1' => '451 Clarkson Ave', // required |
|
| 21 | 21 | 'addressLine2' => 'Brooklyn', |
| 22 | 22 | 'state' => 'NY', |
| 23 | - 'city' => 'New York', // required |
|
| 24 | - 'postCode' => '11203', // required |
|
| 25 | - 'country' => 'US', // required |
|
| 26 | - 'email' => '[email protected]', // required |
|
| 23 | + 'city' => 'New York', // required |
|
| 24 | + 'postCode' => '11203', // required |
|
| 25 | + 'country' => 'US', // required |
|
| 26 | + 'email' => '[email protected]', // required |
|
| 27 | 27 | 'phone' => '123456789', |
| 28 | 28 | ]; |
| 29 | 29 | |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | $families = Family::where('husband_id', $start_id)->orwhere('wife_id', $start_id)->get(); |
| 59 | - if (! (is_countable($families) ? count($families) : 0)) { |
|
| 59 | + if (!(is_countable($families) ? count($families) : 0)) { |
|
| 60 | 60 | $person->setAttribute('own_unions', []); |
| 61 | 61 | $person['generation'] = $nest; |
| 62 | 62 | $this->persons[$start_id] = $person; |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $prevConn = $this->getConnection(); |
| 116 | 116 | $company_id = $request->get('company_id'); |
| 117 | 117 | // $tree_id = $request->get('tree_id'); |
| 118 | - if (! empty($company_id)) { |
|
| 118 | + if (!empty($company_id)) { |
|
| 119 | 119 | $tenants = \App\Models\Tenant::find($company_id); |
| 120 | 120 | if ($tenants) { |
| 121 | 121 | $db = $tenants->tenancy_db_name; |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | $prevConn = $this->getConnection(); |
| 185 | 185 | $company_id = $request->get('company_id'); |
| 186 | 186 | $tree_id = $request->get('tree_id'); |
| 187 | - if (! empty($company_id)) { |
|
| 187 | + if (!empty($company_id)) { |
|
| 188 | 188 | $db = Connections::Tenant.$company_id.'_'.$tree_id; |
| 189 | 189 | $this->setConnection(Connections::Tenant, $db); |
| 190 | 190 | } else { |