Completed
Push — master ( 43f19c...8591ed )
by Korotkov
01:19
created
app/web/Supports/TwigFunctions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,25 +13,25 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
app/web/route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
app/app.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
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
Please login to merge, or discard this patch.