@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | * @namespace artisan/v1 |
| 11 | 11 | * @version 1 |
| 12 | 12 | */ |
| 13 | -Route::group(['prefix' => 'artisan/v1'], function () |
|
| 13 | +Route::group([ 'prefix' => 'artisan/v1' ], function() |
|
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | 16 | * Run queued commend. |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * |
| 20 | 20 | * @method GET |
| 21 | 21 | */ |
| 22 | - Route::get('queued/{group}/{command}/{hash}', function ($group, $command, $hash) |
|
| 22 | + Route::get('queued/{group}/{command}/{hash}', function($group, $command, $hash) |
|
| 23 | 23 | { |
| 24 | 24 | /** @var \VojtaSvoboda\WebArtisan\Classes\CommandRunner $runner */ |
| 25 | 25 | $runner = App::make(\VojtaSvoboda\WebArtisan\Classes\CommandRunner::class); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * |
| 37 | 37 | * @method GET |
| 38 | 38 | */ |
| 39 | - Route::get('{group}/{command}/{hash}', function ($group, $command, $hash) |
|
| 39 | + Route::get('{group}/{command}/{hash}', function($group, $command, $hash) |
|
| 40 | 40 | { |
| 41 | 41 | /** @var \VojtaSvoboda\WebArtisan\Classes\CommandRunner $runner */ |
| 42 | 42 | $runner = App::make(\VojtaSvoboda\WebArtisan\Classes\CommandRunner::class); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | use ValidationTrait; |
| 10 | 10 | |
| 11 | - public $implement = ['System.Behaviors.SettingsModel']; |
|
| 11 | + public $implement = [ 'System.Behaviors.SettingsModel' ]; |
|
| 12 | 12 | |
| 13 | 13 | public $settingsCode = 'vojtasvoboda_webartisan_settings'; |
| 14 | 14 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | class CommandRunner |
| 8 | 8 | { |
| 9 | 9 | /** @var array $allowedCommands List of allowed commands loaded from Config. */ |
| 10 | - protected $allowedCommands = []; |
|
| 10 | + protected $allowedCommands = [ ]; |
|
| 11 | 11 | |
| 12 | 12 | /** @var Settings $settings */ |
| 13 | 13 | protected $settings; |