@@ -17,13 +17,13 @@ |
||
17 | 17 | /** |
18 | 18 | * @return bool |
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 | 'Database', |
28 | 28 | 'Relations', |
29 | 29 | ] |
@@ -17,13 +17,13 @@ discard block |
||
17 | 17 | /** |
18 | 18 | * @return void |
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 | 'SQL query', |
29 | 29 | ] |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $grid->setModule($this->module); |
33 | 33 | $grid->setController($this->controller); |
34 | 34 | // just example of same custom param for build URL |
35 | - $grid->setParams(['id' => 5]); |
|
35 | + $grid->setParams([ 'id' => 5 ]); |
|
36 | 36 | |
37 | 37 | $this->assign('grid', $grid); |
38 | 38 | }; |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * |
21 | 21 | * @return string |
22 | 22 | */ |
23 | -return function ($alias) { |
|
23 | +return function($alias) { |
|
24 | 24 | /** |
25 | 25 | * @var Controller $this |
26 | 26 | */ |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | echo \$id; <em>// '$id'</em> |
44 | 44 | }</code></pre></div> |
45 | 45 | CODE; |
46 | - $this->assign('title', $module . '/' . $controller); |
|
46 | + $this->assign('title', $module.'/'.$controller); |
|
47 | 47 | $this->assign('content', $content); |
48 | 48 | return 'modal.phtml'; |
49 | 49 | }; |
@@ -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 | ] |
@@ -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 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | $this->setAdapter($adapter); |
39 | 39 | $this->setDefaultLimit(15); |
40 | - $this->setAllowOrders(['name', 'id', 'status']); |
|
41 | - $this->setAllowFilters(['status', 'id']); |
|
40 | + $this->setAllowOrders([ 'name', 'id', 'status' ]); |
|
41 | + $this->setAllowFilters([ 'status', 'id' ]); |
|
42 | 42 | } |
43 | 43 | } |