Test Failed
Push — feature/115-labels-are-not-res... ( aa910a...505d91 )
by Sebastian
05:19
created
src/Rendering/Term/Punctuation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
     {
22 22
         $values = new ArrayList(...Punctuation::values());
23 23
         return $values
24
-            ->map(function (Punctuation $punctuation) {
24
+            ->map(function(Punctuation $punctuation) {
25 25
                 return CiteProc::getContext()->getLocale()->filter("terms", $punctuation->value)->single;
26 26
             })
27
-            ->collect(function ($items) {
27
+            ->collect(function($items) {
28 28
                 return array_values($items);
29 29
             });
30 30
     }
Please login to merge, or discard this patch.
src/Rendering/Name/Names.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                     $str .= $this->label->render($data);
207 207
                 }
208 208
                 $vars = $this->variables->toArray();
209
-                $vars = array_filter($vars, function ($value) {
209
+                $vars = array_filter($vars, function($value) {
210 210
                     return !($value === "editor" || $value === "translator");
211 211
                 });
212 212
                 $this->variables->setArray($vars);
@@ -268,13 +268,13 @@  discard block
 block discarded – undo
268 268
                 trim($this->label->renderSuffix()),
269 269
                 Punctuation::getAllPunctuations()
270 270
             ) ? " " : "";
271
-            $result = $renderedLabel . $delimiter . trim($name);
271
+            $result = $renderedLabel.$delimiter.trim($name);
272 272
         } else {
273 273
             $delimiter = !in_array(
274 274
                 trim($this->label->renderPrefix()),
275 275
                 Punctuation::getAllPunctuations()
276 276
             ) ? " " : "";
277
-            $result = trim($name) . $delimiter . $renderedLabel;
277
+            $result = trim($name).$delimiter.$renderedLabel;
278 278
         }
279 279
         return $result;
280 280
     }
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
 
400 400
     private function filterEmpty(array $results)
401 401
     {
402
-        return array_filter($results, function ($item) {
402
+        return array_filter($results, function($item) {
403 403
             return !empty($item);
404 404
         });
405 405
     }
Please login to merge, or discard this patch.