@@ -91,15 +91,14 @@ discard block |
||
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | if (CiteProc::getContext()->isModeBibliography()) { |
| 94 | - foreach ($data as $citationNumber => $item) { |
|
| 95 | - ++self::$numberOfCitedItems; |
|
| 94 | + foreach ($data as $citationNumber => $item) {++self::$numberOfCitedItems; |
|
| 96 | 95 | CiteProc::getContext()->getResults()->append( |
| 97 | 96 | $this->wrapBibEntry($item, $this->renderSingle($item, $citationNumber)) |
| 98 | 97 | ); |
| 99 | 98 | } |
| 100 | 99 | $ret .= implode($this->delimiter, CiteProc::getContext()->getResults()->toArray()); |
| 101 | 100 | $ret = StringHelper::clearApostrophes($ret); |
| 102 | - return "<div class=\"csl-bib-body\">".$ret."\n</div>"; |
|
| 101 | + return "<div class=\"csl-bib-body\">" . $ret . "\n</div>"; |
|
| 103 | 102 | } elseif (CiteProc::getContext()->isModeCitation()) { |
| 104 | 103 | if ($citationItems->count() > 0) { //is there a filter for specific citations? |
| 105 | 104 | if ($this->isGroupedCitations($citationItems)) { //if citation items grouped? |
@@ -174,7 +173,7 @@ discard block |
||
| 174 | 173 | private function wrapBibEntry($dataItem, $value) |
| 175 | 174 | { |
| 176 | 175 | $value = $this->addAffixes($value); |
| 177 | - return "\n ". |
|
| 176 | + return "\n " . |
|
| 178 | 177 | "<div class=\"csl-entry\">" . |
| 179 | 178 | $renderedItem = CiteProcHelper::applyAdditionMarkupFunction($dataItem, "csl-entry", $value) . |
| 180 | 179 | "</div>"; |