Skip to content

Commit 0a35e99

Browse files
drbytegithub-actions[bot]
authored andcommitted
Fix styling
1 parent b84f550 commit 0a35e99

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

src/Contracts/Role.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public function permissions(): BelongsToMany;
1515
* Find a role by its name and guard name.
1616
*
1717
* @param string|null $guardName
18-
* @return \Spatie\Permission\Contracts\Role
1918
*
2019
* @throws \Spatie\Permission\Exceptions\RoleDoesNotExist
2120
*/
@@ -25,7 +24,6 @@ public static function findByName(string $name, $guardName): self;
2524
* Find a role by its id and guard name.
2625
*
2726
* @param string|null $guardName
28-
* @return \Spatie\Permission\Contracts\Role
2927
*
3028
* @throws \Spatie\Permission\Exceptions\RoleDoesNotExist
3129
*/
@@ -35,7 +33,6 @@ public static function findById(int $id, $guardName): self;
3533
* Find or create a role by its name and guard name.
3634
*
3735
* @param string|null $guardName
38-
* @return \Spatie\Permission\Contracts\Role
3936
*/
4037
public static function findOrCreate(string $name, $guardName): self;
4138

tests/Admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
use Illuminate\Foundation\Auth\Access\Authorizable;
1010
use Spatie\Permission\Traits\HasRoles;
1111

12-
class Admin extends Model implements AuthorizableContract, AuthenticatableContract
12+
class Admin extends Model implements AuthenticatableContract, AuthorizableContract
1313
{
14-
use HasRoles;
15-
use Authorizable;
1614
use Authenticatable;
15+
use Authorizable;
16+
use HasRoles;
1717

1818
protected $fillable = ['email'];
1919

tests/Manager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
use Illuminate\Foundation\Auth\Access\Authorizable;
1010
use Spatie\Permission\Traits\HasRoles;
1111

12-
class Manager extends Model implements AuthorizableContract, AuthenticatableContract
12+
class Manager extends Model implements AuthenticatableContract, AuthorizableContract
1313
{
14-
use HasRoles;
15-
use Authorizable;
1614
use Authenticatable;
15+
use Authorizable;
16+
use HasRoles;
1717

1818
protected $fillable = ['email'];
1919

tests/User.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
use Illuminate\Foundation\Auth\Access\Authorizable;
1010
use Spatie\Permission\Traits\HasRoles;
1111

12-
class User extends Model implements AuthorizableContract, AuthenticatableContract
12+
class User extends Model implements AuthenticatableContract, AuthorizableContract
1313
{
14-
use HasRoles;
15-
use Authorizable;
1614
use Authenticatable;
15+
use Authorizable;
16+
use HasRoles;
1717

1818
protected $fillable = ['email'];
1919

0 commit comments

Comments
 (0)