add types

This commit is contained in:
nurmuhammet committed 2024-05-06 17:13:38 +05:00
1 parent 88b934bda1
commit e5907fe3a9
46 files changed
+465 -184

No files matched your search

+3 -3
View File
@@ -13,7 +13,7 @@ class CardOrderRepo
*/
public static function creating(): Closure
{
return function ($model) {
return function (mixed $model) {
$model->status = $model->status ?: OrderRepo::defaultStatus();
};
}
@@ -31,8 +31,8 @@ public static function created(): Closure
/**
* Fill unique id
*/
public static function fillUniqueId($model): string
public static function fillUniqueId(mixed $model): string
{
return sprintf('TB%s-%s', Branch::find($model->branch_id)->unique_code, $model->id) ?? uniqid();
return sprintf('TB%s-%s', Branch::find($model->branch_id)->unique_code ?? uniqid(), $model->id);
}
}