Skip to content

Commit 6451733

Browse files
committed
style: remove useless new lines on signatures
1 parent 038c727 commit 6451733

File tree

1 file changed

+24
-64
lines changed

1 file changed

+24
-64
lines changed

packages/database/src/QueryStatements/CreateTableStatement.php

Lines changed: 24 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,8 @@ public function belongsTo(
6060
return $this;
6161
}
6262

63-
public function text(
64-
string $name,
65-
bool $nullable = false,
66-
?string $default = null,
67-
): self {
63+
public function text(string $name, bool $nullable = false, ?string $default = null): self
64+
{
6865
$this->statements[] = new TextStatement(
6966
name: $name,
7067
nullable: $nullable,
@@ -74,12 +71,8 @@ public function text(
7471
return $this;
7572
}
7673

77-
public function varchar(
78-
string $name,
79-
int $length = 255,
80-
bool $nullable = false,
81-
?string $default = null,
82-
): self {
74+
public function varchar(string $name, int $length = 255, bool $nullable = false, ?string $default = null): self
75+
{
8376
$this->statements[] = new VarcharStatement(
8477
name: $name,
8578
size: $length,
@@ -90,11 +83,8 @@ public function varchar(
9083
return $this;
9184
}
9285

93-
public function char(
94-
string $name,
95-
bool $nullable = false,
96-
?string $default = null,
97-
): self {
86+
public function char(string $name, bool $nullable = false, ?string $default = null): self
87+
{
9888
$this->statements[] = new CharStatement(
9989
name: $name,
10090
nullable: $nullable,
@@ -104,12 +94,8 @@ public function char(
10494
return $this;
10595
}
10696

107-
public function integer(
108-
string $name,
109-
bool $unsigned = false,
110-
bool $nullable = false,
111-
?int $default = null,
112-
): self {
97+
public function integer(string $name, bool $unsigned = false, bool $nullable = false, ?int $default = null): self
98+
{
11399
$this->statements[] = new IntegerStatement(
114100
name: $name,
115101
unsigned: $unsigned,
@@ -120,11 +106,8 @@ public function integer(
120106
return $this;
121107
}
122108

123-
public function float(
124-
string $name,
125-
bool $nullable = false,
126-
?float $default = null,
127-
): self {
109+
public function float(string $name, bool $nullable = false, ?float $default = null): self
110+
{
128111
$this->statements[] = new FloatStatement(
129112
name: $name,
130113
nullable: $nullable,
@@ -134,11 +117,8 @@ public function float(
134117
return $this;
135118
}
136119

137-
public function datetime(
138-
string $name,
139-
bool $nullable = false,
140-
?string $default = null,
141-
): self {
120+
public function datetime(string $name, bool $nullable = false, ?string $default = null): self
121+
{
142122
$this->statements[] = new DatetimeStatement(
143123
name: $name,
144124
nullable: $nullable,
@@ -148,11 +128,8 @@ public function datetime(
148128
return $this;
149129
}
150130

151-
public function date(
152-
string $name,
153-
bool $nullable = false,
154-
?string $default = null,
155-
): self {
131+
public function date(string $name, bool $nullable = false, ?string $default = null): self
132+
{
156133
$this->statements[] = new DateStatement(
157134
name: $name,
158135
nullable: $nullable,
@@ -162,11 +139,8 @@ public function date(
162139
return $this;
163140
}
164141

165-
public function boolean(
166-
string $name,
167-
bool $nullable = false,
168-
?bool $default = null,
169-
): self {
142+
public function boolean(string $name, bool $nullable = false, ?bool $default = null): self
143+
{
170144
$this->statements[] = new BooleanStatement(
171145
name: $name,
172146
nullable: $nullable,
@@ -176,11 +150,8 @@ public function boolean(
176150
return $this;
177151
}
178152

179-
public function json(
180-
string $name,
181-
bool $nullable = false,
182-
?string $default = null,
183-
): self {
153+
public function json(string $name, bool $nullable = false, ?string $default = null): self
154+
{
184155
$this->statements[] = new JsonStatement(
185156
name: $name,
186157
nullable: $nullable,
@@ -201,11 +172,8 @@ public function object(string $name, bool $nullable = false, ?string $default =
201172
return $this;
202173
}
203174

204-
public function array(
205-
string $name,
206-
bool $nullable = false,
207-
array $default = [],
208-
): self {
175+
public function array(string $name, bool $nullable = false, array $default = []): self
176+
{
209177
$this->statements[] = new JsonStatement(
210178
name: $name,
211179
nullable: $nullable,
@@ -215,12 +183,8 @@ public function array(
215183
return $this;
216184
}
217185

218-
public function enum(
219-
string $name,
220-
string $enumClass,
221-
bool $nullable = false,
222-
null|UnitEnum|BackedEnum $default = null,
223-
): self {
186+
public function enum(string $name, string $enumClass, bool $nullable = false, null|UnitEnum|BackedEnum $default = null): self
187+
{
224188
$this->statements[] = new EnumStatement(
225189
name: $name,
226190
enumClass: $enumClass,
@@ -231,12 +195,8 @@ enumClass: $enumClass,
231195
return $this;
232196
}
233197

234-
public function set(
235-
string $name,
236-
array $values,
237-
bool $nullable = false,
238-
?string $default = null,
239-
): self {
198+
public function set(string $name, array $values, bool $nullable = false, ?string $default = null): self
199+
{
240200
$this->statements[] = new SetStatement(
241201
name: $name,
242202
values: $values,

0 commit comments

Comments
 (0)