@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | if (empty($ordinalSuffix)) { |
| 153 | 153 | $ordinalSuffix = CiteProc::getContext()->getLocale()->filter('terms', 'ordinal')->single; |
| 154 | 154 | } |
| 155 | - return $num . $ordinalSuffix; |
|
| 155 | + return $num.$ordinalSuffix; |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | /** |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public static function longOrdinal($num) { |
| 163 | 163 | $num = sprintf("%02d", $num); |
| 164 | - $ret = CiteProc::getContext()->getLocale()->filter('terms', 'long-ordinal-' . $num)->single; |
|
| 164 | + $ret = CiteProc::getContext()->getLocale()->filter('terms', 'long-ordinal-'.$num)->single; |
|
| 165 | 165 | if (!$ret) { |
| 166 | 166 | return self::ordinal($num); |
| 167 | 167 | } |
@@ -177,11 +177,11 @@ discard block |
||
| 177 | 177 | public function buildNumberRangeString($num1, $num2, $delim) { |
| 178 | 178 | |
| 179 | 179 | if (self::RANGE_DELIMITER_AMPERSAND === $delim) { |
| 180 | - $numRange = "$num1 " . htmlentities(self::RANGE_DELIMITER_AMPERSAND) . " $num2"; |
|
| 180 | + $numRange = "$num1 ".htmlentities(self::RANGE_DELIMITER_AMPERSAND)." $num2"; |
|
| 181 | 181 | } else if (self::RANGE_DELIMITER_COMMA === $delim) { |
| 182 | - $numRange = $num1 . htmlentities(self::RANGE_DELIMITER_COMMA) . " $num2"; |
|
| 182 | + $numRange = $num1.htmlentities(self::RANGE_DELIMITER_COMMA)." $num2"; |
|
| 183 | 183 | } else { |
| 184 | - $numRange = $num1 . self::RANGE_DELIMITER_HYPHEN . $num2; |
|
| 184 | + $numRange = $num1.self::RANGE_DELIMITER_HYPHEN.$num2; |
|
| 185 | 185 | } |
| 186 | 186 | return $numRange; |
| 187 | 187 | } |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | if (preg_match("/\s*([^\-\-&,]+)\s*([\-\-&,])\s*([^\-\-&,]+)\s*/", $number, $matches)) { |
| 198 | 198 | $num1 = Util\NumberHelper::roman2Dec($matches[1]); |
| 199 | 199 | $num2 = Util\NumberHelper::roman2Dec($matches[3]); |
| 200 | - $decimalNumber = $num1 . $matches[2] . $num2; |
|
| 200 | + $decimalNumber = $num1.$matches[2].$num2; |
|
| 201 | 201 | } else { |
| 202 | 202 | $decimalNumber = Util\NumberHelper::roman2Dec($number); |
| 203 | 203 | } |