Completed
Pull Request — master (#105)
by
unknown
02:42
created
src/Kdyby/Translation/Translator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
 		$tmp = array();
160 160
 		foreach ($parameters as $key => $val) {
161
-			$tmp['%' . trim($key, '%') . '%'] = $val;
161
+			$tmp['%'.trim($key, '%').'%'] = $val;
162 162
 		}
163 163
 		$parameters = $tmp;
164 164
 
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
 	 */
465 465
 	public static function buildWhitelistRegexp($whitelist)
466 466
 	{
467
-		return $whitelist ? '~^(' . implode('|', $whitelist) . ')~i' : NULL;
467
+		return $whitelist ? '~^('.implode('|', $whitelist).')~i' : NULL;
468 468
 	}
469 469
 
470 470
 
Please login to merge, or discard this patch.