Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rupadana authored and github-actions[bot] committed Jan 29, 2024
1 parent 39ad6c3 commit 787cc9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 44 deletions.
2 changes: 1 addition & 1 deletion src/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class AuthServiceProvider extends ServiceProvider
{
protected $policies = [
Token::class => TokenPolicy::class
Token::class => TokenPolicy::class,
];

/**
Expand Down
44 changes: 1 addition & 43 deletions src/Policies/TokenPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@
namespace Rupadana\ApiService\Policies;

use App\Models\User;
use Rupadana\ApiService\Models\Token;
use Illuminate\Auth\Access\HandlesAuthorization;
use Rupadana\ApiService\Models\Token;

class TokenPolicy
{
use HandlesAuthorization;

/**
* Determine whether the user can view any models.
*
* @param \App\Models\User $user
* @return bool
*/
public function viewAny(User $user): bool
{
Expand All @@ -23,10 +20,6 @@ public function viewAny(User $user): bool

/**
* Determine whether the user can view the model.
*
* @param \App\Models\User $user
* @param \Rupadana\ApiService\Models\Token $token
* @return bool
*/
public function view(User $user, Token $token): bool
{
Expand All @@ -35,9 +28,6 @@ public function view(User $user, Token $token): bool

/**
* Determine whether the user can create models.
*
* @param \App\Models\User $user
* @return bool
*/
public function create(User $user): bool
{
Expand All @@ -46,10 +36,6 @@ public function create(User $user): bool

/**
* Determine whether the user can update the model.
*
* @param \App\Models\User $user
* @param \Rupadana\ApiService\Models\Token $token
* @return bool
*/
public function update(User $user, Token $token): bool
{
Expand All @@ -58,10 +44,6 @@ public function update(User $user, Token $token): bool

/**
* Determine whether the user can delete the model.
*
* @param \App\Models\User $user
* @param \Rupadana\ApiService\Models\Token $token
* @return bool
*/
public function delete(User $user, Token $token): bool
{
Expand All @@ -70,9 +52,6 @@ public function delete(User $user, Token $token): bool

/**
* Determine whether the user can bulk delete.
*
* @param \App\Models\User $user
* @return bool
*/
public function deleteAny(User $user): bool
{
Expand All @@ -81,10 +60,6 @@ public function deleteAny(User $user): bool

/**
* Determine whether the user can permanently delete.
*
* @param \App\Models\User $user
* @param \Rupadana\ApiService\Models\Token $token
* @return bool
*/
public function forceDelete(User $user, Token $token): bool
{
Expand All @@ -93,9 +68,6 @@ public function forceDelete(User $user, Token $token): bool

/**
* Determine whether the user can permanently bulk delete.
*
* @param \App\Models\User $user
* @return bool
*/
public function forceDeleteAny(User $user): bool
{
Expand All @@ -104,10 +76,6 @@ public function forceDeleteAny(User $user): bool

/**
* Determine whether the user can restore.
*
* @param \App\Models\User $user
* @param \Rupadana\ApiService\Models\Token $token
* @return bool
*/
public function restore(User $user, Token $token): bool
{
Expand All @@ -116,9 +84,6 @@ public function restore(User $user, Token $token): bool

/**
* Determine whether the user can bulk restore.
*
* @param \App\Models\User $user
* @return bool
*/
public function restoreAny(User $user): bool
{
Expand All @@ -127,10 +92,6 @@ public function restoreAny(User $user): bool

/**
* Determine whether the user can replicate.
*
* @param \App\Models\User $user
* @param \Rupadana\ApiService\Models\Token $token
* @return bool
*/
public function replicate(User $user, Token $token): bool
{
Expand All @@ -139,9 +100,6 @@ public function replicate(User $user, Token $token): bool

/**
* Determine whether the user can reorder.
*
* @param \App\Models\User $user
* @return bool
*/
public function reorder(User $user): bool
{
Expand Down

0 comments on commit 787cc9f

Please sign in to comment.