@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $actionMenu .= Url::a(['user/delete', [$user->id]], ' <i class="fa fa-trash-o"></i>', ['html' => true, 'class' => 'btn btn-sm btn-danger']); |
| 61 | 61 | $actionMenu .= '</div>'; |
| 62 | 62 | |
| 63 | - $roleHtml = $user->role->color ? '<span class="badge badge-light" style="color: ' . $user->role->color . '">' . $user->role->name . '</span>' : $user->role->name; |
|
| 63 | + $roleHtml = $user->role->color ? '<span class="badge badge-light" style="color: '.$user->role->color.'">'.$user->role->name.'</span>' : $user->role->name; |
|
| 64 | 64 | |
| 65 | 65 | $table->row([ |
| 66 | 66 | ['text' => $user->id], |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | ['text' => Date::convertToDatetime($user->created_at, Date::FORMAT_TO_DAY)], |
| 71 | 71 | ['text' => $actionMenu, |
| 72 | 72 | 'properties' => ['class' => 'text-center'], 'html' => true], |
| 73 | - 'properties' => ['class' => 'checkbox-row' . ($user->approve_token !== null ? ' bg-warning' : null)] |
|
| 73 | + 'properties' => ['class' => 'checkbox-row'.($user->approve_token !== null ? ' bg-warning' : null)] |
|
| 74 | 74 | |
| 75 | 75 | ]); |
| 76 | 76 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | ?> |
| 33 | 33 | |
| 34 | 34 | <?php |
| 35 | -foreach($records as $role) { |
|
| 35 | +foreach ($records as $role) { |
|
| 36 | 36 | $permissions = explode(';', $role->permissions); |
| 37 | 37 | $permissionsLabel = null; |
| 38 | 38 | foreach ($permissions as $perm) { |
@@ -44,12 +44,12 @@ discard block |
||
| 44 | 44 | } else { |
| 45 | 45 | $labelMark = 'badge-secondary'; |
| 46 | 46 | } |
| 47 | - $permissionsLabel .= '<span class="badge ' . $labelMark . '">' . $perm . '</span> '; |
|
| 47 | + $permissionsLabel .= '<span class="badge '.$labelMark.'">'.$perm.'</span> '; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | $roleColor = '-'; |
| 51 | 51 | if ($role->color) { |
| 52 | - $roleColor = '<span class="badge badge-light" style="color: ' . $role->color . '">' . $role->color . '</span>'; |
|
| 52 | + $roleColor = '<span class="badge badge-light" style="color: '.$role->color.'">'.$role->color.'</span>'; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | $table->row([ |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ['text' => $profile->user->email], |
| 47 | 47 | ['text' => $profile->nick], |
| 48 | 48 | ['text' => Str::startsWith('0000-', $profile->birthday) ? __('None') : Date::convertToDatetime($profile->birthday)], |
| 49 | - ['text' => ($profile->rating > 0 ? '+' : null) . $profile->rating], |
|
| 49 | + ['text' => ($profile->rating > 0 ? '+' : null).$profile->rating], |
|
| 50 | 50 | ['text' => $actionMenu, 'html' => true, 'properties' => ['class' => 'text-center']] |
| 51 | 51 | ]); |
| 52 | 52 | } |
@@ -55,8 +55,8 @@ |
||
| 55 | 55 | $table->row([ |
| 56 | 56 | ['text' => $row->id], |
| 57 | 57 | ['text' => $row->getLocaled('name')], |
| 58 | - ['text' => '<span class="' . $labelClass . '">' . $row->type . '</span>', 'html' => true], |
|
| 59 | - ['text' => '<code>' . ($row->reg_cond == 0 ? '!' : null) . 'preg_match("' . $row->reg_exp . '", input)' . '</code>', 'html' => true], |
|
| 58 | + ['text' => '<span class="'.$labelClass.'">'.$row->type.'</span>', 'html' => true], |
|
| 59 | + ['text' => '<code>'.($row->reg_cond == 0 ? '!' : null).'preg_match("'.$row->reg_exp.'", input)'.'</code>', 'html' => true], |
|
| 60 | 60 | ['text' => $actionMenu, 'html' => true, 'properties' => ['class' => 'text-center']] |
| 61 | 61 | ]); |
| 62 | 62 | } |