Completed
Pull Request — master (#115)
by Richard
03:18
created
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
 		}
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	private function processingInstructions($tss, $pos, $next, $indexStart) {
63 63
 		$rules = [];
64 64
 		while (($atPos = strpos($tss, '@', $pos)) !== false) {
65
-			if ($atPos  <= (int) $next) {
65
+			if ($atPos <= (int) $next) {
66 66
 				$spacePos = strpos($tss, ' ', $atPos);
67 67
 				$funcName = substr($tss, $atPos+1, $spacePos-$atPos-1);
68 68
 				$pos = strpos($tss, ';', $spacePos);
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
 	}
79 79
 
80 80
 	private function import($args, $indexStart) {
81
-		if (is_file(trim($args,'\'" '))) $fileName = trim($args,'\'" ');
81
+		if (is_file(trim($args, '\'" '))) $fileName = trim($args, '\'" ');
82 82
 		else $fileName = $this->valueParser->parse($args)[0];
83
-		$sheet = new Sheet(file_get_contents($this->baseDir . $fileName), dirname(realpath($this->baseDir . $fileName)) . DIRECTORY_SEPARATOR, $this->xPath, $this->valueParser);
83
+		$sheet = new Sheet(file_get_contents($this->baseDir.$fileName), dirname(realpath($this->baseDir.$fileName)).DIRECTORY_SEPARATOR, $this->xPath, $this->valueParser);
84 84
 		return $sheet->parse(0, [], $indexStart);
85 85
 	}
86 86
 
Please login to merge, or discard this patch.