Code Duplication    Length = 9-9 lines in 2 locations

src/PaySys/CardPay/Configuration.php 2 locations

@@ 98-106 (lines=9) @@
95
		return $this;
96
	}
97
98
	public function setKey(string $originalKey) : Configuration
99
	{
100
		$key = $this->getNormalizedKey($originalKey);
101
		if (!Validator::isKey($key))
102
			throw new \PaySys\PaySys\ConfigurationException(sprintf("Key '%s' is invalid. Must have 64 byte standard string or 128 byte in hexadecimal format.", $originalKey));
103
104
		$this->key = $key;
105
		return $this;
106
	}
107
108
	public function setIpc(string $ipc = NULL) : Configuration
109
	{
@@ 121-129 (lines=9) @@
118
		return $this;
119
	}
120
121
	public function setLang(string $originalLang) : Configuration
122
	{
123
		$lang = strtolower($originalLang);
124
		if (!Validator::isLang($lang))
125
			throw new \PaySys\PaySys\ConfigurationException(sprintf("Lang '%s' is not supported.", $originalLang));
126
127
		$this->lang = $lang;
128
		return $this;
129
	}
130
131
	public function setMode(string $mode) : Configuration
132
	{