Code Duplication    Length = 9-9 lines in 2 locations

src/PaySys/TatraPay/Configuration.php 2 locations

@@ 87-95 (lines=9) @@
84
		return $this;
85
	}
86
87
	public function setKey(string $originalKey) : Configuration
88
	{
89
		$key = $this->getNormalizedKey($originalKey);
90
		if (!Validator::isKey($key))
91
			throw new \PaySys\PaySys\ConfigurationException(sprintf("Key '%s' is invalid. Must have 64 byte standard string or 128 byte in hexadecimal format.", $originalKey));
92
93
		$this->key = $key;
94
		return $this;
95
	}
96
97
	public function setLang(string $originalLang) : Configuration
98
	{
@@ 97-105 (lines=9) @@
94
		return $this;
95
	}
96
97
	public function setLang(string $originalLang) : Configuration
98
	{
99
		$lang = strtolower($originalLang);
100
		if (!Validator::isLang($lang))
101
			throw new \PaySys\PaySys\ConfigurationException(sprintf("Lang '%s' is not supported.", $originalLang));
102
103
		$this->lang = $lang;
104
		return $this;
105
	}
106
107
	public function setRem(string $rem) : Configuration
108
	{