Passed
Pull Request — master (#2400)
by
unknown
15:33 queued 07:23
created
app/Tenant/Manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Tenant/Middleware/Multitenancy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Traits/UniqueStringTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Traits/ActivationTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Tables/Builders/PersonTable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,19 +35,19 @@
 block discarded – undo
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
             });
Please login to merge, or discard this patch.
app/Tables/Builders/FamilyTable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
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('
Please login to merge, or discard this patch.
app/Console/Commands/Synchronize/CopyPeopleFromTenancyToGenealogy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $recordsSince = TenantPerson::orderBy('updated_at', 'desc')->first()?->updated_at;
34 34
         $this->info('Tenant people records syncronization since: '.($recordsSince ?: 'start'));
35 35
 
36
-        tenancy()->query()->cursor()->each(function (Tenant $tenant) use ($recordsSince) {
36
+        tenancy()->query()->cursor()->each(function(Tenant $tenant) use ($recordsSince) {
37 37
             try {
38 38
                 tenancy()->initialize($tenant);
39 39
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 }
45 45
 
46 46
                 $this->info('Processing tenant #'.$tenant->id.' records: '.(clone $tenantPersonQuery)->count());
47
-                $tenantPersonQuery->chunk(100, function ($people) use ($tenant) {
47
+                $tenantPersonQuery->chunk(100, function($people) use ($tenant) {
48 48
                     // clear old records and push updated ones
49 49
                     TenantPerson::where('tenant_id', $tenant->id)
50 50
                         ->whereIn('tenant_person_id', $people->pluck('id'))
Please login to merge, or discard this patch.
app/Jobs/ExportGedCom.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 //        Log::info("content from getGedcomPerson function => \n $content");
69 69
         // var_dump(\Storage::disk('public')->path($this->file), "job");
70 70
         $manager->storage()->put($this->file, $content);
71
- //       $filePath = 'public/' . $this->file;
71
+    //       $filePath = 'public/' . $this->file;
72 72
 //        $filePath = $manager->storage()->path($filePath);
73 73
         //	chmod_r('/home/genealogia/domains/api.genealogia.co.uk/genealogy/storage/tenants/');
74 74
         exec('chmod -R 0777 '.storage_path('/tenants/'));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function handle()
37 37
     {
38 38
         $p_id = $this->user->person_id; // person_id
39
-        $f_id = 0;                      // family_id
39
+        $f_id = 0; // family_id
40 40
 
41 41
         $tenant = Manager::fromModel($this->user->company(), $this->user);
42 42
         $tenant->connect();
Please login to merge, or discard this patch.
app/Jobs/ImportGedcom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         throw_unless(File::isFile($this->filePath), \Exception::class, "{$this->filePath} does not exist.");
31 31
 
32 32
         $tenant = Manager::fromModel($this->user->company(), $this->user);
33
-        if (! $tenant->databaseExists()) {
33
+        if (!$tenant->databaseExists()) {
34 34
             //$tenant->dropDatabase();
35 35
             $tenant->createDatabase();
36 36
             $tenant->connect();
Please login to merge, or discard this patch.