Passed
Push — issue-71 ( 957702...1ee81d )
by Sebastian
03:42
created
src/Util/NumberHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function getCompareNumber()
52 52
     {
53
-        return function ($numA, $numB, $order) {
53
+        return function($numA, $numB, $order) {
54 54
             if (is_numeric($numA) && is_numeric($numB)) {
55 55
                 $ret = $numA - $numB;
56 56
             } else {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $len = strlen($numStr);
77 77
             for ($pos = 0; $pos < $len; $pos++) {
78 78
                 $n = $numStr[$pos];
79
-                $ret = self::ROMAN_NUMERALS[$pos][$n] . $ret;
79
+                $ret = self::ROMAN_NUMERALS[$pos][$n].$ret;
80 80
             }
81 81
         }
82 82
         return $ret;
Please login to merge, or discard this patch.
src/Rendering/Number.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
         foreach ($node->attributes() as $attribute) {
61 61
             switch ($attribute->getName()) {
62 62
                 case 'variable':
63
-                    $this->variable = (string)$attribute;
63
+                    $this->variable = (string) $attribute;
64 64
                     break;
65 65
                 case 'form':
66
-                    $this->form = (string)$attribute;
66
+                    $this->form = (string) $attribute;
67 67
             }
68 68
         }
69 69
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         if (empty($ordinalSuffix)) {
159 159
             $ordinalSuffix = CiteProc::getContext()->getLocale()->filter('terms', 'ordinal')->single;
160 160
         }
161
-        return $num . $ordinalSuffix;
161
+        return $num.$ordinalSuffix;
162 162
     }
163 163
 
164 164
     /**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     public static function longOrdinal($num)
169 169
     {
170 170
         $num = sprintf("%02d", $num);
171
-        $ret = CiteProc::getContext()->getLocale()->filter('terms', 'long-ordinal-' . $num)->single;
171
+        $ret = CiteProc::getContext()->getLocale()->filter('terms', 'long-ordinal-'.$num)->single;
172 172
         if (!$ret) {
173 173
             return self::ordinal($num);
174 174
         }
@@ -185,12 +185,12 @@  discard block
 block discarded – undo
185 185
     {
186 186
 
187 187
         if (self::RANGE_DELIMITER_AMPERSAND === $delim) {
188
-            $numRange = "$num1 " . htmlentities(self::RANGE_DELIMITER_AMPERSAND) . " $num2";
188
+            $numRange = "$num1 ".htmlentities(self::RANGE_DELIMITER_AMPERSAND)." $num2";
189 189
         } else {
190 190
             if (self::RANGE_DELIMITER_COMMA === $delim) {
191
-                $numRange = $num1 . htmlentities(self::RANGE_DELIMITER_COMMA) . " $num2";
191
+                $numRange = $num1.htmlentities(self::RANGE_DELIMITER_COMMA)." $num2";
192 192
             } else {
193
-                $numRange = $num1 . self::RANGE_DELIMITER_HYPHEN . $num2;
193
+                $numRange = $num1.self::RANGE_DELIMITER_HYPHEN.$num2;
194 194
             }
195 195
         }
196 196
         return $numRange;
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             if (preg_match("/\s*([^\-\-&,]+)\s*([\-\-&,])\s*([^\-\-&,]+)\s*/", $number, $matches)) {
208 208
                 $num1 = Util\NumberHelper::roman2Dec($matches[1]);
209 209
                 $num2 = Util\NumberHelper::roman2Dec($matches[3]);
210
-                $decimalNumber = $num1 . $matches[2] . $num2;
210
+                $decimalNumber = $num1.$matches[2].$num2;
211 211
             } else {
212 212
                 $decimalNumber = Util\NumberHelper::roman2Dec($number);
213 213
             }
Please login to merge, or discard this patch.