Skip to content

Commit 89b6063

Browse files
committed
Fix CS
1 parent 0461422 commit 89b6063

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

src/Argument.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ class Argument extends DependencyAwareGenerator implements FunctionMemberInterfa
1313

1414
private string $type;
1515
private string $name;
16-
private bool $isSpread = false;
16+
private bool $isSpread = false;
1717
private bool $isByReference = false;
18-
private bool $isNullable = false;
19-
private string $modifier = Modifier::NONE;
18+
private bool $isNullable = false;
19+
private string $modifier = Modifier::NONE;
2020

2121
/**
2222
* @var mixed
@@ -58,7 +58,7 @@ public function generate(): string
5858
$code = '';
5959

6060
if (Modifier::NONE !== $this->modifier) {
61-
$code .= $this->modifier . ' ';
61+
$code .= $this->modifier.' ';
6262
}
6363

6464
if ($this->type) {

src/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function new(string $name, string $modifier = Modifier::PUBLIC, st
2626
public function generate(): string
2727
{
2828
if ($this->signature->isMultiline) {
29-
return $this->buildDocBlock() . $this->signature->generate(false) . " {{$this->generateWrappedContent()}}";
29+
return $this->buildDocBlock().$this->signature->generate(false)." {{$this->generateWrappedContent()}}";
3030
}
3131

3232
return <<<CODE

src/ScopedContentTrait.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ public function clearContent(): self
8484
return $this;
8585
}
8686

87-
/**
88-
* @return array|null
89-
*/
9087
public function getLastLine(): ?array
9188
{
9289
$length = count($this->content);
@@ -121,6 +118,6 @@ protected function generateWrappedContent(string $left = "\n", string $right = "
121118
return '';
122119
}
123120

124-
return $left . $content . $right;
121+
return $left.$content.$right;
125122
}
126123
}

src/Signature.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function bindVars(string ...$names): self
178178
public function generate(bool $withDocBlock = true): string
179179
{
180180
if ($this->isMultiline) {
181-
$args = "\n" . Utils::indent(join(",\n", $this->args)) . "\n";
181+
$args = "\n".Utils::indent(join(",\n", $this->args))."\n";
182182
} else {
183183
$args = join(', ', $this->args);
184184
}
@@ -189,7 +189,7 @@ public function generate(bool $withDocBlock = true): string
189189
$returnType = '';
190190

191191
if (!empty($this->uses)) {
192-
$uses = ' use ('. join(', ', $this->uses).')';
192+
$uses = ' use ('.join(', ', $this->uses).')';
193193
}
194194

195195
if ('' !== $this->returnType) {

0 commit comments

Comments
 (0)