@@ -16,12 +16,12 @@ |
||
16 | 16 | { |
17 | 17 | $faker = Faker\Factory::create(); |
18 | 18 | |
19 | - $data = []; |
|
19 | + $data = [ ]; |
|
20 | 20 | for ($i = 0; $i < 100; $i++) { |
21 | - $data[] = [ |
|
21 | + $data[ ] = [ |
|
22 | 22 | 'name' => $faker->userName, |
23 | 23 | 'email' => $faker->email, |
24 | - 'status' => array_rand(['active' => 1, 'disable' => 2, 'delete' => 3]), |
|
24 | + 'status' => array_rand([ 'active' => 1, 'disable' => 2, 'delete' => 3 ]), |
|
25 | 25 | 'created' => date('Y-m-d H:i:s'), |
26 | 26 | ]; |
27 | 27 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @route /another-route.html |
19 | 19 | * @return string |
20 | 20 | */ |
21 | -return function () { |
|
21 | +return function() { |
|
22 | 22 | /** |
23 | 23 | * @var Controller $this |
24 | 24 | */ |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @route /another-route.html |
40 | 40 | */</code></pre></div> |
41 | 41 | CODE; |
42 | - $this->assign('title', $module .'/'. $controller); |
|
42 | + $this->assign('title', $module.'/'.$controller); |
|
43 | 43 | $this->assign('content', $content); |
44 | 44 | return 'modal.phtml'; |
45 | 45 | }; |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * @param string $c |
21 | 21 | * @return string |
22 | 22 | */ |
23 | -return function ($a, $b, $c) { |
|
23 | +return function($a, $b, $c) { |
|
24 | 24 | /** |
25 | 25 | * @var Controller $this |
26 | 26 | */ |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | echo \$c; <em>// '$c'</em> |
53 | 53 | }</code></pre></div> |
54 | 54 | CODE; |
55 | - $this->assign('title', $module .'/'. $controller); |
|
55 | + $this->assign('title', $module.'/'.$controller); |
|
56 | 56 | $this->assign('content', $content); |
57 | 57 | return 'modal.phtml'; |
58 | 58 | }; |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * @return void |
16 | 16 | */ |
17 | -return function () { |
|
17 | +return function() { |
|
18 | 18 | /** |
19 | 19 | * @var Controller $this |
20 | 20 | */ |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * @param string $a |
21 | 21 | * @return string |
22 | 22 | */ |
23 | -return function ($a = '42') { |
|
23 | +return function($a = '42') { |
|
24 | 24 | /** |
25 | 25 | * @var Controller $this |
26 | 26 | */ |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | }</code></pre></div> |
50 | 50 | |
51 | 51 | CODE; |
52 | - $this->assign('title', $module .'/'. $controller); |
|
52 | + $this->assign('title', $module.'/'.$controller); |
|
53 | 53 | $this->assign('content', $content); |
54 | 54 | return 'modal.phtml'; |
55 | 55 | }; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param string $email |
21 | 21 | * @return void |
22 | 22 | */ |
23 | -return function ($email = '[email protected]') { |
|
23 | +return function($email = '[email protected]') { |
|
24 | 24 | /** |
25 | 25 | * @var Controller $this |
26 | 26 | */ |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @param string $alias |
18 | 18 | * @return string |
19 | 19 | */ |
20 | -return function ($alias) { |
|
20 | +return function($alias) { |
|
21 | 21 | /** |
22 | 22 | * @var Controller $this |
23 | 23 | */ |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | echo \$id; <em>// '$id'</em> |
41 | 41 | }</code></pre></div> |
42 | 42 | CODE; |
43 | - $this->assign('title', $module .'/'. $controller); |
|
43 | + $this->assign('title', $module.'/'.$controller); |
|
44 | 44 | $this->assign('content', $content); |
45 | 45 | return 'modal.phtml'; |
46 | 46 | }; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | /** |
17 | 17 | * @return string |
18 | 18 | */ |
19 | -return function () { |
|
19 | +return function() { |
|
20 | 20 | /** |
21 | 21 | * @var Controller $this |
22 | 22 | */ |
@@ -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 | } |