Completed
Push — master ( e6458b...c9bd8d )
by Tom
03:29
created
src/Parser/Value.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Parser/Sheet.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Parser/Tokenizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
src/Pseudo/Attribute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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, '=');
Please login to merge, or discard this patch.