Completed
Branch master (616821)
by Anton
03:31
created
Category
src/modules/test/controllers/ajax-form.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
  * @param $formName
15 15
  * @return void
16 16
  */
17
-return function ($formName) {
17
+return function($formName) {
18 18
     /**
19 19
      * @var Controller $this
20 20
      */
Please login to merge, or discard this patch.
src/modules/test/controllers/db.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
             'Basic DB operations',
26 26
         ]
27 27
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/route-static.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
  * @route /another-route.html
19 19
  * @return false
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
             'Routers Examples',
29 29
         ]
30 30
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/grid-with-filter.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
             'Grid with Filter',
26 26
         ]
27 27
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/grid-table.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 string
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
             'Grid with Select',
27 27
         ]
28 28
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,48 +17,48 @@  discard block
 block discarded – undo
17 17
 /**
18 18
  * @return array
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
             'Events',
28 28
         ]
29 29
     );
30 30
 
31 31
     EventManager::attach(
32 32
         'testevent',
33
-        function (Event $event) {
33
+        function(Event $event) {
34 34
             return $event->getTarget()*2;
35 35
         }
36 36
     );
37 37
 
38 38
     EventManager::attach(
39 39
         'testevent',
40
-        function (Event $event) {
40
+        function(Event $event) {
41 41
             return $event->getTarget()*2;
42 42
         }
43 43
     );
44 44
 
45 45
     EventManager::attach(
46 46
         'testspace:event',
47
-        function (Event $event) {
47
+        function(Event $event) {
48 48
             return $event->getTarget()+4;
49 49
         }
50 50
     );
51 51
 
52 52
     EventManager::attach(
53 53
         'testspace:event',
54
-        function (Event $event) {
54
+        function(Event $event) {
55 55
             return $event->getTarget()+2;
56 56
         }
57 57
     );
58 58
 
59 59
     EventManager::attach(
60 60
         'testspace:event2',
61
-        function (Event $event) {
61
+        function(Event $event) {
62 62
             $event->setTarget($event->getTarget()+5);
63 63
             return false;
64 64
         }
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
 
67 67
     EventManager::attach(
68 68
         'testspace:event2',
69
-        function (Event $event) {
70
-            echo "Never run". $event->getName();
69
+        function(Event $event) {
70
+            echo "Never run".$event->getName();
71 71
         }
72 72
     );
73 73
 
74 74
     EventManager::attach(
75 75
         'testspace',
76
-        function (Event $event) {
76
+        function(Event $event) {
77 77
             return $event->getTarget()+1;
78 78
         }
79 79
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/route.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
             'Routers Examples',
26 26
         ]
27 27
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/route-with-param.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
  * @param int $a
21 21
  * @return false
22 22
  */
23
-return function ($a = 42) {
23
+return function($a = 42) {
24 24
     /**
25 25
      * @var Controller $this
26 26
      */
27 27
     Layout::breadCrumbs(
28 28
         [
29
-            Layout::ahref('Test', ['test', 'index']),
29
+            Layout::ahref('Test', [ 'test', 'index' ]),
30 30
             'Routers Examples',
31 31
         ]
32 32
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/mailer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
  * @param string $email
20 20
  * @return void
21 21
  */
22
-return function ($email = "[email protected]") {
22
+return function($email = "[email protected]") {
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
             'Mailer Example',
30 30
         ]
31 31
     );
Please login to merge, or discard this patch.