From 2b39ec9282936fdce9f254cbd029496c9aa5aab9 Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Tue, 27 Aug 2024 21:17:38 +0200 Subject: [PATCH] Formatting --- src/Eloquent/Relations/Ancestors.php | 1 + .../Relations/BelongsToManyOfDescendants.php | 1 + src/Eloquent/Relations/Bloodline.php | 1 + src/Eloquent/Relations/Descendants.php | 1 + src/Eloquent/Relations/Graph/Ancestors.php | 1 + src/Eloquent/Relations/Graph/Descendants.php | 1 + src/Eloquent/Relations/HasManyOfDescendants.php | 1 + src/Eloquent/Relations/MorphToManyOfDescendants.php | 1 + src/Eloquent/Relations/RootAncestor.php | 1 + src/Eloquent/Relations/RootAncestorOrSelf.php | 1 + src/Eloquent/Relations/Siblings.php | 1 + src/Eloquent/Traits/HasAdjacencyList.php | 12 ++++++------ src/Eloquent/Traits/HasGraphAdjacencyList.php | 4 ++-- 13 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/Eloquent/Relations/Ancestors.php b/src/Eloquent/Relations/Ancestors.php index 011a36e..f9765dd 100644 --- a/src/Eloquent/Relations/Ancestors.php +++ b/src/Eloquent/Relations/Ancestors.php @@ -9,6 +9,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends HasMany */ class Ancestors extends HasMany implements ConcatenableRelation diff --git a/src/Eloquent/Relations/BelongsToManyOfDescendants.php b/src/Eloquent/Relations/BelongsToManyOfDescendants.php index 086dfec..a16b10c 100644 --- a/src/Eloquent/Relations/BelongsToManyOfDescendants.php +++ b/src/Eloquent/Relations/BelongsToManyOfDescendants.php @@ -9,6 +9,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends BelongsToMany */ class BelongsToManyOfDescendants extends BelongsToMany diff --git a/src/Eloquent/Relations/Bloodline.php b/src/Eloquent/Relations/Bloodline.php index 93a8e3b..5156c0e 100644 --- a/src/Eloquent/Relations/Bloodline.php +++ b/src/Eloquent/Relations/Bloodline.php @@ -7,6 +7,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends Descendants */ class Bloodline extends Descendants diff --git a/src/Eloquent/Relations/Descendants.php b/src/Eloquent/Relations/Descendants.php index 1775824..4e366e6 100644 --- a/src/Eloquent/Relations/Descendants.php +++ b/src/Eloquent/Relations/Descendants.php @@ -13,6 +13,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends HasMany */ class Descendants extends HasMany implements ConcatenableRelation diff --git a/src/Eloquent/Relations/Graph/Ancestors.php b/src/Eloquent/Relations/Graph/Ancestors.php index 468097b..7b08375 100644 --- a/src/Eloquent/Relations/Graph/Ancestors.php +++ b/src/Eloquent/Relations/Graph/Ancestors.php @@ -12,6 +12,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends BelongsToMany */ class Ancestors extends BelongsToMany implements ConcatenableRelation diff --git a/src/Eloquent/Relations/Graph/Descendants.php b/src/Eloquent/Relations/Graph/Descendants.php index 6f617eb..36661d9 100644 --- a/src/Eloquent/Relations/Graph/Descendants.php +++ b/src/Eloquent/Relations/Graph/Descendants.php @@ -12,6 +12,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends BelongsToMany */ class Descendants extends BelongsToMany implements ConcatenableRelation diff --git a/src/Eloquent/Relations/HasManyOfDescendants.php b/src/Eloquent/Relations/HasManyOfDescendants.php index 30bfbeb..7f1da45 100644 --- a/src/Eloquent/Relations/HasManyOfDescendants.php +++ b/src/Eloquent/Relations/HasManyOfDescendants.php @@ -9,6 +9,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends HasMany */ class HasManyOfDescendants extends HasMany diff --git a/src/Eloquent/Relations/MorphToManyOfDescendants.php b/src/Eloquent/Relations/MorphToManyOfDescendants.php index c56f5b1..ec92f1a 100644 --- a/src/Eloquent/Relations/MorphToManyOfDescendants.php +++ b/src/Eloquent/Relations/MorphToManyOfDescendants.php @@ -7,6 +7,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends BelongsToManyOfDescendants */ class MorphToManyOfDescendants extends BelongsToManyOfDescendants diff --git a/src/Eloquent/Relations/RootAncestor.php b/src/Eloquent/Relations/RootAncestor.php index 942031c..2750e15 100644 --- a/src/Eloquent/Relations/RootAncestor.php +++ b/src/Eloquent/Relations/RootAncestor.php @@ -9,6 +9,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends HasOne */ class RootAncestor extends HasOne diff --git a/src/Eloquent/Relations/RootAncestorOrSelf.php b/src/Eloquent/Relations/RootAncestorOrSelf.php index 356f6e1..2e1a1b5 100644 --- a/src/Eloquent/Relations/RootAncestorOrSelf.php +++ b/src/Eloquent/Relations/RootAncestorOrSelf.php @@ -7,6 +7,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends RootAncestor */ class RootAncestorOrSelf extends RootAncestor diff --git a/src/Eloquent/Relations/Siblings.php b/src/Eloquent/Relations/Siblings.php index fc2fe8d..c1b2916 100644 --- a/src/Eloquent/Relations/Siblings.php +++ b/src/Eloquent/Relations/Siblings.php @@ -9,6 +9,7 @@ /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model + * * @extends HasMany */ class Siblings extends HasMany diff --git a/src/Eloquent/Traits/HasAdjacencyList.php b/src/Eloquent/Traits/HasAdjacencyList.php index 51eb488..d4254ae 100644 --- a/src/Eloquent/Traits/HasAdjacencyList.php +++ b/src/Eloquent/Traits/HasAdjacencyList.php @@ -13,17 +13,17 @@ use Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Siblings; /** - * @property-read static|null $rootAncestor - * @property-read static $rootAncestorOrSelf - * @property-read static|null $parent - * @property-read Collection $parentAndSelf * @property-read Collection $ancestors * @property-read Collection $ancestorsAndSelf - * @property-read Collection $descendants - * @property-read Collection $descendantsAndSelf * @property-read Collection $bloodline * @property-read Collection $children * @property-read Collection $childrenAndSelf + * @property-read Collection $descendants + * @property-read Collection $descendantsAndSelf + * @property-read static|null $parent + * @property-read Collection $parentAndSelf + * @property-read static|null $rootAncestor + * @property-read static $rootAncestorOrSelf * @property-read Collection $siblings * @property-read Collection $siblingsAndSelf */ diff --git a/src/Eloquent/Traits/HasGraphAdjacencyList.php b/src/Eloquent/Traits/HasGraphAdjacencyList.php index 53466ab..ae88694 100644 --- a/src/Eloquent/Traits/HasGraphAdjacencyList.php +++ b/src/Eloquent/Traits/HasGraphAdjacencyList.php @@ -12,10 +12,10 @@ /** * @property-read Collection $ancestors * @property-read Collection $ancestorsAndSelf - * @property-read Collection $descendants - * @property-read Collection $descendantsAndSelf * @property-read Collection $children * @property-read Collection $childrenAndSelf + * @property-read Collection $descendants + * @property-read Collection $descendantsAndSelf * @property-read Collection $parents * @property-read Collection $parentsAndSelf */