@@ -5,7 +5,7 @@ |
||
5 | 5 | 'class' => '\Micro\Auth\DbAcl', |
6 | 6 | 'arguments' => [ |
7 | 7 | 'container' => '@this', |
8 | - 'roles' => [ // Permission roles |
|
8 | + 'roles' => [// Permission roles |
|
9 | 9 | 'roles' => [ |
10 | 10 | 1 => 'user', |
11 | 11 | 2 => 'admin' |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | // Get micro |
4 | -require __DIR__ . '/../app/Application.php'; |
|
4 | +require __DIR__.'/../app/Application.php'; |
|
5 | 5 | |
6 | 6 | // Get kernel |
7 | 7 | $app = new \App\Application; |
@@ -15,7 +15,7 @@ |
||
15 | 15 | echo $this->widget('\Micro\Widget\ListViewWidget', [ |
16 | 16 | 'data' => $blogs, |
17 | 17 | 'page' => $page, |
18 | - 'pathView' => __DIR__ . '/_view.php', |
|
18 | + 'pathView' => __DIR__.'/_view.php', |
|
19 | 19 | 'paginationConfig' => [ |
20 | 20 | 'url' => '/blog/post/index/' |
21 | 21 | ] |
@@ -30,7 +30,7 @@ |
||
30 | 30 | '\App\Assets\BootstrapAsset' |
31 | 31 | ]; |
32 | 32 | |
33 | - $this->sourcePath = __DIR__ . '/app'; |
|
33 | + $this->sourcePath = __DIR__.'/app'; |
|
34 | 34 | |
35 | 35 | parent::__construct($view); |
36 | 36 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function execute() |
17 | 17 | { |
18 | - $this->message = 'Hello, world!' . "\n"; |
|
18 | + $this->message = 'Hello, world!'."\n"; |
|
19 | 19 | $this->result = true; |
20 | 20 | } |
21 | 21 | } |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | // read components |
4 | 4 | $components = []; |
5 | -foreach (scandir(__DIR__ . '/components') AS $fileName) { |
|
5 | +foreach (scandir(__DIR__.'/components') AS $fileName) { |
|
6 | 6 | if ($fileName !== '.' && $fileName !== '..') { |
7 | 7 | /** @noinspection PhpIncludeInspection */ |
8 | - $components[substr($fileName, 0, -4)] = require __DIR__ . '/components/' . $fileName; |
|
8 | + $components[substr($fileName, 0, -4)] = require __DIR__.'/components/'.$fileName; |
|
9 | 9 | } |
10 | 10 | } |
11 | 11 |
@@ -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 | } |