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 Jun 21, 2024
1 parent 650d7e9 commit 41977f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/HasPermissionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ public function it_can_sync_permissions_to_a_model_that_is_not_persisted()
$user = new User(['email' => '[email protected]']);
$user->syncPermissions('edit-articles');
$user->save();
$user->save(); // test save same model twice
$user->save(); // test save same model twice

$this->assertTrue($user->hasPermissionTo('edit-articles'));

Expand Down
6 changes: 2 additions & 4 deletions tests/HasRolesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public function it_will_sync_roles_to_a_model_that_is_not_persisted()
$user = new User(['email' => '[email protected]']);
$user->syncRoles([$this->testUserRole]);
$user->save();
$user->save(); // test save same model twice
$user->save(); // test save same model twice

$this->assertTrue($user->hasRole($this->testUserRole));

Expand Down Expand Up @@ -831,9 +831,7 @@ public function it_throws_an_exception_if_an_unsupported_type_is_passed_to_hasRo
{
$this->expectException(\TypeError::class);

$this->testUser->hasRole(new class
{
});
$this->testUser->hasRole(new class {});
}

/** @test */
Expand Down

0 comments on commit 41977f3

Please sign in to comment.