@@ -91,8 +91,7 @@ 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 | ); |
@@ -149,8 +148,8 @@ discard block |
||
| 149 | 148 | $this->htmlentities($this->format(implode("", $margin))). |
| 150 | 149 | $this->suffix |
| 151 | 150 | ); |
| 152 | - $res = '<div class="csl-left-margin">' . trim($leftMargin) . '</div>'; |
|
| 153 | - $res .= '<div class="csl-right-inline">' . trim($rightInline) . '</div>'; |
|
| 151 | + $res = '<div class="csl-left-margin">'.trim($leftMargin).'</div>'; |
|
| 152 | + $res .= '<div class="csl-right-inline">'.trim($rightInline).'</div>'; |
|
| 154 | 153 | return $res; |
| 155 | 154 | } elseif (!empty($inMargin)) { |
| 156 | 155 | $res = $this->format(implode("", $inMargin)); |
@@ -176,8 +175,8 @@ discard block |
||
| 176 | 175 | { |
| 177 | 176 | $value = $this->addAffixes($value); |
| 178 | 177 | return "\n ". |
| 179 | - "<div class=\"csl-entry\">" . |
|
| 180 | - $renderedItem = CiteProcHelper::applyAdditionMarkupFunction($dataItem, "csl-entry", $value) . |
|
| 178 | + "<div class=\"csl-entry\">". |
|
| 179 | + $renderedItem = CiteProcHelper::applyAdditionMarkupFunction($dataItem, "csl-entry", $value). |
|
| 181 | 180 | "</div>"; |
| 182 | 181 | } |
| 183 | 182 | |
@@ -218,7 +217,7 @@ discard block |
||
| 218 | 217 | { |
| 219 | 218 | $arr = $data->toArray(); |
| 220 | 219 | |
| 221 | - $arr_ = array_filter($arr, function ($dataItem) use ($citationItems) { |
|
| 220 | + $arr_ = array_filter($arr, function($dataItem) use ($citationItems) { |
|
| 222 | 221 | foreach ($citationItems as $citationItem) { |
| 223 | 222 | if ($dataItem->id === $citationItem->id) { |
| 224 | 223 | return true; |
@@ -19,5 +19,5 @@ |
||
| 19 | 19 | { |
| 20 | 20 | $firstChar = substr($string, 0, 1); |
| 21 | 21 | $firstCharUpper = strtr($firstChar, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'); |
| 22 | - return $firstCharUpper . substr($string, 1); |
|
| 22 | + return $firstCharUpper.substr($string, 1); |
|
| 23 | 23 | } |
@@ -32,10 +32,10 @@ |
||
| 32 | 32 | public static function createConstraint(string $name, string $value, string $match) |
| 33 | 33 | { |
| 34 | 34 | $parts = explode("-", $name); |
| 35 | - $className = implode("", array_map(function ($part) { |
|
| 36 | - return ucfirst($part);//overridden function |
|
| 35 | + $className = implode("", array_map(function($part) { |
|
| 36 | + return ucfirst($part); //overridden function |
|
| 37 | 37 | }, $parts)); |
| 38 | - $className = self::NAMESPACE_CONSTRAINTS . $className; |
|
| 38 | + $className = self::NAMESPACE_CONSTRAINTS.$className; |
|
| 39 | 39 | |
| 40 | 40 | if (!class_exists($className)) { |
| 41 | 41 | throw new ClassNotFoundException($className); |