Passed
Pull Request — main (#5166)
by Bernard
07:26
created
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.
app/SurnameTradition/PatrilinealSurnameTradition.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($father), $match) === 1) {
65 65
             $name = $match['NAME'];
Please login to merge, or discard this patch.
app/CommonMark/CensusTableStartParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
  */
31 31
 class CensusTableStartParser implements BlockStartParserInterface
32 32
 {
33
-    public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): BlockStart|null
33
+    public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): BlockStart | null
34 34
     {
35 35
         if ($cursor->getLine() === CensusTableExtension::CA_PREFIX) {
36 36
             return BlockStart::of(new CensusTableContinueParser())
Please login to merge, or discard this patch.