Passed
Push — 2.1 ( 4c5fd4...38ac26 )
by Greg
32:01 queued 20:44
created
app/Factories/SubmissionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      *
86 86
      * @return Submission
87 87
      */
88
-    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Submission
88
+    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Submission
89 89
     {
90 90
         return new Submission($xref, $gedcom, $pending, $tree);
91 91
     }
Please login to merge, or discard this patch.
app/Contracts/SubmissionFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,6 +59,6 @@
 block discarded – undo
59 59
      *
60 60
      * @return Submission
61 61
      */
62
-    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Submission;
62
+    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Submission;
63 63
 
64 64
 }
Please login to merge, or discard this patch.
app/Contracts/HeaderFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,5 +59,5 @@
 block discarded – undo
59 59
      *
60 60
      * @return Header
61 61
      */
62
-    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Header;
62
+    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Header;
63 63
 }
Please login to merge, or discard this patch.
app/Contracts/GedcomRecordFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      *
51 51
      * @return GedcomRecord
52 52
      */
53
-    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): GedcomRecord;
53
+    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : GedcomRecord;
54 54
 
55 55
     /**
56 56
      * Create a GedcomRecord object from a row in the database.
Please login to merge, or discard this patch.
app/Contracts/LocationFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,5 +59,5 @@
 block discarded – undo
59 59
      *
60 60
      * @return Location
61 61
      */
62
-    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Location;
62
+    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Location;
63 63
 }
Please login to merge, or discard this patch.
app/Factories/LocationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
      *
90 90
      * @return Location
91 91
      */
92
-    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Location
92
+    public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Location
93 93
     {
94 94
         return new Location($xref, $gedcom, $pending, $tree);
95 95
     }
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.
app/Services/UserService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function find(?int $user_id): ?User
54 54
     {
55
-        return Registry::cache()->array()->remember('user-' . $user_id, static function () use ($user_id): ?User {
55
+        return Registry::cache()->array()->remember('user-' . $user_id, static function () use ($user_id) : ?User {
56 56
             return DB::table('user')
57 57
                 ->where('user_id', '=', $user_id)
58 58
                 ->get()
Please login to merge, or discard this patch.
app/Date.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -457,7 +457,7 @@
 block discarded – undo
457 457
     public function addYears(int $years, string $qualifier = ''): Date
458 458
     {
459 459
         $tmp               = clone $this;
460
-        $tmp->date1->year  += $years;
460
+        $tmp->date1->year += $years;
461 461
         $tmp->date1->month = 0;
462 462
         $tmp->date1->day   = 0;
463 463
         $tmp->date1->setJdFromYmd();
Please login to merge, or discard this patch.