@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | foreach ($node->attributes() as $attribute) { |
| 219 | 219 | switch ($attribute->getName()) { |
| 220 | 220 | case 'and': |
| 221 | - $and = (string)$attribute; |
|
| 221 | + $and = (string) $attribute; |
|
| 222 | 222 | if ("text" === $and) { |
| 223 | 223 | $this->and = CiteProc::getContext()->getLocale()->filter('terms', 'and')->single; |
| 224 | 224 | } elseif ('symbol' === $and) { |
@@ -327,16 +327,16 @@ discard block |
||
| 327 | 327 | if (count($resultNames) === 1) { |
| 328 | 328 | $text .= " $etAl"; |
| 329 | 329 | } else { |
| 330 | - $text .= $this->delimiter . $etAl; |
|
| 330 | + $text .= $this->delimiter . $etAl; |
|
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | } |
| 334 | 334 | } |
| 335 | 335 | if ($this->form == 'count') { |
| 336 | 336 | if ($etAl === false) { |
| 337 | - return (int)count($resultNames); |
|
| 337 | + return (int) count($resultNames); |
|
| 338 | 338 | } else { |
| 339 | - return (int)(count($resultNames) - 1); |
|
| 339 | + return (int) (count($resultNames) - 1); |
|
| 340 | 340 | } |
| 341 | 341 | } |
| 342 | 342 | // strip out the last delimiter if not required |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | if (count($this->nameParts) > 0) { |
| 377 | 377 | /** @var NamePart $namePart */ |
| 378 | 378 | foreach ($this->nameParts as $namePart) { |
| 379 | - $name->{$namePart->getName()} = $namePart->render($name); |
|
| 379 | + $name->{$namePart->getName()} = $namePart->render($name); |
|
| 380 | 380 | } |
| 381 | 381 | $name->suffix = ''; |
| 382 | 382 | $name->{'non-dropping-particle'} = ''; |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | return $numberFormatter->parse($evalValue) !== false; |
| 61 | 61 | } else if (preg_match(Number::PATTERN_ROMAN, $evalValue)) { |
| 62 | 62 | return Number::roman2Dec($evalValue) !== false; |
| 63 | - } else if (preg_match(Number::PATTERN_COMMA_AMPERSAND_RANGE, $evalValue)){ |
|
| 63 | + } else if (preg_match(Number::PATTERN_COMMA_AMPERSAND_RANGE, $evalValue)) { |
|
| 64 | 64 | return true; |
| 65 | 65 | } |
| 66 | 66 | return false; |