@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param int $optional |
21 | 21 | * @return array |
22 | 22 | */ |
23 | -return function ($int, $string, $array, $optional = 0) { |
|
23 | +return function($int, $string, $array, $optional = 0) { |
|
24 | 24 | /** |
25 | 25 | * @var Controller $this |
26 | 26 | */ |
@@ -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 | */ |
@@ -18,7 +18,7 @@ |
||
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 | */ |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * @return \closure |
16 | 16 | */ |
17 | -return function () { |
|
17 | +return function() { |
|
18 | 18 | Layout::breadCrumbs( |
19 | 19 | [ |
20 | 20 | Layout::ahref('Test', [ 'test', 'index' ]), |
@@ -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 | */ |
@@ -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 | */ |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /** |
18 | 18 | * @return array |
19 | 19 | */ |
20 | -return function () { |
|
20 | +return function() { |
|
21 | 21 | /** |
22 | 22 | * @var Controller $this |
23 | 23 | */ |
@@ -30,35 +30,35 @@ discard block |
||
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 |
||
66 | 66 | |
67 | 67 | EventManager::attach( |
68 | 68 | 'testspace:event2', |
69 | - function (Event $event) { |
|
69 | + function(Event $event) { |
|
70 | 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 | ); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param bool $messages |
21 | 21 | * @return void |
22 | 22 | */ |
23 | -return function ($messages = false) { |
|
23 | +return function($messages = false) { |
|
24 | 24 | /** |
25 | 25 | * @var Controller $this |
26 | 26 | */ |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * @accept HTML |
23 | 23 | * @accept JSON |
24 | 24 | */ |
25 | -return function () { |
|
25 | +return function() { |
|
26 | 26 | /** |
27 | 27 | * @var Controller $this |
28 | 28 | */ |