@@ -395,7 +395,7 @@ |
||
395 | 395 | } |
396 | 396 | |
397 | 397 | /** |
398 | - * @param $name |
|
398 | + * @param \stdClass $name |
|
399 | 399 | * @return string |
400 | 400 | */ |
401 | 401 | private function getNamesString($name, $rank) |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | foreach ($node->attributes() as $attribute) { |
226 | 226 | switch ($attribute->getName()) { |
227 | 227 | case 'and': |
228 | - $and = (string)$attribute; |
|
228 | + $and = (string) $attribute; |
|
229 | 229 | if ("text" === $and) { |
230 | 230 | $this->and = CiteProc::getContext()->getLocale()->filter('terms', 'and')->single; |
231 | 231 | } elseif ('symbol' === $and) { |
@@ -334,16 +334,16 @@ discard block |
||
334 | 334 | if (count($resultNames) === 1) { |
335 | 335 | $text .= " $etAl"; |
336 | 336 | } else { |
337 | - $text .= $this->delimiter . $etAl; |
|
337 | + $text .= $this->delimiter . $etAl; |
|
338 | 338 | } |
339 | 339 | |
340 | 340 | } |
341 | 341 | } |
342 | 342 | if ($this->form == 'count') { |
343 | 343 | if ($etAl === false) { |
344 | - return (int)count($resultNames); |
|
344 | + return (int) count($resultNames); |
|
345 | 345 | } else { |
346 | - return (int)(count($resultNames) - 1); |
|
346 | + return (int) (count($resultNames) - 1); |
|
347 | 347 | } |
348 | 348 | } |
349 | 349 | // strip out the last delimiter if not required |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | if (count($this->nameParts) > 0) { |
386 | 386 | /** @var NamePart $namePart */ |
387 | 387 | foreach ($this->nameParts as $namePart) { |
388 | - $nameObj->{$namePart->getName()} = $namePart->render($name); |
|
388 | + $nameObj->{$namePart->getName()} = $namePart->render($name); |
|
389 | 389 | } |
390 | 390 | } |
391 | 391 | |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | $suffix); |
437 | 437 | //remove last comma when no suffix exist. |
438 | 438 | $text = trim($text); |
439 | - $text = substr($text, -1) === "," ? substr($text, 0, strlen($text)-1) : $text; |
|
439 | + $text = substr($text, -1) === "," ? substr($text, 0, strlen($text) - 1) : $text; |
|
440 | 440 | break; |
441 | 441 | default: |
442 | 442 | /* |