Completed
Push — master ( 5e2c18...7ed867 )
by Jean-Christophe
02:42
created
Ajax/php/symfony/JsUtils.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Ajax\php\symfony;
4 4
 
5 5
 
6
-use Symfony\Component\HttpFoundation\Request;
7 6
 use Symfony\Component\HttpKernel\HttpKernelInterface;
8 7
 use Ajax\service\JString;
9 8
 class JsUtils extends \Ajax\JsUtils{
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 		if(isset($router)){
14 14
 			try {
15 15
 				$url=$router->generate($url);
16
-			}catch (\Exception $e){
16
+			} catch (\Exception $e){
17 17
 				return $url;
18 18
 			}
19 19
 		}
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 				$view["q"]=array();
26 26
 			}
27 27
 			$view["q"][$identifier]=$content;
28
-		}elseif($view instanceof \Twig_Environment){
28
+		} elseif($view instanceof \Twig_Environment){
29 29
 			$vars=$view->getGlobals();
30 30
 			if(\array_key_exists("q", $vars)===false){
31 31
 				$vars["q"]=array();
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	protected function addVariable($key,$value,&$view){
43 43
 		if(\is_array($view)){
44 44
 			$view[$key]=$value;
45
-		}elseif($view instanceof \Twig_Environment){
45
+		} elseif($view instanceof \Twig_Environment){
46 46
 			$view->addGlobal($key,$value);
47 47
 		}
48 48
 	}
Please login to merge, or discard this patch.