@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $stylesRenderer = StylesRenderer::factory($node); |
| 74 | 74 | $layout->setChildren($children); |
| 75 | 75 | $layout->setStylesRenderer($stylesRenderer); |
| 76 | - $layout->setDelimiter((string)$node->attributes()['delimiter']); |
|
| 76 | + $layout->setDelimiter((string) $node->attributes()['delimiter']); |
|
| 77 | 77 | return $layout; |
| 78 | 78 | } |
| 79 | 79 | |
@@ -98,15 +98,14 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | if (CiteProc::getContext()->isModeBibliography()) { |
| 101 | - foreach ($data as $citationNumber => $item) { |
|
| 102 | - ++self::$numberOfCitedItems; |
|
| 101 | + foreach ($data as $citationNumber => $item) {++self::$numberOfCitedItems; |
|
| 103 | 102 | CiteProc::getContext()->getResults()->append( |
| 104 | 103 | $this->wrapBibEntry($item, $this->renderSingle($item, $citationNumber)) |
| 105 | 104 | ); |
| 106 | 105 | } |
| 107 | 106 | $ret .= implode($this->delimiter, CiteProc::getContext()->getResults()->toArray()); |
| 108 | 107 | $ret = StringHelper::clearApostrophes($ret); |
| 109 | - return "<div class=\"csl-bib-body\">".$ret."\n</div>"; |
|
| 108 | + return "<div class=\"csl-bib-body\">" . $ret . "\n</div>"; |
|
| 110 | 109 | } elseif (CiteProc::getContext()->isModeCitation()) { |
| 111 | 110 | if ($citationItems->count() > 0) { //is there a filter for specific citations? |
| 112 | 111 | if ($this->isGroupedCitations($citationItems)) { //if citation items grouped? |
@@ -184,7 +183,7 @@ discard block |
||
| 184 | 183 | private function wrapBibEntry($dataItem, $value): string |
| 185 | 184 | { |
| 186 | 185 | $value = $this->stylesRenderer->renderAffixes($value); |
| 187 | - return "\n ". |
|
| 186 | + return "\n " . |
|
| 188 | 187 | "<div class=\"csl-entry\">" . |
| 189 | 188 | $renderedItem = CiteProcHelper::applyAdditionMarkupFunction($dataItem, "csl-entry", $value) . |
| 190 | 189 | "</div>"; |