@@ -79,13 +79,13 @@ |
||
79 | 79 | |
80 | 80 | public function getDebugInfo() |
81 | 81 | { |
82 | - return array ( 66 => 16, 60 => 21, 54 => 19, 52 => 18, 49 => 17, 47 => 16, 42 => 13, 36 => 11, 34 => 10, 29 => 8, 20 => 1,); |
|
82 | + return array(66 => 16, 60 => 21, 54 => 19, 52 => 18, 49 => 17, 47 => 16, 42 => 13, 36 => 11, 34 => 10, 29 => 8, 20 => 1,); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ |
86 | 86 | public function getSource() |
87 | 87 | { |
88 | - @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); |
|
88 | + @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); |
|
89 | 89 | |
90 | 90 | return $this->getSourceContext()->getCode(); |
91 | 91 | } |
@@ -46,13 +46,13 @@ |
||
46 | 46 | |
47 | 47 | public function getDebugInfo() |
48 | 48 | { |
49 | - return array ( 31 => 4, 28 => 3, 11 => 1,); |
|
49 | + return array(31 => 4, 28 => 3, 11 => 1,); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ |
53 | 53 | public function getSource() |
54 | 54 | { |
55 | - @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); |
|
55 | + @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); |
|
56 | 56 | |
57 | 57 | return $this->getSourceContext()->getCode(); |
58 | 58 | } |
@@ -31,13 +31,13 @@ |
||
31 | 31 | |
32 | 32 | public function getDebugInfo() |
33 | 33 | { |
34 | - return array ( 19 => 1,); |
|
34 | + return array(19 => 1,); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ |
38 | 38 | public function getSource() |
39 | 39 | { |
40 | - @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); |
|
40 | + @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); |
|
41 | 41 | |
42 | 42 | return $this->getSourceContext()->getCode(); |
43 | 43 | } |
@@ -13,25 +13,25 @@ discard block |
||
13 | 13 | { |
14 | 14 | parent::templateEngine($config); |
15 | 15 | |
16 | - $d = new Twig_SimpleFunction('d', function ($var) { |
|
16 | + $d = new Twig_SimpleFunction('d', function($var) { |
|
17 | 17 | return d($var); |
18 | 18 | }); |
19 | 19 | |
20 | 20 | $this->getTwig()->addFunction($d); |
21 | 21 | |
22 | - $date = new Twig_SimpleFunction('date', function ($var) { |
|
22 | + $date = new Twig_SimpleFunction('date', function($var) { |
|
23 | 23 | return date($var); |
24 | 24 | }); |
25 | 25 | |
26 | 26 | $this->getTwig()->addFunction($date); |
27 | 27 | |
28 | - $auth = new Twig_SimpleFunction('auth', function () { |
|
28 | + $auth = new Twig_SimpleFunction('auth', function() { |
|
29 | 29 | return $this->container()->get('auth')->access(true); |
30 | 30 | }); |
31 | 31 | |
32 | 32 | $this->getTwig()->addFunction($auth); |
33 | 33 | |
34 | - $active = new Twig_SimpleFunction('active', function ($link, $page) { |
|
34 | + $active = new Twig_SimpleFunction('active', function($link, $page) { |
|
35 | 35 | if ($link == $page) { |
36 | 36 | echo 'class="active"'; |
37 | 37 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | $this->getTwig()->addFunction($active); |
41 | 41 | |
42 | - $value = new Twig_SimpleFunction('value', function ($var) { |
|
42 | + $value = new Twig_SimpleFunction('value', function($var) { |
|
43 | 43 | if ($this->container()->hasSession('value', $var)) { |
44 | 44 | return $this->container()->getSession('value', $var); |
45 | 45 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | $this->getTwig()->addFunction($value); |
49 | 49 | |
50 | - $alert = new Twig_SimpleFunction('alert', function ($value, $style, $label = null) { |
|
50 | + $alert = new Twig_SimpleFunction('alert', function($value, $style, $label = null) { |
|
51 | 51 | if ($this->container()->hasSession('alert', $value)) { |
52 | 52 | return '<div class="alert alert-' . $style . '" style="padding: 15px">' . $this->container()->getSession('alert', $value) . $label . '</div>'; |
53 | 53 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | public function run(Router $router, $namespace) |
10 | 10 | { |
11 | 11 | $router->setNamespace($namespace); |
12 | - $router->annotation('MainController'); // mainpage |
|
12 | + $router->annotation('MainController'); // mainpage |
|
13 | 13 | $router->middleware('get', [ |
14 | 14 | 'pattern' => '123/123', |
15 | 15 | 'controller' => 'MainController', |
@@ -13,9 +13,9 @@ |
||
13 | 13 | 'annotation' => ['Rudra\Annotations'], |
14 | 14 | 'validation' => ['Rudra\Validation'], |
15 | 15 | 'auth' => ['Rudra\Auth'], |
16 | - 'redirect' => ['Rudra\Redirect', ['config' => Container::$app->config('uri')]], |
|
16 | + 'redirect' => ['Rudra\Redirect', ['config' => Container::$app->config('uri')]], |
|
17 | 17 | 'dbClass' => ['Rudra\ConnectDB', ['config' => Container::$app->config('database')]], |
18 | - 'router' => ['Rudra\Router', ['namespace' => Container::$app->config('namespaces', 'default'), 'templateEngine' => Container::$app->config('template')]], |
|
18 | + 'router' => ['Rudra\Router', ['namespace' => Container::$app->config('namespaces', 'default'), 'templateEngine' => Container::$app->config('template')]], |
|
19 | 19 | 'route' => ['App\Route'] |
20 | 20 | ] |
21 | 21 | ]; |
22 | 22 | \ No newline at end of file |