Code Duplication    Length = 9-11 lines in 2 locations

src/Config.php 1 location

@@ 20-28 (lines=9) @@
17
	private $xPath;
18
	private $valueParser;
19
20
	public function __construct(Functionset $functionSet, Parser\Value $valueParser, Hook\ElementData $elementData, Hook\Formatter $formatter, Parser\CssToXpath $xPath, FilePath $filePath, &$headers) {
21
		$this->formatter = $formatter;
22
		$this->headers = &$headers;
23
		$this->filePath = $filePath;
24
		$this->functionSet = $functionSet;
25
		$this->elementData = $elementData;
26
		$this->xPath = $xPath;
27
		$this->valueParser = $valueParser;
28
	}
29
30
	public function getFormatter() {
31
		return $this->formatter;

src/Hook/PropertyHook.php 1 location

@@ 20-30 (lines=11) @@
17
	private $properties = [];
18
	private $functionSet;
19
20
	public function __construct(array $rules, &$configLine, $file, $line, PseudoMatcher $pseudoMatcher,
21
            \Transphporm\Parser\Value $valueParser, \Transphporm\FunctionSet $functionSet, \Transphporm\FilePath $filePath) {
22
		$this->rules = $rules;
23
		$this->configLine = &$configLine;
24
		$this->file = $file;
25
        $this->filePath = $filePath;
26
		$this->line = $line;
27
		$this->valueParser = $valueParser;
28
		$this->pseudoMatcher = $pseudoMatcher;
29
		$this->functionSet = $functionSet;
30
	}
31
32
	public function run(\DomElement $element) {
33
		//Set the baseDir so that all files for this rule are relative to the file it came from