Code Duplication    Length = 9-10 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, &$headers, &$baseDir) {
21
		$this->formatter = $formatter;
22
		$this->headers = &$headers;
23
		$this->baseDir = &$baseDir;
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-29 (lines=10) @@
17
	private $properties = [];
18
	private $functionSet;
19
20
	public function __construct(array $rules, &$baseDir, &$configLine, $file, $line, PseudoMatcher $pseudoMatcher, \Transphporm\Parser\Value $valueParser, \Transphporm\FunctionSet $functionSet) {
21
		$this->rules = $rules;
22
		$this->baseDir = &$baseDir;
23
		$this->configLine = &$configLine;
24
		$this->file = $file;
25
		$this->line = $line;
26
		$this->valueParser = $valueParser;
27
		$this->pseudoMatcher = $pseudoMatcher;
28
		$this->functionSet = $functionSet;
29
	}
30
31
	public function run(\DomElement $element) {
32
		$this->functionSet->setElement($element);