Skip to content

Commit dcd86fa

Browse files
committed
formatting
1 parent 1fea27b commit dcd86fa

File tree

5 files changed

+20
-19
lines changed

5 files changed

+20
-19
lines changed

src/AncestorsRelation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function matches(Model $model, $related): bool
4343

4444
/**
4545
* @param QueryBuilder<Tmodel> $query
46-
* @param NodeModel $model
46+
* @param NodeModel $model
4747
*
4848
* @return void
4949
*/

src/BaseRelation.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class BaseRelation extends Relation
4343
* AncestorsRelation constructor.
4444
*
4545
* @param QueryBuilder<Tmodel> $builder
46-
* @param NodeModel $model
46+
* @param NodeModel $model
4747
*/
4848
public function __construct(QueryBuilder $builder, Model $model)
4949
{
@@ -64,7 +64,7 @@ abstract protected function matches(Model&Node $model, Node $related): bool;
6464

6565
/**
6666
* @param QueryBuilder<Tmodel> $query
67-
* @param NodeModel $model
67+
* @param NodeModel $model
6868
*
6969
* @return void
7070
*/
@@ -113,7 +113,7 @@ public function getRelationExistenceQuery(EloquentBuilder $query, EloquentBuilde
113113
* Initialize the relation on a set of models.
114114
*
115115
* @param array<int,NodeModel> $models
116-
* @param string $relation
116+
* @param string $relation
117117
*
118118
* @return array<int,NodeModel>
119119
*/
@@ -143,6 +143,7 @@ public function getResults()
143143
{
144144
/** @var Collection<NodeModel> */
145145
$result = $this->query->get();
146+
146147
return $result;
147148
}
148149

src/Collection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function toFlatTree($root = false): Collection
146146
* Flatten a tree into a non recursive array.
147147
*
148148
* @param Collection<Tmodel> $groupedNodes
149-
* @param array-key $parentId
149+
* @param array-key $parentId
150150
*
151151
* @return Collection<Tmodel>
152152
*/

src/DescendantsRelation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function addConstraints()
3232

3333
/**
3434
* @param QueryBuilder<Tmodel> $query
35-
* @param NodeModel $model
35+
* @param NodeModel $model
3636
*/
3737
protected function addEagerConstraint($query, $model)
3838
{

src/QueryBuilder.php

+13-13
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class QueryBuilder extends Builder
3131
* @since 2.0
3232
*
3333
* @param NodeModel $id
34-
* @param bool $required
34+
* @param bool $required
3535
*
3636
* @return array<int,int>
3737
*/
@@ -57,7 +57,7 @@ public function getNodeData(mixed $id, $required = false)
5757
* @since 2.0
5858
*
5959
* @param NodeModel $id
60-
* @param bool $required
60+
* @param bool $required
6161
*
6262
* @return array<int,int>
6363
*/
@@ -84,8 +84,8 @@ public function whereIsRoot(): QueryBuilder
8484
* @since 2.0
8585
*
8686
* @param NodeModel $id
87-
* @param bool $andSelf
88-
* @param string $boolean
87+
* @param bool $andSelf
88+
* @param string $boolean
8989
*
9090
* @return QueryBuilder<Tmodel>
9191
*/
@@ -129,7 +129,7 @@ public function whereAncestorOf(mixed $id, bool $andSelf = false, string $boolea
129129

130130
/**
131131
* @param NodeModel $id
132-
* @param bool $andSelf
132+
* @param bool $andSelf
133133
*
134134
* @return QueryBuilder<Tmodel>
135135
*/
@@ -212,9 +212,9 @@ public function orWhereNodeBetween(array $values)
212212
* @since 2.0
213213
*
214214
* @param ?NodeModel $id
215-
* @param string $boolean
216-
* @param bool $not
217-
* @param bool $andSelf
215+
* @param string $boolean
216+
* @param bool $not
217+
* @param bool $andSelf
218218
*
219219
* @return QueryBuilder<Tmodel>
220220
*/
@@ -927,7 +927,7 @@ protected function fixNodes(array &$dictionary, $parent = null)
927927
/**
928928
* @param array<array-key,NodeModel[]> $dictionary
929929
* @param NodeModel[] $updated
930-
* @param ?NodeModel $parentId
930+
* @param ?NodeModel $parentId
931931
* @param int $cut
932932
*
933933
* @return int
@@ -964,8 +964,8 @@ protected static function reorderNodes(
964964
* If item data does not contain primary key, new node will be created.
965965
*
966966
* @param array<array-key,NodeModel[]>[] $data
967-
* @param bool $delete Whether to delete nodes that exists but not in the data array
968-
* @param ?NodeModel $root
967+
* @param bool $delete Whether to delete nodes that exists but not in the data array
968+
* @param ?NodeModel $root
969969
*
970970
* @return int
971971
*/
@@ -1012,7 +1012,7 @@ public function rebuildTree(array $data, $delete = false, $root = null)
10121012
}
10131013

10141014
/**
1015-
* @param null $root
1015+
* @param null $root
10161016
* @param array<string,mixed>[] $data
10171017
* @param bool $delete
10181018
*
@@ -1027,7 +1027,7 @@ public function rebuildSubtree($root, array $data, $delete = false)
10271027
* @param array<array-key,NodeModel[]> $dictionary
10281028
* @param array<string,mixed>[] $data
10291029
* @param array<array-key,NodeModel> $existing
1030-
* @param ?NodeModel $parentId
1030+
* @param ?NodeModel $parentId
10311031
*/
10321032
protected function buildRebuildDictionary(array &$dictionary,
10331033
array $data,

0 commit comments

Comments
 (0)