Passed
Push — master ( c6a720...0f9eb8 )
by Jonathan
14:04
created
database/migrations/2018_04_15_000028_add_default_data.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         ]);
47 47
 
48 48
         Entity::create([
49
-            'id' => (string) Str::uuid(),
49
+            'id' => (string)Str::uuid(),
50 50
             'module_id' => ucmodule('domain')->id,
51 51
             'record_id' => $domain->getKey(),
52 52
         ]);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         ]);
62 62
 
63 63
         Entity::create([
64
-            'id' => (string) Str::uuid(),
64
+            'id' => (string)Str::uuid(),
65 65
             'module_id' => ucmodule('profile')->id,
66 66
             'record_id' => $profile->getKey(),
67 67
         ]);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $role->profiles()->attach($profile);
92 92
 
93 93
         Entity::create([
94
-            'id' => (string) Str::uuid(),
94
+            'id' => (string)Str::uuid(),
95 95
             'module_id' => ucmodule('role')->id,
96 96
             'record_id' => $role->getKey(),
97 97
         ]);
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000031_alter_role_module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             'uitype_id' => uitype('boolean')->id,
34 34
             'displaytype_id' => displaytype('everywhere')->id,
35 35
             'sequence' => 3,
36
-            'data' => [ 'info' => 'field_info.see_descendants_records']
36
+            'data' => [ 'info' => 'field_info.see_descendants_records' ]
37 37
         ]);
38 38
 
39 39
         $filter = Filter::where('module_id', $roleModule->id)->where('name', 'filter.all')->first();
Please login to merge, or discard this patch.
app/Http/Controllers/User/EditController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         foreach ($treeDomainsIds as $treeDomainId) {
45 45
             $_domain = Domain::find($treeDomainId);
46 46
             foreach ($_domain->roles as $role) {
47
-                $roleName = $_domain->id === $domain->id ? $role->name : $_domain->name . ' > ' . $role->name;
47
+                $roleName = $_domain->id === $domain->id ? $role->name : $_domain->name.' > '.$role->name;
48 48
                 $roles[ $role->id ] = $roleName;
49 49
             }
50 50
         }
Please login to merge, or discard this patch.
app/Models/Relatedlist.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
 
155 155
         // Add tab id if defined
156 156
         if ($this->tab_id) {
157
-            $params['tab'] = $this->tab_id;
157
+            $params[ 'tab' ] = $this->tab_id;
158 158
         }
159 159
 
160 160
         return ucroute('uccello.edit.relation.delete', $domain, $this->relatedModule, $params);
Please login to merge, or discard this patch.
app/Models/Group.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,17 +60,17 @@
 block discarded – undo
60 60
 
61 61
     public function parentGroups()
62 62
     {
63
-        return $this->belongsToMany(self::class, $this->tablePrefix . 'rl_groups_groups', 'children_id', 'parent_id');
63
+        return $this->belongsToMany(self::class, $this->tablePrefix.'rl_groups_groups', 'children_id', 'parent_id');
64 64
     }
65 65
 
66 66
     public function childrenGroups()
67 67
     {
68
-        return $this->belongsToMany(self::class, $this->tablePrefix . 'rl_groups_groups', 'parent_id', 'children_id');
68
+        return $this->belongsToMany(self::class, $this->tablePrefix.'rl_groups_groups', 'parent_id', 'children_id');
69 69
     }
70 70
 
71 71
     public function users()
72 72
     {
73
-        return $this->belongsToMany(User::class, $this->tablePrefix . 'rl_groups_users');
73
+        return $this->belongsToMany(User::class, $this->tablePrefix.'rl_groups_users');
74 74
     }
75 75
 
76 76
     /**
Please login to merge, or discard this patch.
app/Models/Entity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
24 24
         'record_id',
25 25
     ];
26 26
 
27
-    protected $primaryKey = 'id';   // TODO: Change to "uid" to make joins withs modules tables possible ???
27
+    protected $primaryKey = 'id'; // TODO: Change to "uid" to make joins withs modules tables possible ???
28 28
     public $incrementing = false;
29 29
 
30 30
     // Allow Eloquent to return id as string instead of int.
31
-    protected $casts = ['id' => 'string'];
31
+    protected $casts = [ 'id' => 'string' ];
32 32
 
33 33
     protected function initTablePrefix()
34 34
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Core/EditController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -274,15 +274,15 @@
 block discarded – undo
274 274
 
275 275
         // Redirect to source record if a relation was deleted
276 276
         if (isset($relatedlist) && $request->input('id')) {
277
-            $params = ['id' => $request->input('id')];
277
+            $params = [ 'id' => $request->input('id') ];
278 278
 
279 279
             // Add tab id if defined to select it automaticaly
280 280
             if ($request->input('tab')) {
281
-                $params['tab'] = $request->input('tab');
281
+                $params[ 'tab' ] = $request->input('tab');
282 282
             }
283 283
             // Add related list id to select the related tab automaticaly
284 284
             else {
285
-                $params['relatedlist'] = $relatedlist->id;
285
+                $params[ 'relatedlist' ] = $relatedlist->id;
286 286
             }
287 287
 
288 288
             $route = ucroute('uccello.detail', $domain, $relatedlist->module, $params);
Please login to merge, or discard this patch.
database/migrations/2018_04_15_000034_create_group_module.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
     public function down()
45 45
     {
46 46
         // Drop table
47
-        Schema::dropIfExists($this->tablePrefix . 'uccello_groups');
48
-        Schema::dropIfExists($this->tablePrefix . 'uccello_rl_groups_groups');
49
-        Schema::dropIfExists($this->tablePrefix . 'uccello_rl_groups_users');
47
+        Schema::dropIfExists($this->tablePrefix.'uccello_groups');
48
+        Schema::dropIfExists($this->tablePrefix.'uccello_rl_groups_groups');
49
+        Schema::dropIfExists($this->tablePrefix.'uccello_rl_groups_users');
50 50
 
51 51
         // Delete module
52 52
         Module::where('name', 'group')->forceDelete();
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     protected function createTables()
56 56
     {
57 57
         // Module Table
58
-        Schema::create($this->tablePrefix . 'uccello_groups', function (Blueprint $table) {
58
+        Schema::create($this->tablePrefix.'uccello_groups', function(Blueprint $table) {
59 59
             $table->increments('id');
60 60
             $table->string('name')->nullable();
61 61
             $table->text('description')->nullable();
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         });
67 67
 
68 68
         // Related List Table: Groups-Groups
69
-        Schema::create($this->tablePrefix . 'uccello_rl_groups_groups', function (Blueprint $table) {
69
+        Schema::create($this->tablePrefix.'uccello_rl_groups_groups', function(Blueprint $table) {
70 70
             $table->increments('id');
71 71
             $table->unsignedInteger('parent_id');
72 72
             $table->unsignedInteger('children_id');
@@ -74,19 +74,19 @@  discard block
 block discarded – undo
74 74
 
75 75
             // Foreign keys
76 76
             $table->foreign('parent_id')
77
-                ->references('id')->on($this->tablePrefix . 'uccello_groups')
77
+                ->references('id')->on($this->tablePrefix.'uccello_groups')
78 78
                 ->onDelete('cascade');
79 79
 
80 80
             $table->foreign('children_id')
81
-                ->references('id')->on($this->tablePrefix . 'uccello_groups')
81
+                ->references('id')->on($this->tablePrefix.'uccello_groups')
82 82
                 ->onDelete('cascade');
83 83
 
84 84
             // Unique keys
85
-            $table->unique(['parent_id', 'children_id']);
85
+            $table->unique([ 'parent_id', 'children_id' ]);
86 86
         });
87 87
 
88 88
         // Related List Table: Groups-Users
89
-        Schema::create($this->tablePrefix . 'uccello_rl_groups_users', function (Blueprint $table) {
89
+        Schema::create($this->tablePrefix.'uccello_rl_groups_users', function(Blueprint $table) {
90 90
             $table->increments('id');
91 91
             $table->unsignedInteger('group_id');
92 92
             $table->unsignedInteger('user_id');
@@ -94,15 +94,15 @@  discard block
 block discarded – undo
94 94
 
95 95
             // Foreign keys
96 96
             $table->foreign('group_id')
97
-                ->references('id')->on($this->tablePrefix . 'uccello_groups')
97
+                ->references('id')->on($this->tablePrefix.'uccello_groups')
98 98
                 ->onDelete('cascade');
99 99
 
100 100
             $table->foreign('user_id')
101
-                ->references('id')->on($this->tablePrefix . 'users')
101
+                ->references('id')->on($this->tablePrefix.'users')
102 102
                 ->onDelete('cascade');
103 103
 
104 104
             // Unique keys
105
-            $table->unique(['group_id', 'user_id']);
105
+            $table->unique([ 'group_id', 'user_id' ]);
106 106
         });
107 107
     }
108 108
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         $filter->user_id = null;
169 169
         $filter->name = 'filter.all';
170 170
         $filter->type = 'list';
171
-        $filter->columns = [ 'name', 'description'];
171
+        $filter->columns = [ 'name', 'description' ];
172 172
         $filter->conditions = null;
173 173
         $filter->order_by = null;
174 174
         $filter->is_default = true;
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             'method' => 'getRelatedList',
201 201
             'data' => [
202 202
                 "relationName" => "childrenGroups",
203
-                "actions" => ["select", "add"]
203
+                "actions" => [ "select", "add" ]
204 204
             ],
205 205
             'sequence' => 0
206 206
         ]);
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             'label' => 'relatedlist.users',
218 218
             'type' => 'n-n',
219 219
             'method' => 'getRelatedList',
220
-            'data' => ["actions" => ["select", "add"]],
220
+            'data' => [ "actions" => [ "select", "add" ] ],
221 221
             'sequence' => 0
222 222
         ]);
223 223
     }
Please login to merge, or discard this patch.
resources/views/modules/default/uitypes/search/assigned_user.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
         <?php
4 4
         $autocompleteSearch = false;
5 5
 
6
-        $entities = [];
6
+        $entities = [ ];
7 7
 
8
-        if (isset($column['data']->autocomplete_search) && $column['data']->autocomplete_search === true) {
8
+        if (isset($column[ 'data' ]->autocomplete_search) && $column[ 'data' ]->autocomplete_search === true) {
9 9
             $autocompleteSearch = true;
10 10
         } else {
11 11
             $entities = auth()->user()->getAllowedGroupsAndUsers(false);
Please login to merge, or discard this patch.