Completed
Push — master ( 0bb17e...5a7e4d )
by Sebastian
04:41
created
src/Seboettg/CiteProc/Styles/Css/CssStyle.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@
 block discarded – undo
46 46
         if ($lineSpacing || $entrySpacing || $hangingIndent) {
47 47
             $rule = $this->cssRules->getRule(".csl-entry");
48 48
             if (!empty($lineSpacing)) {
49
-                $rule->addDirective("line-height", intval($lineSpacing)."em");
49
+                $rule->addDirective("line-height", intval($lineSpacing) . "em");
50 50
             }
51 51
 
52 52
             if (!empty($entrySpacing)) {
53
-                $rule->addDirective("margin-bottom", intval($entrySpacing)."em");
53
+                $rule->addDirective("margin-bottom", intval($entrySpacing) . "em");
54 54
             }
55 55
 
56 56
             if (!empty($hangingIndent)) {
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
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
     public function __toString()
44 44
     {
45
-        $directives = "\t".implode("\n\t", $this->directives->toArray());
46
-        return $this->selectorType.$this->selector." {\n".$directives."\n}\n";
45
+        $directives = "\t" . implode("\n\t", $this->directives->toArray());
46
+        return $this->selectorType . $this->selector . " {\n" . $directives . "\n}\n";
47 47
     }
48 48
 }
49 49
\ No newline at end of file
Please login to merge, or discard this patch.
src/Seboettg/CiteProc/Util/PageHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         list($from, $to) = $ranges;
25 25
 
26
-        if (!empty($pageRangeFormat) ) {
26
+        if (!empty($pageRangeFormat)) {
27 27
 
28 28
             switch ($pageRangeFormat) {
29 29
                 case PageRangeFormats::MINIMAL:
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                     break;
32 32
                 case PageRangeFormats::MINIMAL_TWO:
33 33
                     if (strlen($to) > 2) {
34
-                        $resTo = self::renderMinimal($from, $to, strlen($to)-2);
34
+                        $resTo = self::renderMinimal($from, $to, strlen($to) - 2);
35 35
                     } else {
36 36
                         $resTo = $to;
37 37
                     }
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
             }
83 83
             return self::renderMinimal($from, $to);
84 84
         } else if (strlen($from) != 4 && $from % 100 >= 10 && $from % 100 <= 99) {
85
-            $resTo = substr($to,-2);
85
+            $resTo = substr($to, -2);
86 86
             $from_ = substr($from, 0, strlen($from) - 2);
87 87
             $to_ = substr($to, 0, strlen($to) - 2);
88 88
             if ($from_ != $to_ && strlen($from_) == strlen($to_)) {
89
-                for ($i = strlen($from_)-1; $i >= 0 && $to_{$i} != $from_{$i}; --$i) {
89
+                for ($i = strlen($from_) - 1; $i >= 0 && $to_{$i} != $from_{$i}; --$i) {
90 90
                     $resTo = $to{$i} . $resTo;
91 91
                 }
92 92
             }
Please login to merge, or discard this patch.