Passed
Push — develop ( 9d9251...963f5e )
by nguereza
11:28
created
src/Query/InsertStatement.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
  * @class InsertStatement
51 51
  * @package Platine\Database\Query
52 52
  */
53
-class InsertStatement
54
-{
53
+class InsertStatement {
55 54
     /**
56 55
      * The Query statement instance
57 56
      * @var QueryStatement
@@ -62,8 +61,7 @@  discard block
 block discarded – undo
62 61
      * InsertStatement constructor.
63 62
      * @param QueryStatement|null $queryStatement
64 63
      */
65
-    public function __construct(?QueryStatement $queryStatement = null)
66
-    {
64
+    public function __construct(?QueryStatement $queryStatement = null) {
67 65
         $this->queryStatement = $queryStatement ?? new QueryStatement();
68 66
     }
69 67
 
Please login to merge, or discard this patch.
src/Exception/ConnectionNotFoundException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,6 +36,5 @@
 block discarded – undo
36 36
  * @class ConnectionNotFoundException
37 37
  * @package Platine\Database\Exception
38 38
  */
39
-class ConnectionNotFoundException extends DatabaseException
40
-{
39
+class ConnectionNotFoundException extends DatabaseException {
41 40
 }
Please login to merge, or discard this patch.
src/Schema/AlterTable.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      * @param string|null $name
165 165
      * @return $this
166 166
      */
167
-    public function primary(string|array $columns, ?string $name = null): self
167
+    public function primary(string | array $columns, ?string $name = null): self
168 168
     {
169 169
         return $this->addKey('addPrimary', $columns, $name);
170 170
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      * @param string|null $name
176 176
      * @return $this
177 177
      */
178
-    public function unique(string|array $columns, ?string $name = null): self
178
+    public function unique(string | array $columns, ?string $name = null): self
179 179
     {
180 180
         return $this->addKey('addUnique', $columns, $name);
181 181
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * @param string|null $name
187 187
      * @return $this
188 188
      */
189
-    public function index(string|array $columns, ?string $name = null): self
189
+    public function index(string | array $columns, ?string $name = null): self
190 190
     {
191 191
         return $this->addKey('addIndex', $columns, $name);
192 192
     }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * @param string|null $name
198 198
      * @return ForeignKey
199 199
      */
200
-    public function foreign(string|array $columns, ?string $name = null): ForeignKey
200
+    public function foreign(string | array $columns, ?string $name = null): ForeignKey
201 201
     {
202 202
         if (!is_array($columns)) {
203 203
             $columns = [$columns];
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
      */
562 562
     protected function addKey(
563 563
         string $type,
564
-        string|array $columns,
564
+        string | array $columns,
565 565
         ?string $name = null
566 566
     ): self {
567 567
         static $maps = [
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
  * @class AlterTable
51 51
  * @package Platine\Database\Schema
52 52
  */
53
-class AlterTable
54
-{
53
+class AlterTable {
55 54
     /**
56 55
      * The list of commands
57 56
      * @var array<int, array<string, mixed>>
@@ -62,8 +61,7 @@  discard block
 block discarded – undo
62 61
      * Class constructor
63 62
      * @param string $table The name of table
64 63
      */
65
-    public function __construct(protected string $table)
66
-    {
64
+    public function __construct(protected string $table) {
67 65
     }
68 66
 
69 67
     /**
Please login to merge, or discard this patch.
src/Schema/BaseColumn.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
  * @class BaseColumn
51 51
  * @package Platine\Database\Schema
52 52
  */
53
-class BaseColumn
54
-{
53
+class BaseColumn {
55 54
     /**
56 55
      * The column properties
57 56
      * @var array<string, mixed>
@@ -63,8 +62,7 @@  discard block
 block discarded – undo
63 62
      * @param string $name The name of the column
64 63
      * @param string|null $type The type of column
65 64
      */
66
-    public function __construct(protected string $name, protected ?string $type = null)
67
-    {
65
+    public function __construct(protected string $name, protected ?string $type = null) {
68 66
     }
69 67
 
70 68
     /**
Please login to merge, or discard this patch.
src/Schema/CreateColumn.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * @class CreateColumn
51 51
  * @package Platine\Database\Schema
52 52
  */
53
-class CreateColumn extends BaseColumn
54
-{
53
+class CreateColumn extends BaseColumn {
55 54
     /**
56 55
      * The associated table instance
57 56
      * @var CreateTable
Please login to merge, or discard this patch.
src/Schema/ForeignKey.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
  * @class ForeignKey
51 51
  * @package Platine\Database\Schema
52 52
  */
53
-class ForeignKey
54
-{
53
+class ForeignKey {
55 54
     /**
56 55
      * The referenced table
57 56
      * @var string
@@ -74,8 +73,7 @@  discard block
 block discarded – undo
74 73
      * Class constructor
75 74
      * @param array<int, string> $columns The base table columns
76 75
      */
77
-    public function __construct(protected array $columns)
78
-    {
76
+    public function __construct(protected array $columns) {
79 77
     }
80 78
 
81 79
     /**
Please login to merge, or discard this patch.