Completed
Push — master ( 5a7e4d...40d001 )
by Sebastian
04:05
created
src/Seboettg/CiteProc/Rendering/Text.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -166,6 +166,9 @@
 block discarded – undo
166 166
         return $this->toRenderTypeValue;
167 167
     }
168 168
 
169
+    /**
170
+     * @param \stdClass $data
171
+     */
169 172
     private function renderPage($data)
170 173
     {
171 174
         if (empty($data->page)) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
     public function rendersEmptyVariables($data)
188 188
     {
189
-        if($this->toRenderType === "variable" &&
189
+        if ($this->toRenderType === "variable" &&
190 190
             (!isset($data->{$this->toRenderTypeValue}) || empty($data->{$this->toRenderTypeValue}))) {
191 191
             return true;
192 192
         } else if ($this->toRenderType === "macro") {
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     private function normalizeDateRange($page)
200 200
     {
201 201
         if (preg_match("/^(\d+)--(\d+)$/", trim($page), $matches)) {
202
-            return $matches[1]."-".$matches[2];
202
+            return $matches[1] . "-" . $matches[2];
203 203
         }
204 204
         return $page;
205 205
     }
Please login to merge, or discard this patch.
src/Seboettg/CiteProc/Util/PageHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         list($from, $to) = $ranges;
25 25
 
26
-        if (!empty($pageRangeFormat) ) {
26
+        if (!empty($pageRangeFormat)) {
27 27
 
28 28
             switch ($pageRangeFormat) {
29 29
                 case PageRangeFormats::MINIMAL:
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                     break;
32 32
                 case PageRangeFormats::MINIMAL_TWO:
33 33
                     if (strlen($to) > 2) {
34
-                        $resTo = self::renderMinimal($from, $to, strlen($to)-2);
34
+                        $resTo = self::renderMinimal($from, $to, strlen($to) - 2);
35 35
                     } else {
36 36
                         $resTo = $to;
37 37
                     }
Please login to merge, or discard this patch.