Code Duplication    Length = 8-11 lines in 3 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 runOnImmutableElements(): bool {
33
		return false;

src/Parser/Sheet.php 1 location

@@ 18-25 (lines=8) @@
15
	private $file;
16
	private $rules;
17
18
	public function __construct($tss, CssToXpath $xPath, Value $valueParser, \Transphporm\FilePath $filePath, \Transphporm\SheetLoader\SheetLoader $sheetLoader, $file = null) {
19
		$this->xPath = $xPath;
20
		$this->valueParser = $valueParser;
21
		$this->filePath = $filePath;
22
		$this->sheetLoader = $sheetLoader;
23
		$this->file = $file;
24
		$this->tss = (new Tokenizer($tss))->getTokens();
25
	}
26
27
	public function parse($indexStart = 0) {
28
		if (!empty($this->rules)) return $this->rules['rules'];