Passed
Push — dbal ( ac5419...2a1705 )
by Greg
08:04
created
app/Http/Middleware/BadBotBlocker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
             }
254 254
         }
255 255
 
256
-        $validated_bot =  false;
256
+        $validated_bot = false;
257 257
 
258 258
         foreach (self::ROBOT_REV_FWD_DNS as $robot => $valid_domains) {
259 259
             if (str_contains($ua, $robot)) {
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
     {
380 380
         return Registry::cache()->file()->remember('whois-asn-' . $asn, function () use ($asn): array {
381 381
             $ranges = $this->network_service->findIpRangesForAsn($asn);
382
-            $mapper = static fn (string $range): RangeInterface|null => Factory::parseRangeString($range);
382
+            $mapper = static fn (string $range): RangeInterface | null => Factory::parseRangeString($range);
383 383
             $ranges = array_map($mapper, $ranges);
384 384
 
385 385
             return array_filter($ranges);
Please login to merge, or discard this patch.
app/StatisticsData.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $rows = $query
102 102
             ->groupBy(['n_givn'])
103 103
             ->pluck(new Expression('COUNT(DISTINCT n_id) AS total'), 'n_givn')
104
-            ->map(static fn (int|string $count): int => (int) $count);
104
+            ->map(static fn (int | string $count): int => (int) $count);
105 105
 
106 106
 
107 107
         $given_names = [];
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
      *
785 785
      * @return object{id:string,year:int,fact:string,type:string}|null
786 786
      */
787
-    private function firstEvent(array $events, bool $ascending): object|null
787
+    private function firstEvent(array $events, bool $ascending): object | null
788 788
     {
789 789
         if ($events === []) {
790 790
             $events = [
@@ -803,7 +803,7 @@  discard block
 block discarded – undo
803 803
             ->orderBy('d_julianday1', $ascending ? 'ASC' : 'DESC')
804 804
             ->limit(1)
805 805
             ->get()
806
-            ->map(static fn (object $row): object => (object) [
806
+            ->map(static fn (object $row) : object => (object) [
807 807
                 'id'   => $row->id,
808 808
                 'year' => (int) $row->year,
809 809
                 'fact' => $row->fact,
@@ -916,14 +916,14 @@  discard block
 block discarded – undo
916 916
         return $date->display();
917 917
     }
918 918
 
919
-    public function isUserLoggedIn(int|null $user_id): bool
919
+    public function isUserLoggedIn(int | null $user_id): bool
920 920
     {
921 921
         return $user_id !== null && DB::table('session')
922 922
             ->where('user_id', '=', $user_id)
923 923
             ->exists();
924 924
     }
925 925
 
926
-    public function latestUserId(): int|null
926
+    public function latestUserId(): int | null
927 927
     {
928 928
         $user_id = DB::table('user')
929 929
             ->select(['user.user_id'])
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
     /**
1136 1136
      * @return object{individual:Individual,days:int}|null
1137 1137
      */
1138
-    public function longlifeQuery(string $sex): object|null
1138
+    public function longlifeQuery(string $sex): object | null
1139 1139
     {
1140 1140
         return $this->birthAndDeathQuery($sex)
1141 1141
             ->orderBy('days', 'desc')
Please login to merge, or discard this patch.