Test Setup Failed
Push — master ( f89dd5...4ba28c )
by Curtis
22:28 queued 16:08
created
app/Http/Controllers/SubnController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
         if ($request->has('searchTerm')) {
20 20
             $columnsToSearch = ['subm', 'famf', 'temp', 'ance', 'desc', 'rin'];
21 21
             $search_term = json_decode($request->searchTerm)->searchTerm;
22
-            if (! empty($search_term)) {
23
-                $searchQuery = '%'.$search_term.'%';
22
+            if (!empty($search_term)) {
23
+                $searchQuery = '%' . $search_term . '%';
24 24
                 foreach ($columnsToSearch as $column) {
25 25
                     $query->orWhere($column, 'LIKE', $searchQuery);
26 26
                 }
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
             $filters = get_object_vars(json_decode($request->columnFilters));
32 32
 
33 33
             foreach ($filters as $key => $value) {
34
-                if (! empty($value)) {
35
-                    $query->orWhere($key, 'like', '%'.$value.'%');
34
+                if (!empty($value)) {
35
+                    $query->orWhere($key, 'like', '%' . $value . '%');
36 36
                 }
37 37
             }
38 38
         }
Please login to merge, or discard this patch.
app/Http/Controllers/PublicationController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
         if ($request->has('searchTerm')) {
20 20
             $columnsToSearch = ['name', 'description', 'is_active'];
21 21
             $search_term = json_decode($request->searchTerm)->searchTerm;
22
-            if (! empty($search_term)) {
23
-                $searchQuery = '%'.$search_term.'%';
22
+            if (!empty($search_term)) {
23
+                $searchQuery = '%' . $search_term . '%';
24 24
                 foreach ($columnsToSearch as $column) {
25 25
                     $query->orWhere($column, 'LIKE', $searchQuery);
26 26
                 }
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
             $filters = get_object_vars(json_decode($request->columnFilters));
32 32
 
33 33
             foreach ($filters as $key => $value) {
34
-                if (! empty($value)) {
35
-                    $query->orWhere($key, 'like', '%'.$value.'%');
34
+                if (!empty($value)) {
35
+                    $query->orWhere($key, 'like', '%' . $value . '%');
36 36
                 }
37 37
             }
38 38
         }
Please login to merge, or discard this patch.
app/Http/Controllers/GedcomController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,15 +27,15 @@
 block discarded – undo
27 27
                     $currentTenant = app('currentTenant');
28 28
                     $db = $currentTenant->database;
29 29
                     $currentUser = auth()->user();
30
-                    $_name = uniqid().'.ged';
30
+                    $_name = uniqid() . '.ged';
31 31
                     $request->file->storeAs('gedcom', $_name);
32 32
                     define('STDIN', fopen('php://stdin', 'r'));
33 33
                     // $parser = new GedcomParser();
34 34
                     // $parser->parse($request->file('file'), $slug, true);
35
-                    $filename = 'app/gedcom/'.$_name;
35
+                    $filename = 'app/gedcom/' . $_name;
36 36
                     ImportGedcom::dispatch($filename, $slug, $currentUser->id, $conn, $db);
37 37
 
38
-                    return ['File uploaded: conn:-'.$conn.'-'];
38
+                    return ['File uploaded: conn:-' . $conn . '-'];
39 39
                 } catch (\Exception $e) {
40 40
                     return ['Not uploaded'];
41 41
                 }
Please login to merge, or discard this patch.
app/Http/Controllers/RegisterController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
             $random = $this->unique_random('companies', 'name', 5);
57 57
             $company_id = DB::connection($this->getConnectionName())->table('companies')->insertGetId([
58
-                'name' => 'company'.$random,
58
+                'name' => 'company' . $random,
59 59
                 'status' => 1,
60 60
                 'current_tenant' => 1,
61 61
             ]);
@@ -67,18 +67,18 @@  discard block
 block discarded – undo
67 67
 
68 68
             $tree_id = DB::connection($this->getConnectionName())->table('trees')->insertGetId([
69 69
                 'company_id' => $company_id,
70
-                'name' => 'tree'.$company_id,
70
+                'name' => 'tree' . $company_id,
71 71
                 'description' => '',
72 72
                 'current_tenant' => 1,
73 73
             ]);
74 74
 
75 75
             $tenant_id = DB::connection($this->getConnectionName())->table('tenants')->insertGetId([
76
-                'name' => 'tenant'.$tree_id,
76
+                'name' => 'tenant' . $tree_id,
77 77
                 'tree_id' => $tree_id,
78
-                'database' => 'tenant'.$tree_id,
78
+                'database' => 'tenant' . $tree_id,
79 79
             ]);
80 80
 
81
-            DB::statement('create database tenant'.$tree_id);
81
+            DB::statement('create database tenant' . $tree_id);
82 82
 
83 83
             Artisan::call('tenants:artisan "migrate --database=tenant --force"');
84 84
         } catch (Exception $e) {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             // If unique is still false at this point
123 123
             // it will just repeat all the steps until
124 124
             // it has generated a random string of characters
125
-        } while (! $unique);
125
+        } while (!$unique);
126 126
 
127 127
         return $random;
128 128
     }
Please login to merge, or discard this patch.
app/Http/Controllers/FamilySlgsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
         if ($request->has('searchTerm')) {
20 20
             $columnsToSearch = ['family_id', 'stat', 'date', 'plac', 'temp'];
21 21
             $search_term = json_decode($request->searchTerm)->searchTerm;
22
-            if (! empty($search_term)) {
23
-                $searchQuery = '%'.$search_term.'%';
22
+            if (!empty($search_term)) {
23
+                $searchQuery = '%' . $search_term . '%';
24 24
                 foreach ($columnsToSearch as $column) {
25 25
                     $query->orWhere($column, 'LIKE', $searchQuery);
26 26
                 }
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
             $filters = get_object_vars(json_decode($request->columnFilters));
32 32
 
33 33
             foreach ($filters as $key => $value) {
34
-                if (! empty($value)) {
35
-                    $query->orWhere($key, 'like', '%'.$value.'%');
34
+                if (!empty($value)) {
35
+                    $query->orWhere($key, 'like', '%' . $value . '%');
36 36
                 }
37 37
             }
38 38
         }
Please login to merge, or discard this patch.
app/Http/Controllers/CompanyController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
         if ($request->has('searchTerm')) {
23 23
             $columnsToSearch = ['name', 'status'];
24 24
             $search_term = json_decode($request->searchTerm)->searchTerm;
25
-            if (! empty($search_term)) {
26
-                $searchQuery = '%'.$search_term.'%';
25
+            if (!empty($search_term)) {
26
+                $searchQuery = '%' . $search_term . '%';
27 27
                 foreach ($columnsToSearch as $column) {
28 28
                     $query->orWhere($column, 'LIKE', $searchQuery);
29 29
                 }
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
             $filters = get_object_vars(json_decode($request->columnFilters));
35 35
 
36 36
             foreach ($filters as $key => $value) {
37
-                if (! empty($value)) {
38
-                    $query->orWhere($key, 'like', '%'.$value.'%');
37
+                if (!empty($value)) {
38
+                    $query->orWhere($key, 'like', '%' . $value . '%');
39 39
                 }
40 40
             }
41 41
         }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         if ($request->has('perPage')) {
49 49
             $rows = $query->paginate($request->perPage);
50 50
         }
51
-        if (! count($request->all())) {
51
+        if (!count($request->all())) {
52 52
             $rows = $query->get()->toArray();
53 53
         }
54 54
 
Please login to merge, or discard this patch.
app/Http/Controllers/PersonEventController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
         if ($request->has('searchTerm')) {
20 20
             $columnsToSearch = ['converted_date', 'year', 'month', 'day', 'type', 'attr', 'plac', 'addr_id', 'phon', 'caus', 'age', 'agnc', 'adop', 'adop_famc', 'person_id', 'title', 'date', 'description', 'places_id'];
21 21
             $search_term = json_decode($request->searchTerm)->searchTerm;
22
-            if (! empty($search_term)) {
23
-                $searchQuery = '%'.$search_term.'%';
22
+            if (!empty($search_term)) {
23
+                $searchQuery = '%' . $search_term . '%';
24 24
                 foreach ($columnsToSearch as $column) {
25 25
                     $query->orWhere($column, 'LIKE', $searchQuery);
26 26
                 }
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
             $filters = get_object_vars(json_decode($request->columnFilters));
32 32
 
33 33
             foreach ($filters as $key => $value) {
34
-                if (! empty($value)) {
35
-                    $query->orWhere($key, 'like', '%'.$value.'%');
34
+                if (!empty($value)) {
35
+                    $query->orWhere($key, 'like', '%' . $value . '%');
36 36
                 }
37 37
             }
38 38
         }
Please login to merge, or discard this patch.
app/Http/Controllers/VerificationController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         //        throw new AuthorizationException;
20 20
         //    }
21 21
 
22
-        if (! hash_equals((string) $request->hash, sha1($user->getEmailForVerification()))) {
22
+        if (!hash_equals((string) $request->hash, sha1($user->getEmailForVerification()))) {
23 23
             return response()->json([
24 24
                 'message' => 'Unauthorized',
25 25
                 'success' => false,
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public function resendVerificatonEmail(Request $request)
47 47
     {
48 48
         $user = User::where('email', $request->email)->firstOrFail();
49
-        if (! $user) {
49
+        if (!$user) {
50 50
             return response()->json([
51 51
                 'message' => 'Failed to send!',
52 52
                 'success' => false,
Please login to merge, or discard this patch.
app/Http/Controllers/RoleController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
         if ($request->has('searchTerm')) {
20 20
             $columnsToSearch = ['name'];
21 21
             $search_term = json_decode($request->searchTerm)->searchTerm;
22
-            if (! empty($search_term)) {
23
-                $searchQuery = '%'.$search_term.'%';
22
+            if (!empty($search_term)) {
23
+                $searchQuery = '%' . $search_term . '%';
24 24
                 foreach ($columnsToSearch as $column) {
25 25
                     $query->orWhere($column, 'LIKE', $searchQuery);
26 26
                 }
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
             $filters = get_object_vars(json_decode($request->columnFilters));
32 32
 
33 33
             foreach ($filters as $key => $value) {
34
-                if (! empty($value)) {
35
-                    $query->orWhere($key, 'like', '%'.$value.'%');
34
+                if (!empty($value)) {
35
+                    $query->orWhere($key, 'like', '%' . $value . '%');
36 36
                 }
37 37
             }
38 38
         }
Please login to merge, or discard this patch.