Passed
Push — feature/117-numberhelperpatter... ( e42d7e )
by Sebastian
02:39 queued 13s
created
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.
src/Rendering/Term/Punctuation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
         $values = new ArrayList();
23 23
         return $values
24 24
             ->setArray(Punctuation::toArray())
25
-            ->map(function (string $punctuation) {
25
+            ->map(function(string $punctuation) {
26 26
                 return CiteProc::getContext()->getLocale()->filter("terms", $punctuation)->single;
27 27
             })
28
-            ->collect(function ($items) {
28
+            ->collect(function($items) {
29 29
                 return array_values($items);
30 30
             });
31 31
     }
Please login to merge, or discard this patch.