Completed
Pull Request — master (#174)
by
unknown
01:39
created
src/Translator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -434,7 +434,7 @@
 block discarded – undo
434 434
 
435 435
 	/**
436 436
 	 * @param string $message
437
-	 * @return array
437
+	 * @return string[]
438 438
 	 */
439 439
 	private function extractMessageDomain($message)
440 440
 	{
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
 		$tmp = [];
171 171
 		foreach ($parameters as $key => $val) {
172
-			$tmp['%' . trim($key, '%') . '%'] = $val;
172
+			$tmp['%'.trim($key, '%').'%'] = $val;
173 173
 		}
174 174
 		$parameters = $tmp;
175 175
 
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 	 */
340 340
 	public function setLocale($locale)
341 341
 	{
342
-		parent::setLocale((string)$locale);
342
+		parent::setLocale((string) $locale);
343 343
 	}
344 344
 
345 345
 	/**
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
 	 */
476 476
 	public static function buildWhitelistRegexp($whitelist)
477 477
 	{
478
-		return ($whitelist !== NULL) ? '~^(' . implode('|', $whitelist) . ')~i' : NULL;
478
+		return ($whitelist !== NULL) ? '~^('.implode('|', $whitelist).')~i' : NULL;
479 479
 	}
480 480
 
481 481
 }
Please login to merge, or discard this patch.