@@ -156,7 +156,7 @@ |
||
156 | 156 | |
157 | 157 | private function callFuncOnObject($obj, $func, $args, $element) { |
158 | 158 | if (isset($obj->$func) && is_callable($obj->$func)) return call_user_func_array($obj->$func, $args); |
159 | - else if (isset($obj->$func) && is_array($obj->$func)) { |
|
159 | + else if (isset($obj->$func) && is_array($obj->$func)) { |
|
160 | 160 | |
161 | 161 | } |
162 | 162 | else return call_user_func_array([$obj, $func], $args); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | $selector = trim(substr($this->tss, $pos, $next-$pos)); |
31 | - $pos = strpos($this->tss, '}', $next)+1; |
|
31 | + $pos = strpos($this->tss, '}', $next)+1; |
|
32 | 32 | $newRules = $this->cssToRules($selector, count($rules)+$indexStart, $this->getProperties(trim(substr($this->tss, $next+1, $pos-2-$next)))); |
33 | 33 | $rules = $this->writeRule($rules, $newRules); |
34 | 34 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | private function processingInstructions($tss, $pos, $next, $indexStart) { |
64 | 64 | $rules = []; |
65 | 65 | while (($atPos = strpos($tss, '@', $pos)) !== false) { |
66 | - if ($atPos <= (int) $next) { |
|
66 | + if ($atPos <= (int) $next) { |
|
67 | 67 | $spacePos = strpos($tss, ' ', $atPos); |
68 | 68 | $funcName = substr($tss, $atPos+1, $spacePos-$atPos-1); |
69 | 69 | $pos = strpos($tss, ';', $spacePos); |
@@ -79,9 +79,9 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | private function import($args, $indexStart) { |
82 | - if (is_file(trim($args,'\'" '))) $fileName = trim($args,'\'" '); |
|
82 | + if (is_file(trim($args, '\'" '))) $fileName = trim($args, '\'" '); |
|
83 | 83 | else $fileName = $this->valueParser->parse($args)[0]; |
84 | - $sheet = new Sheet(file_get_contents($this->baseDir . $fileName), $this->baseDir, $this->valueParser, $this->prefix); |
|
84 | + $sheet = new Sheet(file_get_contents($this->baseDir.$fileName), $this->baseDir, $this->valueParser, $this->prefix); |
|
85 | 85 | return $sheet->parse(0, [], $indexStart); |
86 | 86 | } |
87 | 87 |
@@ -105,7 +105,7 @@ |
||
105 | 105 | $string = $this->extractString($i); |
106 | 106 | $length = strlen($string)+1; |
107 | 107 | $char = $this->getChar($char); |
108 | - $string = str_replace('\\' . $char, $char, $string); |
|
108 | + $string = str_replace('\\'.$char, $char, $string); |
|
109 | 109 | $tokens[] = ['type' => self::STRING, 'value' => $string]; |
110 | 110 | return $length; |
111 | 111 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | $valueParser = new \Transphporm\Parser\Value($this->functionSet); |
27 | 27 | |
28 | - $criteria = $name . '(' . $criteria; |
|
28 | + $criteria = $name.'('.$criteria; |
|
29 | 29 | |
30 | 30 | $pos = strpos($pseudo, '!'); |
31 | 31 | if ($pos === false) $pos = strpos($pseudo, '='); |