@@ -33,7 +33,7 @@ |
||
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(); |
@@ -44,7 +44,7 @@ |
||
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 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | $i = 0; |
141 | 141 | foreach ($words as $w) { |
142 | - $initials .= $w[0]; |
|
142 | + $initials .= $w[ 0 ]; |
|
143 | 143 | $i++; |
144 | 144 | |
145 | 145 | if ($i === 3) { // Maximum: 3 letters |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $image = 'vendor/uccello/uccello/images/user-no-image.png'; |
161 | 161 | |
162 | 162 | if ($this->avatarType === 'gravatar') { |
163 | - $image = 'https://www.gravatar.com/avatar/' . md5($this->email) . '?d=mm'; |
|
163 | + $image = 'https://www.gravatar.com/avatar/'.md5($this->email).'?d=mm'; |
|
164 | 164 | |
165 | 165 | } elseif ($this->avatarType === 'image' && !empty($this->avatar->path)) { |
166 | 166 | $image = $this->avatar->path; |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | */ |
178 | 178 | public function rolesOnDomain($domain) : Collection |
179 | 179 | { |
180 | - return Cache::remember('domain_'.$domain->slug.'_roles', 600, function () use($domain) { |
|
180 | + return Cache::remember('domain_'.$domain->slug.'_roles', 600, function() use($domain) { |
|
181 | 181 | $roles = collect(); |
182 | 182 | |
183 | 183 | if (config('uccello.roles.display_ancestors_roles')) { |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | |
226 | 226 | $hasRole = false; |
227 | 227 | |
228 | - $descendants = Cache::remember('domain_'.$domain->slug.'_descendants', 600, function () use($domain) { |
|
228 | + $descendants = Cache::remember('domain_'.$domain->slug.'_descendants', 600, function() use($domain) { |
|
229 | 229 | return $domain->findDescendants()->get(); |
230 | 230 | }); |
231 | 231 | |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | { |
252 | 252 | $keyName = 'user_'.$this->id.'_'.$domain->slug.'_'.$module->name.'_capabilities'; |
253 | 253 | |
254 | - return Cache::remember($keyName, 600, function () use($domain, $module) { |
|
254 | + return Cache::remember($keyName, 600, function() use($domain, $module) { |
|
255 | 255 | $capabilities = collect(); |
256 | 256 | |
257 | 257 | // Get the domain and all its parents |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | |
306 | 306 | $keyName = 'user_'.$this->id.'_'.$domain->slug.'_can_access_to_settings_panel'; |
307 | 307 | |
308 | - return Cache::remember($keyName, 600, function () use($domain) { |
|
308 | + return Cache::remember($keyName, 600, function() use($domain) { |
|
309 | 309 | |
310 | 310 | $hasCapability = false; |
311 | 311 |