@@ -12,13 +12,13 @@ |
||
12 | 12 | * @param array $parameters |
13 | 13 | * @return Response |
14 | 14 | */ |
15 | - public function renderView($viewName,$parameters=[]){ |
|
15 | + public function renderView($viewName, $parameters=[]) { |
|
16 | 16 | $twig=$this->container->get("twig"); |
17 | 17 | $this->compile($parameters); |
18 | 18 | return new Response($twig->render($viewName, $parameters)); |
19 | 19 | } |
20 | 20 | |
21 | - public function generateUrl($path){ |
|
21 | + public function generateUrl($path) { |
|
22 | 22 | $request=Request::createFromGlobals(); |
23 | 23 | return $request->getBaseUrl().$path; |
24 | 24 | } |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | class JquerySemantic extends Jquery_ { |
8 | 8 | |
9 | - public function __construct(RouterInterface $router,ContainerInterface $container ){ |
|
10 | - parent::__construct(["bootstrap"=>true,"defer"=>true],$router); |
|
9 | + public function __construct(RouterInterface $router, ContainerInterface $container) { |
|
10 | + parent::__construct(["bootstrap"=>true, "defer"=>true], $router); |
|
11 | 11 | $this->container=$container; |
12 | 12 | } |
13 | 13 | } |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | class JquerySemantic extends Jquery_ { |
8 | 8 | |
9 | - public function __construct(RouterInterface $router,ContainerInterface $container ){ |
|
10 | - parent::__construct(["semantic"=>true,"defer"=>true],$router); |
|
9 | + public function __construct(RouterInterface $router, ContainerInterface $container) { |
|
10 | + parent::__construct(["semantic"=>true, "defer"=>true], $router); |
|
11 | 11 | $this->container=$container; |
12 | 12 | } |
13 | 13 | } |