Code Duplication    Length = 6-6 lines in 2 locations

src/Kdyby/Translation/Translator.php 2 locations

@@ 188-193 (lines=6) @@
185
			return $message->translate($this);
186
		}
187
188
		if ($domain === NULL) {
189
			list($domain, $id) = $this->extractMessageDomain($message);
190
191
		} else {
192
			$id = $message;
193
		}
194
195
		$result = parent::trans($id, $parameters, $domain, $locale);
196
		if ($result === "\x01") {
@@ 215-220 (lines=6) @@
212
			return $message->translate($this);
213
		}
214
215
		if ($domain === NULL) {
216
			list($domain, $id) = $this->extractMessageDomain($message);
217
218
		} else {
219
			$id = $message;
220
		}
221
222
		try {
223
			$result = parent::transChoice($id, $number, $parameters, $domain, $locale);