mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-17 18:24:10 +00:00
Setup pint & run code style fix
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace InvoiceShelf\Policies;
|
||||
|
||||
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
use InvoiceShelf\Models\RecurringInvoice;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
use Silber\Bouncer\BouncerFacade;
|
||||
|
||||
class RecurringInvoicePolicy
|
||||
@@ -14,7 +14,6 @@ class RecurringInvoicePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user)
|
||||
@@ -29,8 +28,6 @@ class RecurringInvoicePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @param \InvoiceShelf\Models\RecurringInvoice $recurringInvoice
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, RecurringInvoice $recurringInvoice)
|
||||
@@ -45,7 +42,6 @@ class RecurringInvoicePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user)
|
||||
@@ -60,8 +56,6 @@ class RecurringInvoicePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @param \InvoiceShelf\Models\RecurringInvoice $recurringInvoice
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, RecurringInvoice $recurringInvoice)
|
||||
@@ -76,8 +70,6 @@ class RecurringInvoicePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @param \InvoiceShelf\Models\RecurringInvoice $recurringInvoice
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, RecurringInvoice $recurringInvoice)
|
||||
@@ -92,8 +84,6 @@ class RecurringInvoicePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @param \InvoiceShelf\Models\RecurringInvoice $recurringInvoice
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, RecurringInvoice $recurringInvoice)
|
||||
@@ -108,8 +98,6 @@ class RecurringInvoicePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @param \InvoiceShelf\Models\RecurringInvoice $recurringInvoice
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, RecurringInvoice $recurringInvoice)
|
||||
@@ -124,7 +112,6 @@ class RecurringInvoicePolicy
|
||||
/**
|
||||
* Determine whether the user can delete models.
|
||||
*
|
||||
* @param \InvoiceShelf\Models\User $user
|
||||
* @return mixed
|
||||
*/
|
||||
public function deleteMultiple(User $user)
|
||||
|
||||
Reference in New Issue
Block a user