Completed
Push — master ( a78505...5e2c18 )
by Jean-Christophe
02:39
created
Ajax/php/symfony/JsUtils.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 		if(isset($router)){
15 15
 			try {
16 16
 				$url=$router->generate($url);
17
-			}catch (\Exception $e){
17
+			} catch (\Exception $e){
18 18
 				return $router->getContext()->getBaseUrl();
19 19
 			}
20 20
 		}
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 				$view["q"]=array();
27 27
 			}
28 28
 			$view["q"][$identifier]=$content;
29
-		}elseif($view instanceof \Twig_Environment){
29
+		} elseif($view instanceof \Twig_Environment){
30 30
 			$vars=$view->getGlobals();
31 31
 			if(\array_key_exists("q", $vars)===false){
32 32
 				$vars["q"]=array();
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	protected function addVariable($key,$value,&$view){
44 44
 		if(\is_array($view)){
45 45
 			$view[$key]=$value;
46
-		}elseif($view instanceof \Twig_Environment){
46
+		} elseif($view instanceof \Twig_Environment){
47 47
 			$view->addGlobal($key,$value);
48 48
 		}
49 49
 	}
Please login to merge, or discard this patch.