Code Duplication    Length = 6-6 lines in 3 locations

src/Kdyby/Translation/PrefixedTranslator.php 1 location

@@ 64-69 (lines=6) @@
61
			return $this->translator->translate(new Phrase($prefix . $translationString, $message->count, $message->parameters, $message->domain, $message->locale));
62
		}
63
64
		if (is_array($count)) {
65
			$locale = $domain ? : NULL;
66
			$domain = $parameters ? : NULL;
67
			$parameters = $count ? : array();
68
			$count = NULL;
69
		}
70
71
		return $this->translator->translate($prefix . $translationString, $count, (array) $parameters, $domain, $locale);
72
	}

src/Kdyby/Translation/TemplateHelpers.php 1 location

@@ 59-64 (lines=6) @@
56
57
	public function translate($message, $count = NULL, $parameters = array(), $domain = NULL, $locale = NULL)
58
	{
59
		if (is_array($count)) {
60
			$locale = $domain ?: NULL;
61
			$domain = $parameters ?: NULL;
62
			$parameters = $count ?: array();
63
			$count = NULL;
64
		}
65
66
		return $this->translator->translate($message, $count, (array) $parameters, $domain, $locale);
67
	}

src/Kdyby/Translation/Translator.php 1 location

@@ 138-143 (lines=6) @@
135
			return $message->translate($this);
136
		}
137
138
		if (is_array($count)) {
139
			$locale = $domain ?: NULL;
140
			$domain = $parameters ?: NULL;
141
			$parameters = $count;
142
			$count = NULL;
143
		}
144
145
		if (empty($message)) {
146
			return $message;