Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
murtukov committed May 4, 2021
1 parent 0461422 commit 89b6063
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/Argument.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class Argument extends DependencyAwareGenerator implements FunctionMemberInterfa

private string $type;
private string $name;
private bool $isSpread = false;
private bool $isSpread = false;
private bool $isByReference = false;
private bool $isNullable = false;
private string $modifier = Modifier::NONE;
private bool $isNullable = false;
private string $modifier = Modifier::NONE;

/**
* @var mixed
Expand Down Expand Up @@ -58,7 +58,7 @@ public function generate(): string
$code = '';

if (Modifier::NONE !== $this->modifier) {
$code .= $this->modifier . ' ';
$code .= $this->modifier.' ';
}

if ($this->type) {
Expand Down
2 changes: 1 addition & 1 deletion src/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function new(string $name, string $modifier = Modifier::PUBLIC, st
public function generate(): string
{
if ($this->signature->isMultiline) {
return $this->buildDocBlock() . $this->signature->generate(false) . " {{$this->generateWrappedContent()}}";
return $this->buildDocBlock().$this->signature->generate(false)." {{$this->generateWrappedContent()}}";
}

return <<<CODE
Expand Down
5 changes: 1 addition & 4 deletions src/ScopedContentTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ public function clearContent(): self
return $this;
}

/**
* @return array|null
*/
public function getLastLine(): ?array
{
$length = count($this->content);
Expand Down Expand Up @@ -121,6 +118,6 @@ protected function generateWrappedContent(string $left = "\n", string $right = "
return '';
}

return $left . $content . $right;
return $left.$content.$right;
}
}
4 changes: 2 additions & 2 deletions src/Signature.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function bindVars(string ...$names): self
public function generate(bool $withDocBlock = true): string
{
if ($this->isMultiline) {
$args = "\n" . Utils::indent(join(",\n", $this->args)) . "\n";
$args = "\n".Utils::indent(join(",\n", $this->args))."\n";
} else {
$args = join(', ', $this->args);
}
Expand All @@ -189,7 +189,7 @@ public function generate(bool $withDocBlock = true): string
$returnType = '';

if (!empty($this->uses)) {
$uses = ' use ('. join(', ', $this->uses).')';
$uses = ' use ('.join(', ', $this->uses).')';
}

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

0 comments on commit 89b6063

Please sign in to comment.