@@ -354,7 +354,7 @@ protected function loadModels()
354
354
/**
355
355
* cast the properties's type from $casts.
356
356
*
357
- * @param \Illuminate\Database\Eloquent\ Model $model
357
+ * @param Model $model
358
358
*/
359
359
public function castPropertiesType ($ model )
360
360
{
@@ -498,7 +498,7 @@ protected function getTypeOverride($type)
498
498
/**
499
499
* Load the properties from the database table.
500
500
*
501
- * @param \Illuminate\Database\Eloquent\ Model $model
501
+ * @param Model $model
502
502
*
503
503
* @throws DBALException If custom field failed to register
504
504
*/
@@ -602,7 +602,7 @@ public function getPropertiesFromTable($model)
602
602
}
603
603
604
604
/**
605
- * @param \Illuminate\Database\Eloquent\ Model $model
605
+ * @param Model $model
606
606
*/
607
607
public function getPropertiesFromMethods ($ model )
608
608
{
@@ -777,7 +777,7 @@ public function getPropertiesFromMethods($model)
777
777
'int|null ' ,
778
778
true ,
779
779
false
780
- // What kind of comments should be added to the relation count here?
780
+ // What kind of comments should be added to the relation count here?
781
781
);
782
782
}
783
783
} elseif (
@@ -1126,7 +1126,7 @@ protected function getCollectionClass($className)
1126
1126
return '\Illuminate\Database\Eloquent\Collection ' ;
1127
1127
}
1128
1128
1129
- /** @var \Illuminate\Database\Eloquent\ Model $model */
1129
+ /** @var Model $model */
1130
1130
$ model = new $ className ();
1131
1131
return '\\' . get_class ($ model ->newCollection ());
1132
1132
}
@@ -1285,7 +1285,7 @@ protected function getReturnTypeFromReflection(\ReflectionMethod $reflection): ?
1285
1285
1286
1286
/**
1287
1287
* Generates methods provided by the SoftDeletes trait
1288
- * @param \Illuminate\Database\Eloquent\ Model $model
1288
+ * @param Model $model
1289
1289
*/
1290
1290
protected function getSoftDeleteMethods ($ model )
1291
1291
{
@@ -1302,7 +1302,7 @@ protected function getSoftDeleteMethods($model)
1302
1302
/**
1303
1303
* Generate factory method from "HasFactory" trait.
1304
1304
*
1305
- * @param \Illuminate\Database\Eloquent\ Model $model
1305
+ * @param Model $model
1306
1306
*/
1307
1307
protected function getFactoryMethods ($ model )
1308
1308
{
@@ -1335,7 +1335,7 @@ protected function getFactoryMethods($model)
1335
1335
1336
1336
/**
1337
1337
* Generates methods that return collections
1338
- * @param \Illuminate\Database\Eloquent\ Model $model
1338
+ * @param Model $model
1339
1339
*/
1340
1340
protected function getCollectionMethods ($ model )
1341
1341
{
@@ -1378,7 +1378,7 @@ protected function checkForCastableCasts(string $type, array $params = []): stri
1378
1378
return $ type ;
1379
1379
}
1380
1380
1381
- $ reflection = new \ ReflectionClass ($ type );
1381
+ $ reflection = new ReflectionClass ($ type );
1382
1382
1383
1383
if (!$ reflection ->implementsInterface (Castable::class)) {
1384
1384
return $ type ;
@@ -1410,7 +1410,7 @@ protected function checkForCustomLaravelCasts(string $type): ?string
1410
1410
return $ type ;
1411
1411
}
1412
1412
1413
- $ reflection = new \ ReflectionClass ($ type );
1413
+ $ reflection = new ReflectionClass ($ type );
1414
1414
1415
1415
if (!$ reflection ->implementsInterface (CastsAttributes::class)) {
1416
1416
return $ type ;
@@ -1616,7 +1616,7 @@ protected function getReflectionNamedType(ReflectionNamedType $paramType): strin
1616
1616
}
1617
1617
1618
1618
/**
1619
- * @param \Illuminate\Database\Eloquent\ Model $model
1619
+ * @param Model $model
1620
1620
* @throws \Illuminate\Contracts\Container\BindingResolutionException
1621
1621
* @throws \RuntimeException
1622
1622
*/
0 commit comments