@@ -94,20 +94,20 @@ |
||
| 94 | 94 | */ |
| 95 | 95 | foreach ($node->children() as $child) { |
| 96 | 96 | switch ($child->getName()) { |
| 97 | - case "name-part": |
|
| 98 | - /** |
|
| 97 | + case "name-part": |
|
| 98 | + /** |
|
| 99 | 99 | * @var NamePart $namePart |
| 100 | 100 | */ |
| 101 | - $namePart = Factory::create($child, $this); |
|
| 102 | - $this->nameParts[$namePart->getName()] = $namePart; |
|
| 101 | + $namePart = Factory::create($child, $this); |
|
| 102 | + $this->nameParts[$namePart->getName()] = $namePart; |
|
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | foreach ($node->attributes() as $attribute) { |
| 107 | 107 | switch ($attribute->getName()) { |
| 108 | - case 'form': |
|
| 109 | - $this->form = (string) $attribute; |
|
| 110 | - break; |
|
| 108 | + case 'form': |
|
| 109 | + $this->form = (string) $attribute; |
|
| 110 | + break; |
|
| 111 | 111 | } |
| 112 | 112 | } |
| 113 | 113 | |
@@ -269,17 +269,17 @@ discard block |
||
| 269 | 269 | |
| 270 | 270 | switch ($this->delimiterPrecedesEtAl) { |
| 271 | 271 | case 'never': |
| 272 | - $text = $text . " " . $this->etAl; |
|
| 272 | + $text = $text." ".$this->etAl; |
|
| 273 | 273 | break; |
| 274 | 274 | case 'always': |
| 275 | - $text = $text . $this->delimiter . $this->etAl; |
|
| 275 | + $text = $text.$this->delimiter.$this->etAl; |
|
| 276 | 276 | break; |
| 277 | 277 | case 'contextual': |
| 278 | 278 | default: |
| 279 | 279 | if (count($resultNames) === 1) { |
| 280 | - $text .= " " . $this->etAl; |
|
| 280 | + $text .= " ".$this->etAl; |
|
| 281 | 281 | } else { |
| 282 | - $text .= $this->delimiter . $this->etAl; |
|
| 282 | + $text .= $this->delimiter.$this->etAl; |
|
| 283 | 283 | } |
| 284 | 284 | } |
| 285 | 285 | } |
@@ -576,9 +576,9 @@ discard block |
||
| 576 | 576 | $text = !empty($given) ? $given." ".$family : $family; |
| 577 | 577 | } |
| 578 | 578 | } else if (StringHelper::isAsianString(NameHelper::normalizeName($data))) { |
| 579 | - $text = $this->form === "long" ? $data->family . $data->given : $data->family; |
|
| 579 | + $text = $this->form === "long" ? $data->family.$data->given : $data->family; |
|
| 580 | 580 | } else { |
| 581 | - $text = $this->form === "long" ? $data->family . " " . $data->given : $data->family; |
|
| 581 | + $text = $this->form === "long" ? $data->family." ".$data->given : $data->family; |
|
| 582 | 582 | } |
| 583 | 583 | return $text; |
| 584 | 584 | } |