@@ -18,64 +18,64 @@ |
||
| 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 | |
@@ -16,13 +16,13 @@ |
||
| 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 | ] |
@@ -16,12 +16,12 @@ |
||
| 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 | }; |
@@ -17,13 +17,13 @@ |
||
| 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 | ] |
@@ -17,13 +17,13 @@ discard block |
||
| 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 |
||
| 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 | }; |
@@ -20,7 +20,7 @@ discard block |
||
| 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 |
||
| 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 | }; |
@@ -22,13 +22,13 @@ |
||
| 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 | ); |
@@ -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 | 'Backbone', |
| 26 | 26 | ] |
| 27 | 27 | ); |
@@ -22,13 +22,13 @@ |
||
| 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 | ); |