@@ -16,7 +16,7 @@ class Morph
16
16
/**
17
17
* Delete polymorphic relationships of the single records from Model.
18
18
*
19
- * @param \Illuminate\Database\Eloquent\Model $model
19
+ * @param \Illuminate\Database\Eloquent\Model $model
20
20
* @return void
21
21
*/
22
22
public function delete ($ model )
@@ -33,7 +33,7 @@ public function delete($model)
33
33
/**
34
34
* Clean residual polymorphic relationships from all Models.
35
35
*
36
- * @param bool $dryRun
36
+ * @param bool $dryRun
37
37
* @return int Num rows was deleted
38
38
*/
39
39
public function cleanResidualAllModels (bool $ dryRun = false )
@@ -50,8 +50,8 @@ public function cleanResidualAllModels(bool $dryRun = false)
50
50
/**
51
51
* Clean residual polymorphic relationships from a Model.
52
52
*
53
- * @param Model $model
54
- * @param bool $dryRun
53
+ * @param Model $model
54
+ * @param bool $dryRun
55
55
* @return int Num rows was deleted
56
56
*/
57
57
public function cleanResidualByModel ($ model , bool $ dryRun = false )
@@ -95,9 +95,9 @@ function ($modelName) {
95
95
/**
96
96
* Query to clean orphan morph table.
97
97
*
98
- * @param Model $parentModel
99
- * @param MorphOneOrMany|MorphToMany $relation
100
- * @param bool $dryRun
98
+ * @param Model $parentModel
99
+ * @param MorphOneOrMany|MorphToMany $relation
100
+ * @param bool $dryRun
101
101
* @return int Num rows was deleted
102
102
*/
103
103
protected function queryCleanOrphan (Model $ parentModel , Relation $ relation , bool $ dryRun = false )
@@ -124,7 +124,7 @@ protected function queryCleanOrphan(Model $parentModel, Relation $relation, bool
124
124
/**
125
125
* Get table and fields from morph relation.
126
126
*
127
- * @param MorphOneOrMany|MorphToMany $relation
127
+ * @param MorphOneOrMany|MorphToMany $relation
128
128
* @return array [$table, $fieldType, $fieldId]
129
129
*/
130
130
protected function getStructureMorphRelation (Relation $ relation ): array
@@ -163,7 +163,7 @@ class_uses($class)
163
163
/**
164
164
* Fetch polymorphic relationships from a Model.
165
165
*
166
- * @param \Illuminate\Database\Eloquent\Model $model
166
+ * @param \Illuminate\Database\Eloquent\Model $model
167
167
* @return array
168
168
*/
169
169
protected function getValidMorphRelationsFromModel ($ model )
@@ -184,8 +184,8 @@ function ($relation) {
184
184
/**
185
185
* Verify if method of a Model return a polymorphic relationship.
186
186
*
187
- * @param \Illuminate\Database\Eloquent\Model $model
188
- * @param string $methodName
187
+ * @param \Illuminate\Database\Eloquent\Model $model
188
+ * @param string $methodName
189
189
* @return bool
190
190
*/
191
191
protected function methodReturnedMorphRelation ($ model , $ methodName )
@@ -202,7 +202,7 @@ protected function methodReturnedMorphRelation($model, $methodName)
202
202
/**
203
203
* Verify if a object is a instance of a polymorphic relationship.
204
204
*
205
- * @param mixed $relation
205
+ * @param mixed $relation
206
206
* @return bool
207
207
*/
208
208
protected function isMorphRelation ($ relation )
@@ -213,7 +213,7 @@ protected function isMorphRelation($relation)
213
213
/**
214
214
* Load models with Cascade Delete.
215
215
*
216
- * @param array|string $path
216
+ * @param array|string $path
217
217
* @return void
218
218
*/
219
219
protected function load ()
0 commit comments