Passed
Pull Request — main (#5039)
by Bernard
06:46
created
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/Factories/SlugFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
  */
35 35
 class SlugFactory implements SlugFactoryInterface
36 36
 {
37
-    private Transliterator|null $transliterator = null;
37
+    private Transliterator | null $transliterator = null;
38 38
 
39 39
     public function __construct()
40 40
     {
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.