@@ -159,8 +159,8 @@ |
||
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | - * @param $data |
|
| 163 | - * @param $plural |
|
| 162 | + * @param \stdClass $data |
|
| 163 | + * @param string $plural |
|
| 164 | 164 | * @param $variable |
| 165 | 165 | * @return string |
| 166 | 166 | */ |
@@ -85,8 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | if (CiteProc::getContext()->isModeBibliography()) { |
| 87 | 87 | if ($data instanceof DataList) { |
| 88 | - foreach ($data as $citationNumber => $item) { |
|
| 89 | - ++self::$numberOfCitedItems; |
|
| 88 | + foreach ($data as $citationNumber => $item) {++self::$numberOfCitedItems; |
|
| 90 | 89 | CiteProc::getContext()->getResults()->append($this->wrapBibEntry($this->renderSingle($item, $citationNumber))); |
| 91 | 90 | } |
| 92 | 91 | $ret .= implode($this->delimiter, CiteProc::getContext()->getResults()->toArray()); |
@@ -94,7 +93,7 @@ discard block |
||
| 94 | 93 | $ret .= $this->wrapBibEntry($this->renderSingle($data, $citationNumber)); |
| 95 | 94 | } |
| 96 | 95 | $ret = StringHelper::clearApostrophes($ret); |
| 97 | - return "<div class=\"csl-bib-body\">".$ret."\n</div>"; |
|
| 96 | + return "<div class=\"csl-bib-body\">" . $ret . "\n</div>"; |
|
| 98 | 97 | |
| 99 | 98 | } else if (CiteProc::getContext()->isModeCitation()) { |
| 100 | 99 | if (is_array($data) || $data instanceof DataList) { |
@@ -139,7 +138,7 @@ discard block |
||
| 139 | 138 | |
| 140 | 139 | if (!empty($inMargin) && !empty($margin) && CiteProc::getContext()->isModeBibliography()) { |
| 141 | 140 | $leftMargin = $this->removeConsecutiveChars($this->htmlentities($this->format(implode("", $inMargin)))); |
| 142 | - $rightInline = $this->removeConsecutiveChars($this->htmlentities($this->format(implode("", $margin))).$this->suffix); |
|
| 141 | + $rightInline = $this->removeConsecutiveChars($this->htmlentities($this->format(implode("", $margin))) . $this->suffix); |
|
| 143 | 142 | $res = '<div class="csl-left-margin">' . $leftMargin . '</div>'; |
| 144 | 143 | $res .= '<div class="csl-right-inline">' . $rightInline . '</div>'; |
| 145 | 144 | return $res; |