Passed
Pull Request — master (#1305)
by
unknown
05:46
created
app/Traits/enso/files/HasFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         if (App::environment('testing')) {
56 56
             $directory = Config::get('enso.files.testingFolder');
57 57
 
58
-            if (! Storage::has($directory)) {
58
+            if (!Storage::has($directory)) {
59 59
                 Storage::makeDirectory($directory);
60 60
             }
61 61
 
@@ -102,6 +102,6 @@  discard block
 block discarded – undo
102 102
 
103 103
     protected static function bootHasFile()
104 104
     {
105
-        self::deleting(fn ($model) => (new Files($model))->delete());
105
+        self::deleting(fn($model) => (new Files($model))->delete());
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
app/Traits/enso/avatars/HasAvatar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public static function bootHasAvatar()
11 11
     {
12
-        self::created(fn ($model) => $model->generateAvatar());
12
+        self::created(fn($model) => $model->generateAvatar());
13 13
     }
14 14
 
15 15
     public function avatar()
Please login to merge, or discard this patch.
app/Person.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,11 +119,11 @@  discard block
 block discarded – undo
119 119
         }
120 120
 
121 121
         // add birthyear to person table ( for form builder )
122
-        if ($title == 'BIRT' && ! empty($date)) {
122
+        if ($title == 'BIRT' && !empty($date)) {
123 123
             $this->birthday = date('Y-m-d', strtotime($date));
124 124
         }
125 125
         // add deathyear to person table ( for form builder )
126
-        if ($title == 'DEAT' && ! empty($date)) {
126
+        if ($title == 'DEAT' && !empty($date)) {
127 127
             $this->deathday = date('Y-m-d', strtotime($date));
128 128
         }
129 129
         $this->save();
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
     public function gender()
173 173
     {
174
-        if (! $this->title) {
174
+        if (!$this->title) {
175 175
             return;
176 176
         }
177 177
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     public function syncCompanies($companyIds, $mainCompanyId)
191 191
     {
192 192
         $pivotIds = (new Collection($companyIds))
193
-            ->reduce(fn ($pivot, $value) => $pivot->put($value, [
193
+            ->reduce(fn($pivot, $value) => $pivot->put($value, [
194 194
                 'is_main' => $value === $mainCompanyId,
195 195
                 'is_mandatary' => false,
196 196
             ]), new Collection());
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/Models/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
     public function erase(bool $person = false)
163 163
     {
164 164
         if ($person) {
165
-            return DB::transaction(fn () => tap($this)->delete()->person->delete());
165
+            return DB::transaction(fn() => tap($this)->delete()->person->delete());
166 166
         }
167 167
 
168 168
         return $this->delete();
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $user = $this->loggableUser($request);
56 56
 
57
-        if (! $user) {
57
+        if (!$user) {
58 58
             return false;
59 59
         }
60 60
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         \Session::put('db', $value);
104 104
 
105
-        if (! optional($user)->currentPasswordIs($request->input('password'))) {
105
+        if (!optional($user)->currentPasswordIs($request->input('password'))) {
106 106
             return;
107 107
         }
108 108
 
Please login to merge, or discard this patch.
app/PersonEvent.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 namespace App;
4 4
 
5 5
 use Illuminate\Database\Eloquent\SoftDeletes;
6
-<<<<<<< HEAD
6
+<< << <<< HEAD
7 7
 use LaravelEnso\Tables\Traits\TableCache;
8 8
 use ModularSoftware\LaravelGedcom\Observers\EventActionsObserver;
9 9
 =======
@@ -52,6 +52,4 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function person()
54 54
     {
55
-        return $this->hasOne(Person::class, 'id', 'person_id');
56
-    }
57
-}
55
+        return $this->hasOne
58 56
\ No newline at end of file
Please login to merge, or discard this patch.