Completed
Push — master ( 317cc4...ea1e1d )
by Anton
18s
created
application/models/Test/SelectGrid.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * @link      https://github.com/bluzphp/skeleton
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Application\Test;
10 10
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         $this->setAdapter($adapter);
39 39
         $this->setDefaultLimit(15);
40
-        $this->setAllowOrders(['name', 'id', 'status']);
41
-        $this->setAllowFilters(['status', 'id']);
40
+        $this->setAllowOrders([ 'name', 'id', 'status' ]);
41
+        $this->setAllowFilters([ 'status', 'id' ]);
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
application/models/Test/Table.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * @link      https://github.com/bluzphp/skeleton
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Application\Test;
10 10
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @var array
35 35
      */
36
-    protected $primary = ['id'];
36
+    protected $primary = [ 'id' ];
37 37
 
38 38
     /**
39 39
      * save test row
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function saveTestRow()
44 44
     {
45
-        return self::insert(['name' => 'Example #' . random_int(1, 10), 'email' => '[email protected]']);
45
+        return self::insert([ 'name' => 'Example #'.random_int(1, 10), 'email' => '[email protected]' ]);
46 46
     }
47 47
 
48 48
     /**
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function updateTestRows()
54 54
     {
55
-        return self::update(['email' => '[email protected]'], ['email' => '[email protected]']);
55
+        return self::update([ 'email' => '[email protected]' ], [ 'email' => '[email protected]' ]);
56 56
     }
57 57
 
58 58
     /**
@@ -62,6 +62,6 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function deleteTestRows()
64 64
     {
65
-        return self::delete(['email' => '[email protected]']);
65
+        return self::delete([ 'email' => '[email protected]' ]);
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
application/models/Test/TableGrid.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * @link      https://github.com/bluzphp/skeleton
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Application\Test;
10 10
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
         $this->setAdapter($adapter);
37 37
         $this->setDefaultLimit(15);
38
-        $this->setAllowOrders(['name', 'id', 'status']);
39
-        $this->setAllowFilters(['status', 'id']);
38
+        $this->setAllowOrders([ 'name', 'id', 'status' ]);
39
+        $this->setAllowFilters([ 'status', 'id' ]);
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
application/models/Test/ArrayGrid.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * @link      https://github.com/bluzphp/skeleton
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Application\Test;
10 10
 
@@ -30,22 +30,22 @@  discard block
 block discarded – undo
30 30
         $adapter = new ArraySource();
31 31
         $adapter->setSource(
32 32
             [
33
-                ['id' => 1, 'name' => 'Foo', 'email' => '[email protected]', 'status' => 'active'],
34
-                ['id' => 2, 'name' => 'Bar', 'email' => '[email protected]', 'status' => 'active'],
35
-                ['id' => 3, 'name' => 'Foo 2', 'email' => '[email protected]', 'status' => 'disable'],
36
-                ['id' => 4, 'name' => 'Foo 3', 'email' => '[email protected]', 'status' => 'disable'],
37
-                ['id' => 5, 'name' => 'Foo 4', 'email' => '[email protected]', 'status' => 'disable'],
38
-                ['id' => 6, 'name' => 'Foo 5', 'email' => '[email protected]', 'status' => 'disable'],
39
-                ['id' => 7, 'name' => 'Foo 6', 'email' => '[email protected]', 'status' => 'disable'],
40
-                ['id' => 8, 'name' => 'Foo 7', 'email' => '[email protected]', 'status' => 'disable'],
41
-                ['id' => 9, 'name' => 'Foo 8', 'email' => '[email protected]', 'status' => 'disable'],
42
-                ['id' => 10, 'name' => 'Foo 9', 'email' => '[email protected]', 'status' => 'disable'],
33
+                [ 'id' => 1, 'name' => 'Foo', 'email' => '[email protected]', 'status' => 'active' ],
34
+                [ 'id' => 2, 'name' => 'Bar', 'email' => '[email protected]', 'status' => 'active' ],
35
+                [ 'id' => 3, 'name' => 'Foo 2', 'email' => '[email protected]', 'status' => 'disable' ],
36
+                [ 'id' => 4, 'name' => 'Foo 3', 'email' => '[email protected]', 'status' => 'disable' ],
37
+                [ 'id' => 5, 'name' => 'Foo 4', 'email' => '[email protected]', 'status' => 'disable' ],
38
+                [ 'id' => 6, 'name' => 'Foo 5', 'email' => '[email protected]', 'status' => 'disable' ],
39
+                [ 'id' => 7, 'name' => 'Foo 6', 'email' => '[email protected]', 'status' => 'disable' ],
40
+                [ 'id' => 8, 'name' => 'Foo 7', 'email' => '[email protected]', 'status' => 'disable' ],
41
+                [ 'id' => 9, 'name' => 'Foo 8', 'email' => '[email protected]', 'status' => 'disable' ],
42
+                [ 'id' => 10, 'name' => 'Foo 9', 'email' => '[email protected]', 'status' => 'disable' ],
43 43
             ]
44 44
         );
45 45
 
46 46
         $this->setAdapter($adapter);
47 47
         $this->setDefaultLimit(3);
48
-        $this->setAllowOrders(['name', 'email', 'id']);
49
-        $this->setAllowFilters(['name', 'status', 'id']);
48
+        $this->setAllowOrders([ 'name', 'email', 'id' ]);
49
+        $this->setAllowFilters([ 'name', 'status', 'id' ]);
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
application/models/Test/SqlGrid.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * @link      https://github.com/bluzphp/skeleton
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Application\Test;
10 10
 
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
 
33 33
         $this->setAdapter($adapter);
34 34
         $this->setDefaultLimit(15);
35
-        $this->setAllowOrders(['name', 'id', 'status']);
36
-        $this->setAllowFilters(['status', 'id']);
35
+        $this->setAllowOrders([ 'name', 'id', 'status' ]);
36
+        $this->setAllowFilters([ 'status', 'id' ]);
37 37
         $this->setDefaultOrder('name', Grid::ORDER_DESC);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.