@@ -22,13 +22,13 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @return void |
| 24 | 24 | */ |
| 25 | -return function ($email = '[email protected]') { |
|
| 25 | +return function($email = '[email protected]') { |
|
| 26 | 26 | /** |
| 27 | 27 | * @var Controller $this |
| 28 | 28 | */ |
| 29 | 29 | Layout::breadCrumbs( |
| 30 | 30 | [ |
| 31 | - Layout::ahref('Test', ['test', 'index']), |
|
| 31 | + Layout::ahref('Test', [ 'test', 'index' ]), |
|
| 32 | 32 | 'Mailer Example', |
| 33 | 33 | ] |
| 34 | 34 | ); |
@@ -15,13 +15,13 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * @return void |
| 17 | 17 | */ |
| 18 | -return function () { |
|
| 18 | +return function() { |
|
| 19 | 19 | /** |
| 20 | 20 | * @var Controller $this |
| 21 | 21 | */ |
| 22 | 22 | Layout::breadCrumbs( |
| 23 | 23 | [ |
| 24 | - Layout::ahref('Test', ['test', 'index']), |
|
| 24 | + Layout::ahref('Test', [ 'test', 'index' ]), |
|
| 25 | 25 | 'Backbone', |
| 26 | 26 | ] |
| 27 | 27 | ); |
@@ -22,13 +22,13 @@ |
||
| 22 | 22 | * @route /test-reflection.html |
| 23 | 23 | * @return array |
| 24 | 24 | */ |
| 25 | -return function ($id = 0, $other = "default value") { |
|
| 25 | +return function($id = 0, $other = "default value") { |
|
| 26 | 26 | /** |
| 27 | 27 | * @var Controller $this |
| 28 | 28 | */ |
| 29 | 29 | Layout::breadCrumbs( |
| 30 | 30 | [ |
| 31 | - Layout::ahref('Test', ['test', 'index']), |
|
| 31 | + Layout::ahref('Test', [ 'test', 'index' ]), |
|
| 32 | 32 | 'Reflection of this controller', |
| 33 | 33 | ] |
| 34 | 34 | ); |
@@ -17,13 +17,13 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @return string |
| 19 | 19 | */ |
| 20 | -return function () { |
|
| 20 | +return function() { |
|
| 21 | 21 | /** |
| 22 | 22 | * @var Controller $this |
| 23 | 23 | */ |
| 24 | 24 | Layout::breadCrumbs( |
| 25 | 25 | [ |
| 26 | - Layout::ahref('Test', ['test', 'index']), |
|
| 26 | + Layout::ahref('Test', [ 'test', 'index' ]), |
|
| 27 | 27 | 'Grid', |
| 28 | 28 | 'Select source', |
| 29 | 29 | ] |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * @link https://github.com/bluzphp/skeleton |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Application\Test; |
| 10 | 10 | |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | $this->setAdapter($adapter); |
| 41 | 41 | $this->setDefaultLimit(15); |
| 42 | - $this->setAllowOrders(['name', 'id', 'status']); |
|
| 43 | - $this->setAllowFilters(['status', 'id']); |
|
| 42 | + $this->setAllowOrders([ 'name', 'id', 'status' ]); |
|
| 43 | + $this->setAllowFilters([ 'status', 'id' ]); |
|
| 44 | 44 | |
| 45 | 45 | return $this; |
| 46 | 46 | } |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * @link https://github.com/bluzphp/skeleton |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace Application\Test; |
| 10 | 10 | |
@@ -37,9 +37,9 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $table = $this->table('test'); |
| 39 | 39 | $table |
| 40 | - ->addColumn('name', 'string', ['length' => 255]) |
|
| 41 | - ->addColumn('email', 'string', ['length' => 255, 'null' => true]) |
|
| 42 | - ->addColumn('status', 'enum', ['values' => ['active', 'disable', 'delete']]) |
|
| 40 | + ->addColumn('name', 'string', [ 'length' => 255 ]) |
|
| 41 | + ->addColumn('email', 'string', [ 'length' => 255, 'null' => true ]) |
|
| 42 | + ->addColumn('status', 'enum', [ 'values' => [ 'active', 'disable', 'delete' ] ]) |
|
| 43 | 43 | ->addTimestamps('created', 'updated') |
| 44 | 44 | ->create(); |
| 45 | 45 | } |