Completed
Pull Request — master (#14)
by Anton
02:22
created
data/seeds/TestSeeder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
application/modules/test/controllers/route-static.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 };
Please login to merge, or discard this patch.
application/modules/test/controllers/route-with-params.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 };
Please login to merge, or discard this patch.
application/modules/test/controllers/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 /**
15 15
  * @return void
16 16
  */
17
-return function () {
17
+return function() {
18 18
     /**
19 19
      * @var Controller $this
20 20
      */
Please login to merge, or discard this patch.
application/modules/test/controllers/route-with-param.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 };
Please login to merge, or discard this patch.
application/modules/test/controllers/mailer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
application/modules/test/controllers/route-with-get-params.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 };
Please login to merge, or discard this patch.
application/modules/test/controllers/cookies.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 /**
17 17
  * @return string
18 18
  */
19
-return function () {
19
+return function() {
20 20
     /**
21 21
      * @var Controller $this
22 22
      */
Please login to merge, or discard this patch.
data/migrations/20170317111211_module_test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.