Code Duplication    Length = 6-6 lines in 2 locations

src/Translator.php 2 locations

@@ 196-201 (lines=6) @@
193
			throw new \Kdyby\Translation\InvalidArgumentException(sprintf('Message id must be a string, %s was given', gettype($message)));
194
		}
195
196
		if ($domain === NULL) {
197
			list($domain, $id) = $this->extractMessageDomain($message);
198
199
		} else {
200
			$id = $message;
201
		}
202
203
		if ($id === '') {
204
			$id = $message;
@@ 230-235 (lines=6) @@
227
			throw new \Kdyby\Translation\InvalidArgumentException(sprintf('Message id must be a string, %s was given', gettype($message)));
228
		}
229
230
		if ($domain === NULL) {
231
			list($domain, $id) = $this->extractMessageDomain($message);
232
233
		} else {
234
			$id = $message;
235
		}
236
237
		if ($id === '') {
238
			$id = $message;