Skip to content

Commit

Permalink
run cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
clemzarch committed Sep 12, 2023
1 parent 679527b commit 243874b
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 34 deletions.
4 changes: 1 addition & 3 deletions src/Dockerfile/Copy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

final readonly class Copy implements LayerInterface, \Stringable
{
public function __construct(private string $source, private string $destination)
{
}
public function __construct(private string $source, private string $destination) {}

/** @return \Iterator|self[] */
public static function directory(string $sourcePath, string $destinationPath): \Iterator
Expand Down
4 changes: 1 addition & 3 deletions src/Dockerfile/From.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

final readonly class From implements LayerInterface, \Stringable
{
public function __construct(private string $source)
{
}
public function __construct(private string $source) {}

public function __toString(): string
{
Expand Down
4 changes: 1 addition & 3 deletions src/Dockerfile/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

final readonly class Label implements LayerInterface, \Stringable
{
public function __construct(private string $key, private string $value)
{
}
public function __construct(private string $key, private string $value) {}

public function __toString(): string
{
Expand Down
4 changes: 1 addition & 3 deletions src/Dockerfile/Maintainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

final readonly class Maintainer implements LayerInterface, \Stringable
{
public function __construct(private string $name, private string $email)
{
}
public function __construct(private string $name, private string $email) {}

public function __toString(): string
{
Expand Down
4 changes: 1 addition & 3 deletions src/Dockerfile/Run.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

final readonly class Run implements LayerInterface, \Stringable
{
public function __construct(private string $command)
{
}
public function __construct(private string $command) {}

public function __toString(): string
{
Expand Down
4 changes: 1 addition & 3 deletions src/Dockerfile/Workdir.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

final readonly class Workdir implements LayerInterface, \Stringable
{
public function __construct(private string $path)
{
}
public function __construct(private string $path) {}

public function __toString(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/PHP/ComposerAddComposerRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
public function __construct(
private string $name,
private string $url
) {
}
) {}

public function __toString(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/PHP/ComposerAddGithubRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
public function __construct(
private string $name,
private string $url
) {
}
) {}

public function __toString(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/PHP/ComposerAddVcsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
public function __construct(
private string $name,
private string $url
) {
}
) {}

public function __toString(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/PHP/ComposerAuthenticationToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
public function __construct(
private string $url,
private string $token,
) {
}
) {}

public function __toString(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/PHP/ComposerAutoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public function __construct(
* @param array<string, array<string, string|list<string>>> $autoloads
*/
private array $autoloads
) {
}
) {}

private static function command(string ...$command): string
{
Expand Down
4 changes: 1 addition & 3 deletions src/PHP/ComposerInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

final readonly class ComposerInit implements Dockerfile\LayerInterface, \Stringable
{
public function __construct(private string $name)
{
}
public function __construct(private string $name) {}

public function __toString(): string
{
Expand Down
4 changes: 1 addition & 3 deletions src/PHP/ComposerMinimumStability.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

final readonly class ComposerMinimumStability implements Dockerfile\LayerInterface, \Stringable
{
public function __construct(private string $minimumStability)
{
}
public function __construct(private string $minimumStability) {}

public function __toString(): string
{
Expand Down

0 comments on commit 243874b

Please sign in to comment.