Completed
Push — master ( fe72c4...326c99 )
by Anton
06:15 queued 04:27
created
application/modules/test/controllers/db-relations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
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
         ]
Please login to merge, or discard this patch.
application/modules/test/controllers/grid-sql.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 };
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
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 };
Please login to merge, or discard this patch.
application/modules/test/controllers/mailer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
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
     );
Please login to merge, or discard this patch.
application/modules/test/controllers/backbone.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
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
     );
Please login to merge, or discard this patch.
application/modules/test/controllers/reflection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
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
     );
Please login to merge, or discard this patch.
application/modules/test/controllers/grid-select.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
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
         ]
Please login to merge, or discard this patch.
data/migrations/20170317111211_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.
application/models/Test/SelectGrid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.