Completed
Push — master ( 0fc6b5...1201b5 )
by Anton
13s
created
application/modules/test/controllers/session.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
 /**
17 17
  * @return array
18 18
  */
19
-return function () {
19
+return function() {
20 20
     /**
21 21
      * @var Controller $this
22 22
      */
23 23
     Layout::breadCrumbs(
24 24
         [
25
-            Layout::ahref('Test', ['test', 'index']),
25
+            Layout::ahref('Test', [ 'test', 'index' ]),
26 26
             'Session',
27 27
         ]
28 28
     );
Please login to merge, or discard this patch.
application/modules/test/controllers/db-query.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
 /**
17 17
  * @return void
18 18
  */
19
-return function () {
19
+return function() {
20 20
     /**
21 21
      * @var Controller $this
22 22
      */
23 23
     Layout::breadCrumbs(
24 24
         [
25
-            Layout::ahref('Test', ['test', 'index']),
25
+            Layout::ahref('Test', [ 'test', 'index' ]),
26 26
             'Database',
27 27
             'Query Builders',
28 28
         ]
Please login to merge, or discard this patch.
application/modules/test/controllers/ajax.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  *
23 23
  * @return void
24 24
  */
25
-return function ($messages = false) {
25
+return function($messages = false) {
26 26
     /**
27 27
      * @var Controller $this
28 28
      */
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         $this->assign('baz', 'qux');
36 36
     }
37
-    Messages::addNotice('Method ' . Request::getMethod());
37
+    Messages::addNotice('Method '.Request::getMethod());
38 38
 
39 39
     $this->assign('foo', 'bar');
40 40
 };
Please login to merge, or discard this patch.
application/modules/test/controllers/route-static.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
  * @route /another-route.html
20 20
  * @return string
21 21
  */
22
-return function () {
22
+return function() {
23 23
     /**
24 24
      * @var Controller $this
25 25
      */
26 26
     Layout::breadCrumbs(
27 27
         [
28
-            Layout::ahref('Test', ['test', 'index']),
28
+            Layout::ahref('Test', [ 'test', 'index' ]),
29 29
             'Routers Examples',
30 30
         ]
31 31
     );
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  * @route /another-route.html
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/events.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -18,64 +18,64 @@
 block discarded – undo
18 18
 /**
19 19
  * @return array
20 20
  */
21
-return function () {
21
+return function() {
22 22
     /**
23 23
      * @var Controller $this
24 24
      */
25 25
     Layout::breadCrumbs(
26 26
         [
27
-            Layout::ahref('Test', ['test', 'index']),
27
+            Layout::ahref('Test', [ 'test', 'index' ]),
28 28
             'Events',
29 29
         ]
30 30
     );
31 31
 
32 32
     EventManager::attach(
33 33
         'testevent',
34
-        function (Event $event) {
35
-            return $event->getTarget() * 2;
34
+        function(Event $event) {
35
+            return $event->getTarget()*2;
36 36
         }
37 37
     );
38 38
 
39 39
     EventManager::attach(
40 40
         'testevent',
41
-        function (Event $event) {
42
-            return $event->getTarget() * 2;
41
+        function(Event $event) {
42
+            return $event->getTarget()*2;
43 43
         }
44 44
     );
45 45
 
46 46
     EventManager::attach(
47 47
         'testspace:event',
48
-        function (Event $event) {
49
-            return $event->getTarget() + 4;
48
+        function(Event $event) {
49
+            return $event->getTarget()+4;
50 50
         }
51 51
     );
52 52
 
53 53
     EventManager::attach(
54 54
         'testspace:event',
55
-        function (Event $event) {
56
-            return $event->getTarget() + 2;
55
+        function(Event $event) {
56
+            return $event->getTarget()+2;
57 57
         }
58 58
     );
59 59
 
60 60
     EventManager::attach(
61 61
         'testspace:event2',
62
-        function (Event $event) {
63
-            $event->setTarget($event->getTarget() + 5);
62
+        function(Event $event) {
63
+            $event->setTarget($event->getTarget()+5);
64 64
             return false;
65 65
         }
66 66
     );
67 67
 
68 68
     EventManager::attach(
69 69
         'testspace:event2',
70
-        function (Event $event) {
71
-            echo 'Never run' . $event->getName();
70
+        function(Event $event) {
71
+            echo 'Never run'.$event->getName();
72 72
         }
73 73
     );
74 74
 
75 75
     EventManager::attach(
76 76
         'testspace',
77
-        function (Event $event) {
78
-            return $event->getTarget() + 1;
77
+        function(Event $event) {
78
+            return $event->getTarget()+1;
79 79
         }
80 80
     );
81 81
 
Please login to merge, or discard this patch.
application/modules/test/controllers/db.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
 /**
17 17
  * @return void
18 18
  */
19
-return function () {
19
+return function() {
20 20
     /**
21 21
      * @var Controller $this
22 22
      */
23 23
     Layout::breadCrumbs(
24 24
         [
25
-            Layout::ahref('Test', ['test', 'index']),
25
+            Layout::ahref('Test', [ 'test', 'index' ]),
26 26
             'Database',
27 27
             'DB package',
28 28
         ]
Please login to merge, or discard this patch.
application/modules/test/controllers/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
 /**
17 17
  * @return void
18 18
  */
19
-return function () {
19
+return function() {
20 20
     /**
21 21
      * @var Controller $this
22 22
      */
23 23
     Layout::title('Test Module');
24 24
     Layout::titleAppend('Append');
25 25
     Layout::titlePrepend('Prepend');
26
-    Layout::breadCrumbs(['Test']);
26
+    Layout::breadCrumbs([ 'Test' ]);
27 27
 };
Please login to merge, or discard this patch.
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.