@@ -14,7 +14,7 @@ |
||
| 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 | */ |
@@ -15,13 +15,13 @@ |
||
| 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 | ); |
@@ -18,13 +18,13 @@ |
||
| 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 | ); |
@@ -15,13 +15,13 @@ |
||
| 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 | ); |
@@ -16,13 +16,13 @@ |
||
| 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 | ); |
@@ -17,48 +17,48 @@ 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 | */ |
| 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 |
||
| 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 | ); |
@@ -15,13 +15,13 @@ |
||
| 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 | ); |
@@ -20,13 +20,13 @@ |
||
| 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 | ); |
@@ -19,13 +19,13 @@ |
||
| 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 | ); |