Completed
Pull Request — master (#107)
by
unknown
03:03
created
src/Kdyby/Translation/Translator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
 		$tmp = [];
156 156
 		foreach ($parameters as $key => $val) {
157
-			$tmp['%' . trim($key, '%') . '%'] = $val;
157
+			$tmp['%'.trim($key, '%').'%'] = $val;
158 158
 		}
159 159
 		$parameters = $tmp;
160 160
 
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
 	private function extractMessageDomain($message)
426 426
 	{
427 427
 		if (strpos($message, '.') !== FALSE) {
428
-			if(strrpos($message, '//') === 0) {
428
+			if (strrpos($message, '//') === 0) {
429 429
 				list($domain, $message) = explode('.', substr($message, 2), 2);
430 430
 
431 431
 			} elseif (strpos($message, ' ') === FALSE) {
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
 	 */
468 468
 	public static function buildWhitelistRegexp($whitelist)
469 469
 	{
470
-		return $whitelist ? '~^(' . implode('|', $whitelist) . ')~i' : NULL;
470
+		return $whitelist ? '~^('.implode('|', $whitelist).')~i' : NULL;
471 471
 	}
472 472
 
473 473
 
Please login to merge, or discard this patch.