Code Duplication    Length = 17-17 lines in 2 locations

src/Output/QRMarkup.php 1 location

@@ 30-46 (lines=17) @@
27
	/**
28
	 * @return void
29
	 */
30
	protected function setModuleValues():void{
31
32
		foreach($this::DEFAULT_MODULE_VALUES as $M_TYPE => $defaultValue){
33
			$v = $this->options->moduleValues[$M_TYPE] ?? null;
34
35
			if(!is_string($v)){
36
				$this->moduleValues[$M_TYPE] = $defaultValue
37
					? $this->options->markupDark
38
					: $this->options->markupLight;
39
			}
40
			else{
41
				$this->moduleValues[$M_TYPE] = trim(strip_tags($v), '\'"');
42
			}
43
44
		}
45
46
	}
47
48
	/**
49
	 * @return string

src/Output/QRString.php 1 location

@@ 30-46 (lines=17) @@
27
	/**
28
	 * @return void
29
	 */
30
	protected function setModuleValues():void{
31
32
		foreach($this::DEFAULT_MODULE_VALUES as $M_TYPE => $defaultValue){
33
			$v = $this->options->moduleValues[$M_TYPE] ?? null;
34
35
			if(!is_string($v)){
36
				$this->moduleValues[$M_TYPE] = $defaultValue
37
					? $this->options->textDark
38
					: $this->options->textLight;
39
			}
40
			else{
41
				$this->moduleValues[$M_TYPE] = $v;
42
			}
43
44
		}
45
46
	}
47
48
	/**
49
	 * @return string