@@ -46,11 +46,11 @@ |
||
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)) { |
@@ -42,7 +42,7 @@ |
||
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 |
@@ -23,7 +23,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |