Code Duplication    Length = 6-6 lines in 2 locations

src/Translator.php 2 locations

@@ 207-212 (lines=6) @@
204
			throw new InvalidArgumentException(sprintf('Message id must be a string, %s was given', gettype($message)));
205
		}
206
207
		if ($domain === NULL) {
208
			list($domain, $id) = $this->extractMessageDomain($message);
209
210
		} else {
211
			$id = $message;
212
		}
213
214
		$result = parent::trans($id, $parameters, $domain, $locale);
215
		if ($result === "\x01") {
@@ 234-239 (lines=6) @@
231
			throw new InvalidArgumentException(sprintf('Message id must be a string, %s was given', gettype($message)));
232
		}
233
234
		if ($domain === NULL) {
235
			list($domain, $id) = $this->extractMessageDomain($message);
236
237
		} else {
238
			$id = $message;
239
		}
240
241
		try {
242
			$result = parent::transChoice($id, $number, $parameters, $domain, $locale);