Passed
Pull Request — master (#14)
by ARCANEDEV
08:28
created
src/Auth/Rules/Users/UniqueKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Auth/Http/Routes/Permissions/RolesRoutes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Auth/Http/Routes/DashboardRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Auth/Http/Routes/Roles/PermissionsRoutes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
helpers/ui.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
migrations/2019_01_01_000007_create_auth_administrator_role_pivot_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
database/migrations/2019_01_01_000004_create_auth_roles_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
database/migrations/2019_01_01_000001_create_auth_users_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
migrations/2019_01_01_000008_create_auth_permission_role_pivot_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.