Passed
Push — main ( 673106...063e5b )
by Greg
08:00
created
app/Factories/GedcomRecordFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * Create a GedcomRecord object.
48 48
      */
49
-    public function make(string $xref, Tree $tree, string|null $gedcom = null): GedcomRecord|null
49
+    public function make(string $xref, Tree $tree, string | null $gedcom = null): GedcomRecord | null
50 50
     {
51 51
         // We know the type of the record.  Return it directly.
52 52
         if ($gedcom !== null && preg_match('/^0(?: @[^@]+@)? ([A-Z_]+)/', $gedcom, $match)) {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      *
114 114
      * @return GedcomRecord
115 115
      */
116
-    public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): GedcomRecord
116
+    public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): GedcomRecord
117 117
     {
118 118
         return new GedcomRecord($xref, $gedcom, $pending, $tree);
119 119
     }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      *
140 140
      * @return GedcomRecord
141 141
      */
142
-    private function newGedcomRecord(string $type, string $xref, string $gedcom, string|null $pending, Tree $tree): GedcomRecord
142
+    private function newGedcomRecord(string $type, string $xref, string $gedcom, string | null $pending, Tree $tree): GedcomRecord
143 143
     {
144 144
         switch ($type) {
145 145
             case Family::RECORD_TYPE:
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      *
200 200
      * @return string|null
201 201
      */
202
-    private function gedcom(string $xref, Tree $tree): string|null
202
+    private function gedcom(string $xref, Tree $tree): string | null
203 203
     {
204 204
         return DB::table('other')
205 205
             ->where('o_id', '=', $xref)
Please login to merge, or discard this patch.
app/Factories/NoteFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Create a note.
40 40
      */
41
-    public function make(string $xref, Tree $tree, string|null $gedcom = null): Note|null
41
+    public function make(string $xref, Tree $tree, string | null $gedcom = null): Note | null
42 42
     {
43 43
         return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) {
44 44
             $gedcom ??= $this->gedcom($xref, $tree);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return Note
79 79
      */
80
-    public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Note
80
+    public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): Note
81 81
     {
82 82
         return new Note($xref, $gedcom, $pending, $tree);
83 83
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return string|null
92 92
      */
93
-    protected function gedcom(string $xref, Tree $tree): string|null
93
+    protected function gedcom(string $xref, Tree $tree): string | null
94 94
     {
95 95
         return DB::table('other')
96 96
             ->where('o_id', '=', $xref)
Please login to merge, or discard this patch.
app/SurnameTradition/LithuanianSurnameTradition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      *
88 88
      * @return array<int,string>
89 89
      */
90
-    public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array
90
+    public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array
91 91
     {
92 92
         if (preg_match(self::REGEX_SURN, $this->extractName($father), $match) === 1) {
93 93
             if ($sex === 'F') {
Please login to merge, or discard this patch.
app/SurnameTradition/DefaultSurnameTradition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @return array<int,string>
88 88
      */
89
-    public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array
89
+    public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array
90 90
     {
91 91
         return [
92 92
             $this->buildName('//', ['TYPE' => NameType::VALUE_BIRTH]),
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      *
156 156
      * @return string
157 157
      */
158
-    protected function extractName(Individual|null $individual): string
158
+    protected function extractName(Individual | null $individual): string
159 159
     {
160 160
         if ($individual instanceof Individual) {
161 161
             $fact = $individual
Please login to merge, or discard this patch.
app/SurnameTradition/SurnameTraditionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      *
58 58
      * @return array<int,string>
59 59
      */
60
-    public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array;
60
+    public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array;
61 61
 
62 62
     /**
63 63
      * What name is given to a new parent
Please login to merge, or discard this patch.
app/SurnameTradition/SpanishSurnameTradition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      *
73 73
      * @return array<int,string>
74 74
      */
75
-    public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array
75
+    public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array
76 76
     {
77 77
         if (preg_match(self::REGEX_SURNS, $this->extractName($father), $match_father) === 1) {
78 78
             $father_surname = $match_father['SURN1'];
Please login to merge, or discard this patch.
app/SurnameTradition/PortugueseSurnameTradition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      *
73 73
      * @return array<int,string>
74 74
      */
75
-    public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array
75
+    public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array
76 76
     {
77 77
         if (preg_match(self::REGEX_SURNS, $this->extractName($father), $match_father) === 1) {
78 78
             $father_surname = $match_father['SURN2'];
Please login to merge, or discard this patch.
app/SurnameTradition/IcelandicSurnameTradition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      *
72 72
      * @return array<int,string>
73 73
      */
74
-    public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array
74
+    public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array
75 75
     {
76 76
         if (preg_match(self::REGEX_GIVN, $this->extractName($father), $match) === 1) {
77 77
             switch ($sex) {
Please login to merge, or discard this patch.
app/SurnameTradition/MatrilinealSurnameTradition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      *
60 60
      * @return array<int,string>
61 61
      */
62
-    public function newChildNames(Individual|null $father, Individual|null $mother, string $sex): array
62
+    public function newChildNames(Individual | null $father, Individual | null $mother, string $sex): array
63 63
     {
64 64
         if (preg_match(self::REGEX_SPFX_SURN, $this->extractName($mother), $match) === 1) {
65 65
             $name = $match['NAME'];
Please login to merge, or discard this patch.