@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | $wordArray = explode(" ", $text); |
80 | 80 | |
81 | - array_walk($wordArray, function (&$word) { |
|
81 | + array_walk($wordArray, function(&$word) { |
|
82 | 82 | $word = ucfirst($word); |
83 | 83 | }); |
84 | 84 | |
@@ -97,10 +97,10 @@ discard block |
||
97 | 97 | |
98 | 98 | $wordArray = explode(" ", $titleString); |
99 | 99 | |
100 | - array_walk($wordArray, function (&$word) { |
|
100 | + array_walk($wordArray, function(&$word) { |
|
101 | 101 | $words = explode("-", $word); |
102 | 102 | if (count($words) > 1) { |
103 | - array_walk($words, function (&$w) { |
|
103 | + array_walk($words, function(&$w) { |
|
104 | 104 | $w = StringHelper::keepLowerCase($w) ? $w : StringHelper::mb_ucfirst($w); |
105 | 105 | }); |
106 | 106 | $word = implode("-", $words); |
@@ -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); |
@@ -430,7 +430,7 @@ |
||
430 | 430 | |
431 | 431 | public function getCitationItemById($id) |
432 | 432 | { |
433 | - return $this->citationItems->filter(function ($item) use ($id) { |
|
433 | + return $this->citationItems->filter(function($item) use ($id) { |
|
434 | 434 | return $item->id === $id; |
435 | 435 | })->current(); |
436 | 436 | } |
@@ -159,7 +159,7 @@ |
||
159 | 159 | ); |
160 | 160 | } |
161 | 161 | list($from, $to) = $ranges; |
162 | - return $from . "–" . $to; |
|
162 | + return $from."–".$to; |
|
163 | 163 | } |
164 | 164 | } |
165 | 165 | return $page; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | public static function mapLocatorLabelToRenderVariable($locatorTerm) |
40 | 40 | { |
41 | 41 | if ($locatorTerm instanceof Locator) { |
42 | - $locatorTerm = (string)$locatorTerm; |
|
42 | + $locatorTerm = (string) $locatorTerm; |
|
43 | 43 | } |
44 | 44 | return |
45 | 45 | array_key_exists($locatorTerm, self::LABEL_TO_VARIABLE_MAP) ? |