@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | // Get micro |
4 | -require __DIR__ . '/app/__autoload.php'; |
|
5 | -require __DIR__ . '/app/Kernel.php'; |
|
4 | +require __DIR__.'/app/__autoload.php'; |
|
5 | +require __DIR__.'/app/Kernel.php'; |
|
6 | 6 | |
7 | 7 | // Get kernel |
8 | 8 | $app = new \App\Application; |
@@ -65,7 +65,7 @@ |
||
65 | 65 | { |
66 | 66 | /** @noinspection PhpIncludeInspection */ |
67 | 67 | $form = new FormBuilder( |
68 | - include (new KernelInjector)->build()->getAppDir() . '/views/default/loginform.php', |
|
68 | + include (new KernelInjector)->build()->getAppDir().'/views/default/loginform.php', |
|
69 | 69 | new LoginFormModel(), |
70 | 70 | 'POST' |
71 | 71 | ); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $this->js[] = '/jquery.min.js'; |
28 | 28 | } |
29 | 29 | |
30 | - $this->sourcePath = (new KernelInjector)->build()->getAppDir() . '/../vendor/components/jquery'; |
|
30 | + $this->sourcePath = (new KernelInjector)->build()->getAppDir().'/../vendor/components/jquery'; |
|
31 | 31 | |
32 | 32 | parent::__construct($view); |
33 | 33 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $this->css[] = '/css/bootstrap.min.css'; |
30 | 30 | } |
31 | 31 | |
32 | - $this->sourcePath = (new KernelInjector)->build()->getAppDir() . '/../vendor/twbs/bootstrap/dist'; |
|
32 | + $this->sourcePath = (new KernelInjector)->build()->getAppDir().'/../vendor/twbs/bootstrap/dist'; |
|
33 | 33 | |
34 | 34 | parent::__construct($view); |
35 | 35 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | $blog->content = $blogData['content']; |
84 | 84 | |
85 | 85 | if ($blog->save()) { |
86 | - return $this->redirect('/blog/post/' . $blog->id); |
|
86 | + return $this->redirect('/blog/post/'.$blog->id); |
|
87 | 87 | } |
88 | 88 | } |
89 | 89 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require __DIR__ . '/../vendor/autoload.php'; |
|
4 | -require __DIR__ . '/../vendor/linpax/microphp-framework/src/base/Autoload.php'; |
|
3 | +require __DIR__.'/../vendor/autoload.php'; |
|
4 | +require __DIR__.'/../vendor/linpax/microphp-framework/src/base/Autoload.php'; |
|
5 | 5 | |
6 | 6 | spl_autoload_register(['\Micro\Base\Autoload', 'loader'], true, false); |
7 | 7 | |
8 | -\Micro\Base\Autoload::setAlias('Micro', __DIR__ . '/../vendor/linpax/microphp-framework/src'); |
|
8 | +\Micro\Base\Autoload::setAlias('Micro', __DIR__.'/../vendor/linpax/microphp-framework/src'); |
|
9 | 9 | \Micro\Base\Autoload::setAlias('App', __DIR__); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | // Run system and get app |
4 | -require __DIR__ . '/../app/__autoload.php'; |
|
5 | -require __DIR__ . '/../app/Kernel.php'; |
|
4 | +require __DIR__.'/../app/__autoload.php'; |
|
5 | +require __DIR__.'/../app/Kernel.php'; |
|
6 | 6 | |
7 | 7 | // Get kernel |
8 | 8 | $kernel = new \App\Kernel('debug', false); |