Passed
Push — develop ( 95b073...f4483f )
by Greg
06:17
created
app/Encodings/UTF8.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -828,7 +828,7 @@
 block discarded – undo
828 828
     public static function chr(int $code): string
829 829
     {
830 830
         if ($code < 0 || $code > 0x1FFFFF) {
831
-            throw new InvalidArgumentException((string)$code);
831
+            throw new InvalidArgumentException((string) $code);
832 832
         }
833 833
 
834 834
         if ($code <= 0x7F) {
Please login to merge, or discard this patch.
app/Http/RequestHandlers/DataFixUpdateAll.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
         /** @var Collection<int,GedcomRecord> $records */
94 94
         $records = $rows->map(function (object $row) use ($tree): ?GedcomRecord {
95 95
             return $this->data_fix_service->getRecordByType($row->xref, $tree, $row->type);
96
-        })->filter(static function (?GedcomRecord $record) use ($module, $params): bool {
96
+        })->filter(static function (?GedcomRecord $record) use ($module, $params) : bool {
97 97
             return $record instanceof GedcomRecord && !$record->isPendingDeletion() && $module->doesRecordNeedUpdate($record, $params);
98 98
         });
99 99
 
Please login to merge, or discard this patch.
app/Factories/TimestampFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function make(int $timestamp, UserInterface $user = null): TimestampInterface
47 47
     {
48
-        $user     ??= Auth::user();
48
+        $user ??= Auth::user();
49 49
         $timezone = $user->getPreference(UserInterface::PREF_TIME_ZONE, Site::getPreference('TIMEZONE'));
50 50
         $locale   = I18N::locale()->code();
51 51
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function fromString(?string $string, string $format = 'Y-m-d H:i:s', UserInterface $user = null): TimestampInterface
63 63
     {
64
-        $string    ??= date($format);
64
+        $string ??= date($format);
65 65
         $timestamp = date_create_from_format($format, $string);
66 66
 
67 67
         if ($timestamp === false) {
Please login to merge, or discard this patch.
app/Report/ReportParserSetup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
             } else {
127 127
                 $match = [];
128 128
                 if (preg_match('/NOW([+\-]\d+)/', $attrs['default'], $match) > 0) {
129
-                    $date = Registry::timestampFactory()->now()->addDays((int)$match[1]);
129
+                    $date = Registry::timestampFactory()->now()->addDays((int) $match[1]);
130 130
                     $this->input['default'] = strtoupper($date->format('d M Y'));
131 131
                 } else {
132 132
                     $this->input['default'] = $attrs['default'];
Please login to merge, or discard this patch.
app/Console/ComposerScripts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,9 +85,9 @@
 block discarded – undo
85 85
         $filesystem = new Filesystem(new LocalFilesystemAdapter(self::ROOT_DIR));
86 86
 
87 87
         $scripts = $filesystem->listContents('app', FilesystemReader::LIST_DEEP)
88
-            ->filter(static fn (StorageAttributes $file): bool => $file->isFile())
89
-            ->map(static fn (StorageAttributes $file): string => $file->path())
90
-            ->filter(static fn (string $script): bool => !str_contains($script, 'Interface.php') && !str_contains($script, 'Abstract'));
88
+            ->filter(static fn(StorageAttributes $file): bool => $file->isFile())
89
+            ->map(static fn(StorageAttributes $file): string => $file->path())
90
+            ->filter(static fn(string $script): bool => !str_contains($script, 'Interface.php') && !str_contains($script, 'Abstract'));
91 91
 
92 92
         foreach ($scripts as $script) {
93 93
             $class = strtr($script, ['app/' => '', '.php' => '', '/' => '\\']);
Please login to merge, or discard this patch.
app/Http/Middleware/HandleExceptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
     {
155 155
         $tree    = Validator::attributes($request)->treeOptional();
156 156
         $default = Site::getPreference('DEFAULT_GEDCOM');
157
-        $tree    ??= $this->tree_service->all()[$default] ?? $this->tree_service->all()->first();
157
+        $tree ??= $this->tree_service->all()[$default] ?? $this->tree_service->all()->first();
158 158
 
159 159
         $status_code = $exception->getCode();
160 160
 
Please login to merge, or discard this patch.
app/Module/ShareAnniversaryModule.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     {
101 101
         if ($record instanceof Individual) {
102 102
             $facts = $record->facts(static::INDIVIDUAL_EVENTS, true)
103
-                ->merge($record->spouseFamilies()->map(fn (Family $family): Collection => $family->facts(static::FAMILY_EVENTS, true)));
103
+                ->merge($record->spouseFamilies()->map(fn(Family $family): Collection => $family->facts(static::FAMILY_EVENTS, true)));
104 104
         } elseif ($record instanceof Family) {
105 105
             $facts = $record->facts(static::FAMILY_EVENTS, true);
106 106
         } else {
@@ -110,11 +110,11 @@  discard block
 block discarded – undo
110 110
         // iCalendar only supports exact Gregorian dates.
111 111
         $facts = $facts
112 112
             ->flatten()
113
-            ->filter(fn (Fact $fact): bool => $fact->date()->isOK())
114
-            ->filter(fn (Fact $fact): bool => $fact->date()->qual1 === '')
115
-            ->filter(fn (Fact $fact): bool => $fact->date()->minimumDate() instanceof GregorianDate)
116
-            ->filter(fn (Fact $fact): bool => $fact->date()->minimumJulianDay() === $fact->date()->maximumJulianDay())
117
-            ->mapWithKeys(fn (Fact $fact): array => [
113
+            ->filter(fn(Fact $fact): bool => $fact->date()->isOK())
114
+            ->filter(fn(Fact $fact): bool => $fact->date()->qual1 === '')
115
+            ->filter(fn(Fact $fact): bool => $fact->date()->minimumDate() instanceof GregorianDate)
116
+            ->filter(fn(Fact $fact): bool => $fact->date()->minimumJulianDay() === $fact->date()->maximumJulianDay())
117
+            ->mapWithKeys(fn(Fact $fact): array => [
118 118
                 route(static::class, ['tree' => $record->tree()->name(), 'xref' => $fact->record()->xref(), 'fact_id' => $fact->id()]) =>
119 119
                     $fact->label() . ' — ' . $fact->date()->display(),
120 120
             ]);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         $record  = Auth::checkRecordAccess($record);
147 147
 
148 148
         $fact = $record->facts()
149
-            ->filter(fn (Fact $fact): bool => $fact->id() === $fact_id)
149
+            ->filter(fn(Fact $fact): bool => $fact->id() === $fact_id)
150 150
             ->first();
151 151
 
152 152
         if ($fact instanceof Fact) {
Please login to merge, or discard this patch.
app/Statistics/Repository/IndividualRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -588,7 +588,7 @@
 block discarded – undo
588 588
 
589 589
         $module = $module_service
590 590
             ->findByComponent(ModuleListInterface::class, $this->tree, Auth::user())
591
-            ->first(static fn (ModuleInterface $module): bool => $module instanceof IndividualListModule);
591
+            ->first(static fn(ModuleInterface $module): bool => $module instanceof IndividualListModule);
592 592
 
593 593
         if ($type === 'list') {
594 594
             return view('lists/surnames-bullet-list', [
Please login to merge, or discard this patch.
app/Module/ModuleThemeTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 
398 398
         $pedigree_chart = $module_service
399 399
             ->findByComponent(ModuleChartInterface::class, $tree, Auth::user())
400
-            ->first(static fn (ModuleInterface $module): bool => $module instanceof PedigreeChartModule);
400
+            ->first(static fn(ModuleInterface $module): bool => $module instanceof PedigreeChartModule);
401 401
 
402 402
         if ($my_xref !== '' && $pedigree_chart instanceof PedigreeChartModule) {
403 403
             $individual = Registry::individualFactory()->make($my_xref, $tree);
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
 
487 487
         return $module_service
488 488
             ->findByComponent(ModuleMenuInterface::class, $tree, Auth::user())
489
-            ->map(static fn (ModuleMenuInterface $menu): ?Menu => $menu->getMenu($tree))
489
+            ->map(static fn(ModuleMenuInterface $menu): ?Menu => $menu->getMenu($tree))
490 490
             ->filter()
491 491
             ->all();
492 492
     }
Please login to merge, or discard this patch.