phpstan 5 errors fixed
This commit is contained in:
1 parent
2e0cc45e99
commit
0d875acc4e
28 files changed
+463
-248
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Modules\VisaMasterPaymentOrder\Nova\Resources\Concerns;
|
||||
|
||||
use App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrder;
|
||||
use Illuminate\Auth\Access\AuthorizationException;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
@@ -16,7 +17,10 @@ public function authorizeToView(Request $request)
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->resource->user_id == auth()->id()) {
|
||||
/** @var VisaMasterPaymentOrder $resource */
|
||||
$resource = $this->resource;
|
||||
|
||||
if ($resource->user_id == auth()->id()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -44,7 +48,10 @@ public function authorizeToUpdate(Request $request): void
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->resource->user_id == auth()->id()) {
|
||||
/** @var VisaMasterPaymentOrder $resource */
|
||||
$resource = $this->resource;
|
||||
|
||||
if ($resource->user_id == auth()->id()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user