@@ -430,7 +430,7 @@ |
||
| 430 | 430 | |
| 431 | 431 | public function getCitationItemById($id) |
| 432 | 432 | { |
| 433 | - return $this->citationItems->filter(function ($item) use ($id) { |
|
| 433 | + return $this->citationItems->filter(function($item) use ($id) { |
|
| 434 | 434 | return $item->id === $id; |
| 435 | 435 | })->current(); |
| 436 | 436 | } |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | ); |
| 160 | 160 | } |
| 161 | 161 | list($from, $to) = $ranges; |
| 162 | - return $from . "–" . $to; |
|
| 162 | + return $from."–".$to; |
|
| 163 | 163 | } |
| 164 | 164 | } |
| 165 | 165 | return $page; |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public static function mapLocatorLabelToRenderVariable($locatorTerm) |
| 40 | 40 | { |
| 41 | 41 | if ($locatorTerm instanceof Locator) { |
| 42 | - $locatorTerm = (string)$locatorTerm; |
|
| 42 | + $locatorTerm = (string) $locatorTerm; |
|
| 43 | 43 | } |
| 44 | 44 | return |
| 45 | 45 | array_key_exists($locatorTerm, self::LABEL_TO_VARIABLE_MAP) ? |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | $resultNames[] = $this->formatName($name, $rank); |
| 358 | 358 | } |
| 359 | 359 | break; |
| 360 | - /* “partial-first” - as “partial-each”, but substitution is limited to the first name of the name |
|
| 360 | + /* “partial-first” - as “partial-each”, but substitution is limited to the first name of the name |
|
| 361 | 361 | variable. */ |
| 362 | 362 | case SubsequentAuthorSubstituteRule::PARTIAL_FIRST: |
| 363 | 363 | if ($rank === 0) { |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | } |
| 372 | 372 | break; |
| 373 | 373 | |
| 374 | - /* “complete-each” - requires a complete match like “complete-all”, but now the value of |
|
| 374 | + /* “complete-each” - requires a complete match like “complete-all”, but now the value of |
|
| 375 | 375 | subsequent-author-substitute substitutes for each rendered name. */ |
| 376 | 376 | case SubsequentAuthorSubstituteRule::COMPLETE_EACH: |
| 377 | 377 | try { |