From 277d790f2cb8024253c4308e16af342160f6971c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 16 Oct 2023 00:26:19 +0000 Subject: [PATCH] Fix CS --- src/Fields/BelongsTo.php | 1 + src/Fields/BelongsToMany.php | 1 + src/Fields/HasOneOrMany.php | 1 + src/Fields/MorphOne.php | 1 + src/Fields/MorphOneOrMany.php | 1 + src/Support/Slug.php | 2 +- 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Fields/BelongsTo.php b/src/Fields/BelongsTo.php index b8b73852..c247595e 100644 --- a/src/Fields/BelongsTo.php +++ b/src/Fields/BelongsTo.php @@ -8,6 +8,7 @@ /** * @template TRelation of \Illuminate\Database\Eloquent\Relations\BelongsTo + * * @extends \Cone\Root\Fields\Relation */ class BelongsTo extends Relation diff --git a/src/Fields/BelongsToMany.php b/src/Fields/BelongsToMany.php index 0da2da62..a3fbf2e2 100644 --- a/src/Fields/BelongsToMany.php +++ b/src/Fields/BelongsToMany.php @@ -11,6 +11,7 @@ /** * @template TRelation of \Illuminate\Database\Eloquent\Relations\BelongsToMany + * * @extends \Cone\Root\Fields\Relation */ class BelongsToMany extends Relation diff --git a/src/Fields/HasOneOrMany.php b/src/Fields/HasOneOrMany.php index 478082d7..f58d318b 100644 --- a/src/Fields/HasOneOrMany.php +++ b/src/Fields/HasOneOrMany.php @@ -9,6 +9,7 @@ /** * @template TRelation of \Illuminate\Database\Eloquent\Relations\HasOneOrMany + * * @extends \Cone\Root\Fields\Relation */ abstract class HasOneOrMany extends Relation diff --git a/src/Fields/MorphOne.php b/src/Fields/MorphOne.php index dfb4babd..e2776f77 100644 --- a/src/Fields/MorphOne.php +++ b/src/Fields/MorphOne.php @@ -7,6 +7,7 @@ /** * @template TRelation of \Illuminate\Database\Eloquent\Relations\MorphOne + * * @extends \Cone\Root\Fields\MorphOneOrMany */ class MorphOne extends MorphOneOrMany diff --git a/src/Fields/MorphOneOrMany.php b/src/Fields/MorphOneOrMany.php index 77a1290e..9ad8d3c4 100644 --- a/src/Fields/MorphOneOrMany.php +++ b/src/Fields/MorphOneOrMany.php @@ -7,6 +7,7 @@ /** * @template TRelation of \Illuminate\Database\Eloquent\Relations\MorphOneOrMany + * * @extends \Cone\Root\Fields\HasOneOrMany */ abstract class MorphOneOrMany extends HasOneOrMany diff --git a/src/Support/Slug.php b/src/Support/Slug.php index cc3be40a..7e9822ba 100644 --- a/src/Support/Slug.php +++ b/src/Support/Slug.php @@ -152,7 +152,7 @@ static function (Builder $query): Builder { $value = is_null($match) ? $value : preg_replace_callback( sprintf('/%s([\d]+)?$/', preg_quote($this->separator)), static function (array $match): string { - return str_replace($match[1], (string)(((int) $match[1]) + 1), $match[0]); + return str_replace($match[1], (string) (((int) $match[1]) + 1), $match[0]); }, $match );