@@ -82,7 +82,7 @@ |
||
82 | 82 | if (error_get_last() !== null && error_get_last()['type'] & E_ERROR) { |
83 | 83 | // If PHP does not display the error, then we must display it. |
84 | 84 | if (ini_get('display_errors') !== '1') { |
85 | - echo error_get_last()['message'], '<br><br>', error_get_last()['file'] , ': ', error_get_last()['line']; |
|
85 | + echo error_get_last()['message'], '<br><br>', error_get_last()['file'], ': ', error_get_last()['line']; |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 | }); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | break; |
136 | 136 | |
137 | 137 | case 'DATE': |
138 | - $attributes += [ |
|
138 | + $attributes += [ |
|
139 | 139 | 'type' => 'text', |
140 | 140 | 'value' => $input['default'], |
141 | 141 | 'dir' => 'ltr', |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | default: |
149 | 149 | switch ($input['type']) { |
150 | 150 | case 'text': |
151 | - $attributes += [ |
|
151 | + $attributes += [ |
|
152 | 152 | 'type' => 'text', |
153 | 153 | 'value' => $input['default'], |
154 | 154 | ]; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | break; |
157 | 157 | |
158 | 158 | case 'checkbox': |
159 | - $attributes += [ |
|
159 | + $attributes += [ |
|
160 | 160 | 'type' => 'checkbox', |
161 | 161 | 'checked' => (bool) $input['default'], |
162 | 162 | ]; |
@@ -59,6 +59,6 @@ |
||
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 | } |
@@ -59,5 +59,5 @@ |
||
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 | } |
@@ -50,7 +50,7 @@ |
||
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. |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | class SubmitterFactory extends AbstractGedcomRecordFactory implements SubmitterFactoryInterface |
36 | 36 | { |
37 | - private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Submitter::RECORD_TYPE .'/'; |
|
37 | + private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Submitter::RECORD_TYPE . '/'; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Create a submitter. |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @return Submitter |
91 | 91 | */ |
92 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Submitter |
|
92 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Submitter |
|
93 | 93 | { |
94 | 94 | return new Submitter($xref, $gedcom, $pending, $tree); |
95 | 95 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | class HeaderFactory extends AbstractGedcomRecordFactory implements HeaderFactoryInterface |
36 | 36 | { |
37 | - private const TYPE_CHECK_REGEX = '/^0 ' . Header::RECORD_TYPE .'/'; |
|
37 | + private const TYPE_CHECK_REGEX = '/^0 ' . Header::RECORD_TYPE . '/'; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Create a header. |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @return Header |
91 | 91 | */ |
92 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Header |
|
92 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Header |
|
93 | 93 | { |
94 | 94 | return new Header($xref, $gedcom, $pending, $tree); |
95 | 95 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | class SubmissionFactory extends AbstractGedcomRecordFactory implements SubmissionFactoryInterface |
36 | 36 | { |
37 | - private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Submission::RECORD_TYPE .'/'; |
|
37 | + private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Submission::RECORD_TYPE . '/'; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Create a submission. |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @return Submission |
91 | 91 | */ |
92 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Submission |
|
92 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Submission |
|
93 | 93 | { |
94 | 94 | return new Submission($xref, $gedcom, $pending, $tree); |
95 | 95 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | class IndividualFactory extends AbstractGedcomRecordFactory implements IndividualFactoryInterface |
36 | 36 | { |
37 | - private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Individual::RECORD_TYPE .'/'; |
|
37 | + private const TYPE_CHECK_REGEX = '/^0 @[^@]+@ ' . Individual::RECORD_TYPE . '/'; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Create an individual. |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * |
89 | 89 | * @return Individual |
90 | 90 | */ |
91 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Individual |
|
91 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Individual |
|
92 | 92 | { |
93 | 93 | return new Individual($xref, $gedcom, $pending, $tree); |
94 | 94 | } |