Passed
Pull Request — main (#3887)
by Rico
06:03
created
app/Statistics/Google/ChartMedia.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         $chart_color1 = (string) $this->theme->parameter('distribution-chart-no-values');
102 102
         $chart_color2 = (string) $this->theme->parameter('distribution-chart-high-values');
103 103
         $color_from   = $color_from ?? $chart_color1;
104
-        $color_to     = $color_to   ?? $chart_color2;
104
+        $color_to     = $color_to ?? $chart_color2;
105 105
 
106 106
         $data = [
107 107
             [
Please login to merge, or discard this patch.
app/Statistics/Google/ChartIndividualWithSources.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         $chart_color1 = (string) $this->theme->parameter('distribution-chart-no-values');
102 102
         $chart_color2 = (string) $this->theme->parameter('distribution-chart-high-values');
103 103
         $color_from   = $color_from ?? $chart_color1;
104
-        $color_to     = $color_to   ?? $chart_color2;
104
+        $color_to     = $color_to ?? $chart_color2;
105 105
 
106 106
         $data = [
107 107
             [
Please login to merge, or discard this patch.
app/Statistics/Google/ChartFamilyWithSources.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         $chart_color1 = (string) $this->theme->parameter('distribution-chart-no-values');
102 102
         $chart_color2 = (string) $this->theme->parameter('distribution-chart-high-values');
103 103
         $color_from   = $color_from ?? $chart_color1;
104
-        $color_to     = $color_to   ?? $chart_color2;
104
+        $color_to     = $color_to ?? $chart_color2;
105 105
 
106 106
         $data = [
107 107
             [
Please login to merge, or discard this patch.
app/Statistics/Google/ChartDivorce.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         $chart_color1 = (string) $this->theme->parameter('distribution-chart-no-values');
102 102
         $chart_color2 = (string) $this->theme->parameter('distribution-chart-high-values');
103 103
         $color_from   = $color_from ?? $chart_color1;
104
-        $color_to     = $color_to   ?? $chart_color2;
104
+        $color_to     = $color_to ?? $chart_color2;
105 105
 
106 106
         $data = [
107 107
             [
Please login to merge, or discard this patch.
app/Source.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 {
30 30
     public const RECORD_TYPE = 'SOUR';
31 31
 
32
-    protected const ROUTE_NAME  = SourcePage::class;
32
+    protected const ROUTE_NAME = SourcePage::class;
33 33
 
34 34
     /**
35 35
      * Each object type may have its own special rules, and re-implement this function.
Please login to merge, or discard this patch.
app/Statistics/Repository/FamilyDatesRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
             ->select(['d_gid as id', 'd_year as year', 'd_fact AS fact', 'd_type AS type'])
80 80
             ->where('d_file', '=', $this->tree->id())
81 81
             ->where('d_fact', '=', $fact)
82
-            ->where('d_julianday1', '=', function (Builder $query) use ($operation, $fact): void {
82
+            ->where('d_julianday1', '=', function (Builder $query) use ($operation, $fact) : void {
83 83
                 $query->selectRaw($operation . '(d_julianday1)')
84 84
                     ->from('dates')
85 85
                     ->where('d_file', '=', $this->tree->id())
Please login to merge, or discard this patch.
app/Module/BranchesListModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 {
65 65
     use ModuleListTrait;
66 66
 
67
-    protected const ROUTE_URL  = '/tree/{tree}/branches{/surname}';
67
+    protected const ROUTE_URL = '/tree/{tree}/branches{/surname}';
68 68
 
69 69
     /** @var ModuleService */
70 70
     protected $module_service;
Please login to merge, or discard this patch.
app/Module/IndividualListModule.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -326,7 +326,8 @@  discard block
 block discarded – undo
326 326
                     <li class="wt-initials-list-item d-flex">
327 327
                         <?php if ($count > 0) : ?>
328 328
                             <a href="<?= e($this->listUrl($tree, ['alpha' => $letter, 'tree' => $tree->name()])) ?>" class="wt-initial px-1<?= $letter === $alpha ? ' active' : '' ?> '" title="<?= I18N::number($count) ?>"><?= $this->surnameInitial((string) $letter) ?></a>
329
-                        <?php else : ?>
329
+                        <?php else {
330
+    : ?>
330 331
                             <span class="wt-initial px-1 text-muted"><?= $this->surnameInitial((string) $letter) ?></span>
331 332
 
332 333
                         <?php endif ?>
@@ -380,6 +381,7 @@  discard block
 block discarded – undo
380 381
 
381 382
             if ($show === 'indi' || $show === 'surn') {
382 383
                 $surns = $this->surnames($tree, $surname, $alpha, $show_marnm === 'yes', $families, I18N::locale());
384
+}
383 385
                 if ($show === 'surn') {
384 386
                     // Show the surname list
385 387
                     switch ($tree->getPreference('SURNAME_LIST_STYLE')) {
Please login to merge, or discard this patch.
app/Http/RequestHandlers/PendingChangesLogData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
                 '<div class="gedcom-data" dir="ltr">' .
113 113
                 preg_replace_callback(
114 114
                     '/@(' . Gedcom::REGEX_XREF . ')@/',
115
-                    static function (array $match) use ($tree): string {
115
+                    static function (array $match) use ($tree) : string {
116 116
                         $record = Registry::gedcomRecordFactory()->make($match[1], $tree);
117 117
 
118 118
                         return $record ? '<a href="' . e($record->url()) . '">' . $match[0] . '</a>' : $match[0];
Please login to merge, or discard this patch.