Completed
Branch master (616821)
by Anton
03:31
created
Category
src/modules/test/controllers/empty.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
 /**
15 15
  * @return \closure
16 16
  */
17
-return function () {
17
+return function() {
18 18
     Layout::breadCrumbs(
19 19
         [
20
-            Layout::ahref('Test', ['test', 'index']),
20
+            Layout::ahref('Test', [ 'test', 'index' ]),
21 21
             'Empty',
22 22
         ]
23 23
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/db-relations.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 bool
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
             'DB Relations',
27 27
         ]
28 28
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/react.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 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
             'React',
28 28
         ]
29 29
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/grid-array.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
             'Grid with Array',
27 27
         ]
28 28
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/reflection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
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
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/request.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
             'Request Examples',
26 26
         ]
27 27
     );
Please login to merge, or discard this patch.
src/modules/test/controllers/grid-sql.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@  discard block
 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
             'Grid with SQL',
27 27
         ]
28 28
     );
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     $grid->setModule($this->module);
31 31
     $grid->setController($this->controller);
32 32
     // just example of same custom param for build URL
33
-    $grid->setParams(['id'=>5]);
33
+    $grid->setParams([ 'id'=>5 ]);
34 34
 
35 35
     $this->assign('grid', $grid);
36 36
 };
Please login to merge, or discard this patch.
src/modules/test/controllers/cookies.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * @return void
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
             'Cookies',
29 29
         ]
30 30
     );
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     // use Response object
37 37
     Response::setCookie('response', 'call');
38
-    Response::setCookie('time', 'hour', time() + 3600);
38
+    Response::setCookie('time', 'hour', time()+3600);
39 39
 
40 40
     $this->disableView();
41 41
 };
Please login to merge, or discard this patch.
src/modules/test/controllers/exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  * @return void
16 16
  * @throws \Exception
17 17
  */
18
-return function () {
18
+return function() {
19 19
     /**
20 20
      * @var Controller $this
21 21
      */
Please login to merge, or discard this patch.