@@ -21,6 +21,6 @@ |
||
| 21 | 21 | |
| 22 | 22 | protected function gate() |
| 23 | 23 | { |
| 24 | - Gate::define('viewHorizon', fn ($user) => optional($user)->isAdmin()); |
|
| 24 | + Gate::define('viewHorizon', fn($user) => optional($user)->isAdmin()); |
|
| 25 | 25 | } |
| 26 | 26 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | $this->hideSensitiveRequestDetails(); |
| 17 | 17 | |
| 18 | - Telescope::filter(fn (IncomingEntry $entry) => $this->app->isLocal() |
|
| 18 | + Telescope::filter(fn(IncomingEntry $entry) => $this->app->isLocal() |
|
| 19 | 19 | || $entry->isReportableException() |
| 20 | 20 | || $entry->isFailedJob() |
| 21 | 21 | || $entry->isScheduledTask() |
@@ -24,7 +24,7 @@ discard block |
||
| 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 | } |
@@ -32,6 +32,6 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | protected function gate() |
| 34 | 34 | { |
| 35 | - Gate::define('viewTelescope', fn ($user) => optional($user)->isAdmin()); |
|
| 35 | + Gate::define('viewTelescope', fn($user) => optional($user)->isAdmin()); |
|
| 36 | 36 | } |
| 37 | 37 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | parent::boot(); |
| 31 | 31 | |
| 32 | - if (! App::runningUnitTests()) { |
|
| 32 | + if (!App::runningUnitTests()) { |
|
| 33 | 33 | Logger::observe(); |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | private function emailUnchagedForUser() |
| 46 | 46 | { |
| 47 | - return ! optional($this->route('person'))->hasUser() |
|
| 47 | + return !optional($this->route('person'))->hasUser() |
|
| 48 | 48 | || $this->get('email') === $this->route('person')->email; |
| 49 | 49 | } |
| 50 | 50 | } |
@@ -12,10 +12,10 @@ |
||
| 12 | 12 | |
| 13 | 13 | public function query(): Builder |
| 14 | 14 | { |
| 15 | - return Family::leftJoin('people as husband', function ($join) { |
|
| 15 | + return Family::leftJoin('people as husband', function($join) { |
|
| 16 | 16 | $join->on('husband.id', '=', 'families.husband_id'); |
| 17 | 17 | }) |
| 18 | - ->leftJoin('people as wife', function ($join) { |
|
| 18 | + ->leftJoin('people as wife', function($join) { |
|
| 19 | 19 | $join->on('wife.id', '=', 'families.wife_id'); |
| 20 | 20 | }) |
| 21 | 21 | ->select(\DB::raw(' |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | return; |
| 125 | 125 | } |
| 126 | 126 | // do self |
| 127 | - if (! array_key_exists($start_id, $this->persons)) { |
|
| 127 | + if (!array_key_exists($start_id, $this->persons)) { |
|
| 128 | 128 | // this is not added |
| 129 | 129 | $_families = Family::where('husband_id', $start_id)->orwhere('wife_id', $start_id)->select('id')->get(); |
| 130 | 130 | $_union_ids = []; |
@@ -141,10 +141,10 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | // get self's parents data |
| 143 | 143 | $p_family_id = $person->child_in_family_id; |
| 144 | - if (! empty($p_family_id)) { |
|
| 144 | + if (!empty($p_family_id)) { |
|
| 145 | 145 | // add parent family link |
| 146 | 146 | // $this->links[] = ['u'.$p_family_id, $start_id] ; |
| 147 | - array_unshift($this->links, ['u'.$p_family_id, $start_id]); |
|
| 147 | + array_unshift($this->links, ['u'.$p_family_id, $start_id]); |
|
| 148 | 148 | $p_family = Family::find($p_family_id); |
| 149 | 149 | if (isset($p_family->husband_id)) { |
| 150 | 150 | $p_fatherid = $p_family->husband_id; |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $father = Person::find($family->husband_id); |
| 164 | 164 | $mother = Person::find($family->wife_id); |
| 165 | 165 | if (isset($father->id)) { |
| 166 | - if (! array_key_exists($father->id, $this->persons)) { |
|
| 166 | + if (!array_key_exists($father->id, $this->persons)) { |
|
| 167 | 167 | // this is not added |
| 168 | 168 | $_families = Family::where('husband_id', $father->id)->orwhere('wife_id', $father->id)->select('id')->get(); |
| 169 | 169 | $_union_ids = []; |
@@ -180,10 +180,10 @@ discard block |
||
| 180 | 180 | array_unshift($this->links, [$father->id, 'u'.$family_id]); |
| 181 | 181 | // get husband's parents data |
| 182 | 182 | $p_family_id = $father->child_in_family_id; |
| 183 | - if (! empty($p_family_id)) { |
|
| 183 | + if (!empty($p_family_id)) { |
|
| 184 | 184 | // add parent family link |
| 185 | 185 | // $this->links[] = ['u'.$p_family_id, $father->id] ; |
| 186 | - array_unshift($this->links, ['u'.$p_family_id, $father->id]); |
|
| 186 | + array_unshift($this->links, ['u'.$p_family_id, $father->id]); |
|
| 187 | 187 | $p_family = Family::find($p_family_id); |
| 188 | 188 | if (isset($p_family->husband_id)) { |
| 189 | 189 | $p_fatherid = $p_family->husband_id; |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | } |
| 198 | 198 | } |
| 199 | 199 | if (isset($mother->id)) { |
| 200 | - if (! array_key_exists($mother->id, $this->persons)) { |
|
| 200 | + if (!array_key_exists($mother->id, $this->persons)) { |
|
| 201 | 201 | // this is not added |
| 202 | 202 | $_families = Family::where('husband_id', $mother->id)->orwhere('wife_id', $mother->id)->select('id')->get(); |
| 203 | 203 | $_union_ids = []; |
@@ -213,10 +213,10 @@ discard block |
||
| 213 | 213 | array_unshift($this->links, [$mother->id, 'u'.$family_id]); |
| 214 | 214 | // get wifee's parents data |
| 215 | 215 | $p_family_id = $mother->child_in_family_id; |
| 216 | - if (! empty($p_family_id)) { |
|
| 216 | + if (!empty($p_family_id)) { |
|
| 217 | 217 | // add parent family link |
| 218 | 218 | // $this->links[] = ['u'.$p_family_id, $father->id] ; |
| 219 | - array_unshift($this->links, ['u'.$p_family_id, $mother->id]); |
|
| 219 | + array_unshift($this->links, ['u'.$p_family_id, $mother->id]); |
|
| 220 | 220 | |
| 221 | 221 | $p_family = Family::find($p_family_id); |
| 222 | 222 | if (isset($p_family->husband_id)) { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | ')->leftJoin('users', 'people.id', '=', 'users.person_id') |
| 20 | 20 | ->leftJoin( |
| 21 | 21 | 'company_person', |
| 22 | - fn ($join) => $join |
|
| 22 | + fn($join) => $join |
|
| 23 | 23 | ->on('people.id', '=', 'company_person.person_id') |
| 24 | 24 | ->where('company_person.is_main', true) |
| 25 | 25 | )->leftJoin('companies', 'company_person.company_id', 'companies.id'); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $ts = microtime(true); |
| 51 | 51 | $file = env('APP_NAME').date('_Ymd_').$ts.'.GED'; |
| 52 | 52 | $destinationPath = public_path().'/upload/'; |
| 53 | - if (! is_dir($destinationPath)) { |
|
| 53 | + if (!is_dir($destinationPath)) { |
|
| 54 | 54 | mkdir($destinationPath, 0777, true); |
| 55 | 55 | } |
| 56 | 56 | File::put($destinationPath.$file, $content); |
@@ -31,25 +31,25 @@ |
||
| 31 | 31 | |
| 32 | 32 | public function boot() |
| 33 | 33 | { |
| 34 | - $this->app->bind(ValidatePersonStore::class, function () { |
|
| 34 | + $this->app->bind(ValidatePersonStore::class, function() { |
|
| 35 | 35 | return new LocalPersonStore(); |
| 36 | 36 | }); |
| 37 | - $this->app->bind(ValidatePersonUpdate::class, function () { |
|
| 37 | + $this->app->bind(ValidatePersonUpdate::class, function() { |
|
| 38 | 38 | return new LocalPersonUpdate(); |
| 39 | 39 | }); |
| 40 | - $this->app->bind(ValidatePersonRequest::class, function () { |
|
| 40 | + $this->app->bind(ValidatePersonRequest::class, function() { |
|
| 41 | 41 | return new LocalPersonRequest(); |
| 42 | 42 | }); |
| 43 | - $this->app->bind(EnsoPerson::class, function () { |
|
| 43 | + $this->app->bind(EnsoPerson::class, function() { |
|
| 44 | 44 | return new LocalPerson(); |
| 45 | 45 | }); |
| 46 | - $this->app->bind(Person::class, function () { |
|
| 46 | + $this->app->bind(Person::class, function() { |
|
| 47 | 47 | return new LocalPerson(); |
| 48 | 48 | }); |
| 49 | - $this->app->bind(PersonTable::class, function () { |
|
| 49 | + $this->app->bind(PersonTable::class, function() { |
|
| 50 | 50 | return new LocalPersonTable(); |
| 51 | 51 | }); |
| 52 | - $this->app->bind(PersonForm::class, function () { |
|
| 52 | + $this->app->bind(PersonForm::class, function() { |
|
| 53 | 53 | return new LocalPersonForm(); |
| 54 | 54 | }); |
| 55 | 55 | } |