@@ -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 | ); |
@@ -217,7 +216,7 @@ discard block |
||
| 217 | 216 | { |
| 218 | 217 | $arr = $data->toArray(); |
| 219 | 218 | |
| 220 | - $arr_ = array_filter($arr, function ($dataItem) use ($citationItems) { |
|
| 219 | + $arr_ = array_filter($arr, function($dataItem) use ($citationItems) { |
|
| 221 | 220 | foreach ($citationItems as $citationItem) { |
| 222 | 221 | if ($dataItem->id === $citationItem->id) { |
| 223 | 222 | return true; |
@@ -310,7 +310,7 @@ |
||
| 310 | 310 | return false; |
| 311 | 311 | } |
| 312 | 312 | |
| 313 | - array_walk($persons1, function ($name, $key) use ($persons2, &$same) { |
|
| 313 | + array_walk($persons1, function($name, $key) use ($persons2, &$same) { |
|
| 314 | 314 | $family1 = $name->family; |
| 315 | 315 | $family2 = $persons2[$key]->family; |
| 316 | 316 | $same = $same && ($family1 === $family2); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | { |
| 84 | 84 | $wordArray = explode(" ", $text); |
| 85 | 85 | |
| 86 | - array_walk($wordArray, function (&$word) { |
|
| 86 | + array_walk($wordArray, function(&$word) { |
|
| 87 | 87 | $word = ucfirst($word); |
| 88 | 88 | }); |
| 89 | 89 | |
@@ -97,15 +97,15 @@ discard block |
||
| 97 | 97 | public static function capitalizeForTitle($titleString) |
| 98 | 98 | { |
| 99 | 99 | if (preg_match('/(.+[^\<\>][\.:\/;\?\!]\s?)([a-z])(.+)/', $titleString, $match)) { |
| 100 | - $titleString = $match[1] . StringHelper::ucfirst($match[2]) . $match[3]; |
|
| 100 | + $titleString = $match[1].StringHelper::ucfirst($match[2]).$match[3]; |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | $wordArray = explode(" ", $titleString); |
| 104 | 104 | |
| 105 | - array_walk($wordArray, function (&$word) { |
|
| 105 | + array_walk($wordArray, function(&$word) { |
|
| 106 | 106 | $words = explode("-", $word); |
| 107 | 107 | if (count($words) > 1) { |
| 108 | - array_walk($words, function (&$w) { |
|
| 108 | + array_walk($words, function(&$w) { |
|
| 109 | 109 | $w = StringHelper::keepLowerCase($w) ? $w : StringHelper::ucfirst($w); |
| 110 | 110 | }); |
| 111 | 111 | $word = implode("-", $words); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | /** @noinspection PhpInternalEntityUsedInspection */ |
| 145 | 145 | $encoding = mb_detect_encoding($firstChar, self::ISO_ENCODINGS, true); |
| 146 | 146 | return in_array($encoding, self::ISO_ENCODINGS) ? |
| 147 | - mb_strtoupper($firstChar, $encoding) . $then : $firstChar.$then; |
|
| 147 | + mb_strtoupper($firstChar, $encoding).$then : $firstChar.$then; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | public static function strrev($string) |