Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte authored and github-actions[bot] committed Aug 30, 2023
1 parent b84f550 commit 0a35e99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/Contracts/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public function permissions(): BelongsToMany;
* Find a role by its name and guard name.
*
* @param string|null $guardName
* @return \Spatie\Permission\Contracts\Role
*
* @throws \Spatie\Permission\Exceptions\RoleDoesNotExist
*/
Expand All @@ -25,7 +24,6 @@ public static function findByName(string $name, $guardName): self;
* Find a role by its id and guard name.
*
* @param string|null $guardName
* @return \Spatie\Permission\Contracts\Role
*
* @throws \Spatie\Permission\Exceptions\RoleDoesNotExist
*/
Expand All @@ -35,7 +33,6 @@ public static function findById(int $id, $guardName): self;
* Find or create a role by its name and guard name.
*
* @param string|null $guardName
* @return \Spatie\Permission\Contracts\Role
*/
public static function findOrCreate(string $name, $guardName): self;

Expand Down
6 changes: 3 additions & 3 deletions tests/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
use Illuminate\Foundation\Auth\Access\Authorizable;
use Spatie\Permission\Traits\HasRoles;

class Admin extends Model implements AuthorizableContract, AuthenticatableContract
class Admin extends Model implements AuthenticatableContract, AuthorizableContract
{
use HasRoles;
use Authorizable;
use Authenticatable;
use Authorizable;
use HasRoles;

protected $fillable = ['email'];

Expand Down
6 changes: 3 additions & 3 deletions tests/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
use Illuminate\Foundation\Auth\Access\Authorizable;
use Spatie\Permission\Traits\HasRoles;

class Manager extends Model implements AuthorizableContract, AuthenticatableContract
class Manager extends Model implements AuthenticatableContract, AuthorizableContract
{
use HasRoles;
use Authorizable;
use Authenticatable;
use Authorizable;
use HasRoles;

protected $fillable = ['email'];

Expand Down
6 changes: 3 additions & 3 deletions tests/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
use Illuminate\Foundation\Auth\Access\Authorizable;
use Spatie\Permission\Traits\HasRoles;

class User extends Model implements AuthorizableContract, AuthenticatableContract
class User extends Model implements AuthenticatableContract, AuthorizableContract
{
use HasRoles;
use Authorizable;
use Authenticatable;
use Authorizable;
use HasRoles;

protected $fillable = ['email'];

Expand Down

0 comments on commit 0a35e99

Please sign in to comment.