Passed
Push — new-api ( 42b595 )
by Sebastian
06:18
created
src/Rendering/Date/DateRange/YearDayRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $dp = $dateParts->toArray();
31 31
         $dateParts_ = [];
32
-        array_walk($dp, function ($datePart, $key) use (&$dateParts_) {
32
+        array_walk($dp, function($datePart, $key) use (&$dateParts_) {
33 33
             if (strpos($key, "year") !== false || strpos($key, "day") !== false) {
34 34
                 $dateParts_["yearday"][] = $datePart;
35 35
             }
Please login to merge, or discard this patch.
src/Rendering/Date/DateRange/MonthDayRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $dp = $dateParts->toArray();
30 30
         $dateParts_ = [];
31
-        array_walk($dp, function ($datePart, $key) use (&$dateParts_) {
31
+        array_walk($dp, function($datePart, $key) use (&$dateParts_) {
32 32
             //$bit = sprintf("%03d", decbin($differentParts));
33 33
             if (strpos($key, "month") !== false || strpos($key, "day") !== false) {
34 34
                 $dateParts_["monthday"][] = $datePart;
Please login to merge, or discard this patch.
src/Style/Sort/Sort.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
     public function flatten($array)
152 152
     {
153 153
         $returnArray = [];
154
-        array_walk_recursive($array, function ($a) use (&$returnArray) {
154
+        array_walk_recursive($array, function($a) use (&$returnArray) {
155 155
             $returnArray[] = $a;
156 156
         });
157 157
         return $returnArray;
Please login to merge, or discard this patch.
src/Rendering/Name/Names.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                     $str .= $this->label->render($data);
197 197
                 }
198 198
                 $vars = $this->variables->toArray();
199
-                $vars = array_filter($vars, function ($value) {
199
+                $vars = array_filter($vars, function($value) {
200 200
                     return !($value === "editor" || $value === "translator");
201 201
                 });
202 202
                 $this->variables->setArray($vars);
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 
378 378
     private function filterEmpty(array $results)
379 379
     {
380
-        return array_filter($results, function ($item) {
380
+        return array_filter($results, function($item) {
381 381
             return !empty($item);
382 382
         });
383 383
     }
Please login to merge, or discard this patch.
src/Rendering/Date/Date.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         if (!empty($dateFromLocale)) {
275 275
             $dateForm = array_filter(
276 276
                 is_array($dateFromLocale) ? $dateFromLocale : [$dateFromLocale],
277
-                function ($element) use ($format) {
277
+                function($element) use ($format) {
278 278
                     /** @var SimpleXMLElement $element */
279 279
                     $dateForm = (string) $element->attributes()["form"];
280 280
                     return $dateForm === $format;
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
         if ($this->dateParts->count() < 1 && in_array($form, self::$localizedDateFormats)) {
337 337
             if ($this->hasDatePartsFromLocales($form)) {
338 338
                 $datePartsFromLocales = $this->getDatePartsFromLocales($form);
339
-                array_filter($datePartsFromLocales, function (SimpleXMLElement $item) use ($dateParts) {
339
+                array_filter($datePartsFromLocales, function(SimpleXMLElement $item) use ($dateParts) {
340 340
                     return in_array($item["name"], $dateParts);
341 341
                 });
342 342
 
Please login to merge, or discard this patch.
src/Util/StringHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $wordArray = explode(" ", $text);
80 80
 
81
-        array_walk($wordArray, function (&$word) {
81
+        array_walk($wordArray, function(&$word) {
82 82
             $word = ucfirst($word);
83 83
         });
84 84
 
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
 
98 98
         $wordArray = explode(" ", $titleString);
99 99
 
100
-        array_walk($wordArray, function (&$word) {
100
+        array_walk($wordArray, function(&$word) {
101 101
             $words = explode("-", $word);
102 102
             if (count($words) > 1) {
103
-                array_walk($words, function (&$w) {
103
+                array_walk($words, function(&$w) {
104 104
                     $w = StringHelper::keepLowerCase($w) ? $w : StringHelper::mb_ucfirst($w);
105 105
                 });
106 106
                 $word = implode("-", $words);
Please login to merge, or discard this patch.
src/Util/NameHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@
 block discarded – undo
310 310
             return false;
311 311
         }
312 312
 
313
-        array_walk($persons1, function ($name, $key) use ($persons2, &$same) {
313
+        array_walk($persons1, function($name, $key) use ($persons2, &$same) {
314 314
             $family1 = $name->family;
315 315
             $family2 = $persons2[$key]->family;
316 316
             $same = $same && ($family1 === $family2);
Please login to merge, or discard this patch.
src/Context.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -430,7 +430,7 @@
 block discarded – undo
430 430
 
431 431
     public function getCitationItemById($id)
432 432
     {
433
-        return $this->citationItems->filter(function ($item) use ($id) {
433
+        return $this->citationItems->filter(function($item) use ($id) {
434 434
             return $item->id === $id;
435 435
         })->current();
436 436
     }
Please login to merge, or discard this patch.
src/Terms/Locator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public static function mapLocatorLabelToRenderVariable($locatorTerm)
40 40
     {
41 41
         if ($locatorTerm instanceof Locator) {
42
-            $locatorTerm = (string)$locatorTerm;
42
+            $locatorTerm = (string) $locatorTerm;
43 43
         }
44 44
         return
45 45
             array_key_exists($locatorTerm, self::LABEL_TO_VARIABLE_MAP) ?
Please login to merge, or discard this patch.