@@ -62,7 +62,7 @@ |
||
62 | 62 | return ! Auth::makeModel('role') |
63 | 63 | ->newQuery() |
64 | 64 | ->where('key', Auth::slugRoleKey($value)) |
65 | - ->unless(is_null($this->ignored), function (Builder $query) { |
|
65 | + ->unless(is_null($this->ignored), function(Builder $query) { |
|
66 | 66 | return $query->where('id', '!=', $this->ignored); |
67 | 67 | }) |
68 | 68 | ->exists(); |
@@ -35,8 +35,8 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function map(): void |
37 | 37 | { |
38 | - $this->prefix('roles')->name('roles.')->group(function () { |
|
39 | - $this->prefix('{'.self::ROLE_WILDCARD.'}')->group(function () { |
|
38 | + $this->prefix('roles')->name('roles.')->group(function() { |
|
39 | + $this->prefix('{'.self::ROLE_WILDCARD.'}')->group(function() { |
|
40 | 40 | // admin::auth.permissions.roles.detach |
41 | 41 | $this->delete('detach', [RolesController::class, 'detach']) |
42 | 42 | ->name('detach'); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function bindings(PermissionsRepository $repo): void |
53 | 53 | { |
54 | - $this->bind(self::ROLE_WILDCARD, function (string $uuid, Route $route) use ($repo) { |
|
54 | + $this->bind(self::ROLE_WILDCARD, function(string $uuid, Route $route) use ($repo) { |
|
55 | 55 | /** @var \Arcanesoft\Foundation\Auth\Models\Permission $permission */ |
56 | 56 | $permission = $route->parameter(PermissionsRoutes::PERMISSION_WILDCARD); |
57 | 57 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function map(): void |
26 | 26 | { |
27 | - $this->adminGroup(function () { |
|
27 | + $this->adminGroup(function() { |
|
28 | 28 | // admin::authorization.index |
29 | 29 | $this->get('/', [DashboardController::class, 'index']) |
30 | 30 | ->name('index'); |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function map(): void |
36 | 36 | { |
37 | - $this->prefix('permissions')->name('permissions.')->group(function () { |
|
38 | - $this->prefix('{'.self::PERMISSION_WILDCARD.'}')->group(function () { |
|
37 | + $this->prefix('permissions')->name('permissions.')->group(function() { |
|
38 | + $this->prefix('{'.self::PERMISSION_WILDCARD.'}')->group(function() { |
|
39 | 39 | // admin::auth.roles.permissions.detach |
40 | 40 | $this->delete('detach', [PermissionsController::class, 'detach']) |
41 | 41 | ->name('detach'); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function bindings(RolesRepository $repo): void |
52 | 52 | { |
53 | - $this->bind(self::PERMISSION_WILDCARD, function (string $uuid, Route $route) use ($repo) { |
|
53 | + $this->bind(self::PERMISSION_WILDCARD, function(string $uuid, Route $route) use ($repo) { |
|
54 | 54 | /** @var \Arcanesoft\Foundation\Auth\Models\Role $role */ |
55 | 55 | $role = $route->parameter(RolesRoutes::ROLE_WILDCARD); |
56 | 56 |
@@ -72,7 +72,7 @@ |
||
72 | 72 | function count_pill($count, Closure $condition = null) |
73 | 73 | { |
74 | 74 | if (is_null($condition)) { |
75 | - $condition = function ($count) { |
|
75 | + $condition = function($count) { |
|
76 | 76 | return $count > 0 ? 'rounded-pill border border-info' : ''; |
77 | 77 | }; |
78 | 78 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function up(): void |
42 | 42 | { |
43 | - $this->createSchema(function (Blueprint $table) { |
|
43 | + $this->createSchema(function(Blueprint $table) { |
|
44 | 44 | $table->unsignedBigInteger('administrator_id'); |
45 | 45 | $table->unsignedInteger('role_id'); |
46 | 46 | $table->timestamp('created_at')->nullable(); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function up(): void |
42 | 42 | { |
43 | - $this->createSchema(function (Blueprint $table) { |
|
43 | + $this->createSchema(function(Blueprint $table) { |
|
44 | 44 | $table->id(); |
45 | 45 | $table->uuid('uuid'); |
46 | 46 | $table->string('name'); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function up(): void |
42 | 42 | { |
43 | - $this->createSchema(function (Blueprint $table) { |
|
43 | + $this->createSchema(function(Blueprint $table) { |
|
44 | 44 | $table->id(); |
45 | 45 | $table->uuid('uuid'); |
46 | 46 | $table->string('username')->nullable(); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function up(): void |
42 | 42 | { |
43 | - $this->createSchema(function (Blueprint $table) { |
|
43 | + $this->createSchema(function(Blueprint $table) { |
|
44 | 44 | $table->unsignedInteger('permission_id'); |
45 | 45 | $table->unsignedInteger('role_id'); |
46 | 46 | $table->timestamp('created_at')->nullable(); |