Fixed pint errors.

This commit is contained in:
Michiel Vermeersch
2024-09-12 16:55:47 +02:00
parent ab7f9db928
commit c808059eff
22 changed files with 23 additions and 48 deletions

2
.gitattributes vendored
View File

@@ -1,3 +1,5 @@
* text=auto eol=lf
/.github export-ignore
/art export-ignore
/tests export-ignore

View File

@@ -9,7 +9,5 @@ use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
final class Cast
{
public function __construct(public string $type)
{
}
public function __construct(public string $type) {}
}

View File

@@ -12,6 +12,5 @@ final class Column
public function __construct(
public ?string $name = null,
public mixed $default = null,
) {
}
) {}
}

View File

@@ -25,6 +25,5 @@ final class Config
* @var array<string, string>
*/
public array $messages = [],
) {
}
) {}
}

View File

@@ -18,6 +18,5 @@ final class CreateRules
* @var array<string, string>
*/
public array $messages = [],
) {
}
) {}
}

View File

@@ -13,6 +13,5 @@ final class DB
public ?string $connection = null,
public ?string $table = null,
public bool $timestamps = true,
) {
}
) {}
}

View File

@@ -12,6 +12,5 @@ final class Dispatches
public function __construct(
public string $eventClass,
public string $event = ''
) {
}
) {}
}

View File

@@ -12,6 +12,5 @@ final class Listener
public function __construct(
public string $event = '',
public bool $queue = false
) {
}
) {}
}

View File

@@ -11,6 +11,5 @@ final class Observer
{
public function __construct(
public string $observer
) {
}
) {}
}

View File

@@ -7,6 +7,4 @@ namespace WendellAdriel\Lift\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
final class Fillable
{
}
final class Fillable {}

View File

@@ -7,6 +7,4 @@ namespace WendellAdriel\Lift\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
final class Hidden
{
}
final class Hidden {}

View File

@@ -7,6 +7,4 @@ namespace WendellAdriel\Lift\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
final class Immutable
{
}
final class Immutable {}

View File

@@ -12,6 +12,5 @@ final class PrimaryKey
public function __construct(
public string $type = 'int',
public bool $incrementing = true,
) {
}
) {}
}

View File

@@ -18,6 +18,5 @@ final class Rules
* @var array<string, string>
*/
public array $messages = [],
) {
}
) {}
}

View File

@@ -18,6 +18,5 @@ final class UpdateRules
* @var array<string, string>
*/
public array $messages = [],
) {
}
) {}
}

View File

@@ -11,6 +11,5 @@ final class Watch
{
public function __construct(
public string $event,
) {
}
) {}
}

View File

@@ -17,6 +17,5 @@ final class MethodInfo
* @var Collection<ReflectionAttribute>
*/
public readonly Collection $attributes
) {
}
) {}
}

View File

@@ -16,6 +16,5 @@ final class PropertyInfo
* @var Collection<ReflectionAttribute>
*/
public readonly Collection $attributes,
) {
}
) {}
}

View File

@@ -7,6 +7,4 @@ namespace Tests\Datasets;
use WendellAdriel\Lift\Attributes\Relations\BelongsTo;
#[BelongsTo(Library::class)]
class LibraryBook extends Book
{
}
class LibraryBook extends Book {}

View File

@@ -14,6 +14,5 @@ final class PriceChangedEvent
public function __construct(
public ProductWatch $product,
) {
}
) {}
}

View File

@@ -14,6 +14,5 @@ final class RandomNumberChangedEvent
public function __construct(
public ProductWatch $product,
) {
}
) {}
}

View File

@@ -7,6 +7,4 @@ namespace Tests\Datasets;
use WendellAdriel\Lift\Attributes\Relations\BelongsTo;
#[BelongsTo(User::class)]
class WorkBook extends Book
{
}
class WorkBook extends Book {}