Passed
Push — develop ( 0de06e...665f09 )
by Sebastian
02:06 queued 12s
created
src/Rendering/Date/DateRange/YearMonthRenderer.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, "month") !== false) {
34 34
                 $dateParts_["yearmonth"][] = $datePart;
35 35
             }
Please login to merge, or discard this patch.
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/Locale/Locale.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         //filter by form
119 119
         if ($type !== "options") {
120 120
             /** @var Term $value */
121
-            $array = array_filter($array, function ($term) use ($form) {
121
+            $array = array_filter($array, function($term) use ($form) {
122 122
                 return $term->form === $form;
123 123
             });
124 124
         }
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.
src/Styles/DisplayTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         if (!in_array($this->display, self::$allowedValues)) {
58 58
             return $text;
59 59
         }
60
-        $divStyle = "class=\"csl-".$this->display."\"";
60
+        $divStyle = "class=\"csl-" . $this->display . "\"";
61 61
         return "<div $divStyle>$text</div>";
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
src/Styles/ConsecutivePunctuationCharacterTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         if (empty($punctuationSign) || preg_match("/^\s+$/", $punctuationSign)) {
43 43
             return $subject;
44 44
         }
45
-        $pattern = '/'.preg_quote(trim($punctuationSign), '/').'{2,}/';
45
+        $pattern = '/' . preg_quote(trim($punctuationSign), '/') . '{2,}/';
46 46
         if (preg_match($pattern, $subject)) {
47 47
             return preg_replace($pattern, $punctuationSign, $subject);
48 48
         }
Please login to merge, or discard this patch.