Skip to content

Commit b69e9c9

Browse files
committed
Apply fixes from StyleCI
1 parent 42c548b commit b69e9c9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Controls/Control.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static function resolveControlName(string $modelName): string
236236
{
237237
// @TODO: The auto guess here is strange, we specify the models / controls everywhere, is there a better way of doing this ? (In policies guess the model as Laravel is doing ?)
238238
// @TODO: Discussed with Lucas G
239-
239+
240240
if (method_exists($modelName, 'control')) {
241241
return $modelName::control()::class;
242242
}

tests/Feature/PoliciesTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Illuminate\Support\Facades\Gate;
66
use Lomkit\Access\Tests\Support\Models\Model;
77
use Lomkit\Access\Tests\Support\Models\User;
8-
use Mockery;
98

109
class PoliciesTest extends \Lomkit\Access\Tests\Unit\TestCase
1110
{
@@ -102,4 +101,4 @@ public function test_policies_calls_force_delete_methoforceDeleted_properly(): v
102101

103102
$this->assertTrue($policy->forceDelete($user, $model));
104103
}
105-
}
104+
}

0 commit comments

Comments
 (0)