Completed
Push — master ( fc1a4b...71d00a )
by Tom
02:50
created
src/Parser/CssToXpath.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@
 block discarded – undo
15 15
 	public function __construct($css, Value $valueParser, $prefix = '') {
16 16
 		$hash = $this->registerInstance();
17 17
 		$this->valueParser = $valueParser;
18
-		$this->css = str_replace([' >', '> '],['>', '>'], trim($css));
18
+		$this->css = str_replace([' >', '> '], ['>', '>'], trim($css));
19 19
 		$this->translators = [
20
-			' ' => function($string) use ($prefix) { return '//' . $prefix . $string;	},
21
-			'' => function($string) use ($prefix) { return '/' . $prefix . $string;	},
22
-			'>' => function($string) use ($prefix) { return '/' . $prefix  . $string; },
23
-			'#' => function($string) { return '[@id=\'' . $string . '\']'; },
24
-			'.' => function($string) { return '[contains(concat(\' \', normalize-space(@class), \' \'), \' ' . $string . ' \')]'; }, 
25
-			'[' => function($string, $xpath) use($hash) { return '[' .'php:function(\'\Transphporm\Parser\CssToXpath::processAttr\', \'' . $string . '\', ., "' . $hash . '")' . ']';	},
20
+			' ' => function($string) use ($prefix) { return '//'.$prefix.$string; },
21
+			'' => function($string) use ($prefix) { return '/'.$prefix.$string; },
22
+			'>' => function($string) use ($prefix) { return '/'.$prefix.$string; },
23
+			'#' => function($string) { return '[@id=\''.$string.'\']'; },
24
+			'.' => function($string) { return '[contains(concat(\' \', normalize-space(@class), \' \'), \' '.$string.' \')]'; }, 
25
+			'[' => function($string, $xpath) use($hash) { return '['.'php:function(\'\Transphporm\Parser\CssToXpath::processAttr\', \''.$string.'\', ., "'.$hash.'")'.']'; },
26 26
 			']' => function() {	return ''; }
27 27
 		];
28 28
 	}
Please login to merge, or discard this patch.