Passed
Pull Request — main (#5039)
by Bernard
07:32
created
app/Individual.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
     protected const string ROUTE_NAME = IndividualPage::class;
46 46
 
47 47
     /** Used in some lists to keep track of this individual’s generation in that list */
48
-    public int|null $generation = null;
48
+    public int | null $generation = null;
49 49
 
50
-    private Date|null $estimated_birth_date = null;
50
+    private Date | null $estimated_birth_date = null;
51 51
 
52
-    private Date|null $estimated_death_date = null;
52
+    private Date | null $estimated_death_date = null;
53 53
 
54 54
     /**
55 55
      * A closure which will compare individuals by birth date.
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @return bool
80 80
      */
81
-    public function canShowName(int|null $access_level = null): bool
81
+    public function canShowName(int | null $access_level = null): bool
82 82
     {
83 83
         $access_level ??= Auth::accessLevel($this->tree);
84 84
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     /**
313 313
      * Find the highlighted media object for an individual
314 314
      */
315
-    public function findHighlightedMediaFile(): MediaFile|null
315
+    public function findHighlightedMediaFile(): MediaFile | null
316 316
     {
317 317
         $fact = $this->facts(['OBJE'])
318 318
             ->first(static function (Fact $fact): bool {
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
      *
664 664
      * @return Collection<int,Family>
665 665
      */
666
-    public function spouseFamilies(int|null $access_level = null): Collection
666
+    public function spouseFamilies(int | null $access_level = null): Collection
667 667
     {
668 668
         $access_level ??= Auth::accessLevel($this->tree);
669 669
 
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
      *
691 691
      * @return Individual|null
692 692
      */
693
-    public function getCurrentSpouse(): Individual|null
693
+    public function getCurrentSpouse(): Individual | null
694 694
     {
695 695
         $family = $this->spouseFamilies()->last();
696 696
 
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
      *
730 730
      * @return Collection<int,Family>
731 731
      */
732
-    public function childFamilies(int|null $access_level = null): Collection
732
+    public function childFamilies(int | null $access_level = null): Collection
733 733
     {
734 734
         $access_level ??= Auth::accessLevel($this->tree);
735 735
 
Please login to merge, or discard this patch.
app/User.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
         $qrinfo = array();
124 124
         $google2fa = new Google2FA();
125 125
         $qrinfo['secret'] = $google2fa->generateSecretKey();
126
-	$servername = $_SERVER['SERVER_NAME'];
127
-	settype($servername, "string");
126
+    $servername = $_SERVER['SERVER_NAME'];
127
+    settype($servername, "string");
128 128
         $data = 'otpauth://totp/' . $this->user_id . '?secret=' . $qrinfo['secret'] . '&issuer=' . $servername;
129 129
         $qrcode = new QRCode();
130 130
         $qrinfo['qrcode'] = $qrcode->render($data);
@@ -291,12 +291,12 @@  discard block
 block discarded – undo
291 291
     public function check2facode(string $code2fa): bool
292 292
     {
293 293
         $secret = DB::table('user')
294
-             ->where('user_id', '=', $this->id())
295
-             ->value('secret');
296
-	settype($secret, "string");
294
+                ->where('user_id', '=', $this->id())
295
+                ->value('secret');
296
+    settype($secret, "string");
297 297
         $google2fa = new Google2FA();
298
-	$googleverifystatus = $google2fa->verifyKey($secret, $code2fa);
299
-	settype($googleverifystatus, "bool");
298
+    $googleverifystatus = $google2fa->verifyKey($secret, $code2fa);
299
+    settype($googleverifystatus, "bool");
300 300
         if ($googleverifystatus) {
301 301
             return true;
302 302
         }
Please login to merge, or discard this patch.