Completed
Pull Request — master (#105)
by
unknown
02:56
created
src/Kdyby/Translation/Translator.php 2 patches
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.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,8 +234,8 @@
 block discarded – undo
234 234
 			}
235 235
 			
236 236
 			if ($locale === NULL) {
237
-                		$locale = $this->getLocale();
238
-            		}
237
+						$locale = $this->getLocale();
238
+					}
239 239
 			$result = strtr($this->selector->choose($message, (int) $number, $locale), $parameters);
240 240
 		}
241 241
 
Please login to merge, or discard this patch.