Test Failed
Pull Request — master (#66)
by Alec
05:59
created
src/Seboettg/CiteProc/Constraint/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         array_walk($parts, function($part) use (&$className) {
36 36
             $className .= ucfirst($part);
37 37
         });
38
-        $className = self::NAMESPACE_CONSTRAINTS . $className;
38
+        $className = self::NAMESPACE_CONSTRAINTS.$className;
39 39
 
40 40
         if (!class_exists($className)) {
41 41
             throw new ClassNotFoundException($className);
Please login to merge, or discard this patch.
src/Seboettg/CiteProc/Locale/Term.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@
 block discarded – undo
39 39
         $attr = "";
40 40
         for ($i = count($nameParts) - 1; $i >= 0; --$i) {
41 41
             if ($i > 0) {
42
-                $attr = ucfirst($nameParts[$i]) . $attr;
42
+                $attr = ucfirst($nameParts[$i]).$attr;
43 43
             } else {
44
-                $attr = $nameParts[$i] . $attr;
44
+                $attr = $nameParts[$i].$attr;
45 45
             }
46 46
         }
47 47
         if (!isset($this->{$attr})) {
48
-            throw new \InvalidArgumentException("Property \"$attr\" ($name) does not exist in " . __CLASS__);
48
+            throw new \InvalidArgumentException("Property \"$attr\" ($name) does not exist in ".__CLASS__);
49 49
         }
50 50
         $this->{$attr} = $value;
51 51
     }
Please login to merge, or discard this patch.
src/Seboettg/CiteProc/Styles/DisplayTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         if (!in_array($this->display, self::$allowedValues)) {
56 56
             return $text;
57 57
         }
58
-        $divStyle = "class=\"csl-" . $this->display . "\"";
58
+        $divStyle = "class=\"csl-".$this->display."\"";
59 59
         return "<div $divStyle>$text</div>";
60 60
     }
61 61
 }
62 62
\ No newline at end of file
Please login to merge, or discard this patch.
src/Seboettg/CiteProc/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
             $res = preg_replace($pattern, $punctuationSign, $subject);
48 48
             return $res;
Please login to merge, or discard this patch.
src/Seboettg/CiteProc/Styles/Css/CssRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     public function __toString()
66 66
     {
67
-        $directives = "\t" . implode("\n\t", $this->directives->toArray());
68
-        return $this->selectorType . $this->selector . " {\n" . $directives . "\n}\n";
67
+        $directives = "\t".implode("\n\t", $this->directives->toArray());
68
+        return $this->selectorType.$this->selector." {\n".$directives."\n}\n";
69 69
     }
70 70
 }
71 71
\ No newline at end of file
Please login to merge, or discard this patch.
src/Seboettg/CiteProc/Styles/Css/CssStyle.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@
 block discarded – undo
60 60
         if ($lineSpacing || $entrySpacing || $hangingIndent) {
61 61
             $rule = $this->cssRules->getRule(".csl-entry");
62 62
             if (!empty($lineSpacing)) {
63
-                $rule->addDirective("line-height", intval($lineSpacing) . "em");
63
+                $rule->addDirective("line-height", intval($lineSpacing)."em");
64 64
             }
65 65
 
66 66
             if (!empty($entrySpacing)) {
67
-                $rule->addDirective("margin-bottom", intval($entrySpacing) . "em");
67
+                $rule->addDirective("margin-bottom", intval($entrySpacing)."em");
68 68
             }
69 69
 
70 70
             if (!empty($hangingIndent)) {
Please login to merge, or discard this patch.
src/Seboettg/CiteProc/Styles/FormattingTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
                 }
91 91
             }
92 92
             if (!empty($format)) {
93
-                $text = '<span style="' . $format . '">' . $text . '</span>';
93
+                $text = '<span style="'.$format.'">'.$text.'</span>';
94 94
             }
95 95
         }
96 96
         return $text;
Please login to merge, or discard this patch.
src/Seboettg/CiteProc/Styles/AffixesTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,12 +84,12 @@
 block discarded – undo
84 84
                 $lastChar = mb_substr($text, -1, 1);
85 85
                 if ($closeQuote === $lastChar) { // last char is closing quote?
86 86
                     $text = mb_substr($text, 0, mb_strlen($text) - 1); //set suffix before
87
-                    return $text . $suffix . $lastChar;
87
+                    return $text.$suffix.$lastChar;
88 88
                 }
89 89
             }
90 90
         }
91 91
 
92
-        return $prefix . $text . $suffix;
92
+        return $prefix.$text.$suffix;
93 93
     }
94 94
 
95 95
     /**
Please login to merge, or discard this patch.
src/Seboettg/CiteProc/Styles/QuotesTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             $openQuote = CiteProc::getContext()->getLocale()->filter("terms", "open-quote")->single;
47 47
             $closeQuote = CiteProc::getContext()->getLocale()->filter("terms", "close-quote")->single;
48 48
             $text = $this->replaceOuterQuotes($text, $openQuote, $closeQuote);
49
-            return $openQuote . $text . $closeQuote;
49
+            return $openQuote.$text.$closeQuote;
50 50
         }
51 51
         return $text;
52 52
     }
Please login to merge, or discard this patch.