@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | use Spatie\Permission\Models\Permission; |
| 4 | 4 | use Spatie\Permission\Models\Role; |
| 5 | 5 | |
| 6 | -if (! function_exists('initialize_task_permission')){ |
|
| 6 | +if ( ! function_exists('initialize_task_permission')) { |
|
| 7 | 7 | function initialize_task_permissions() { |
| 8 | 8 | Permission::firstOrCreate(['name' => 'list-tasks']); |
| 9 | 9 | Permission::firstOrCreate(['name' => 'show-tasks']); |
@@ -21,17 +21,17 @@ discard block |
||
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | -if (! function_exists('create_user')){ |
|
| 24 | +if ( ! function_exists('create_user')) { |
|
| 25 | 25 | function create_user() { |
| 26 | 26 | factory(User::class)->create([ |
| 27 | - 'name' => env('TASKS_USER_NAME','Eric Garcia Reverter'), |
|
| 28 | - 'email' => env('TASKS_USER_EMAIL','[email protected]'), |
|
| 27 | + 'name' => env('TASKS_USER_NAME', 'Eric Garcia Reverter'), |
|
| 28 | + 'email' => env('TASKS_USER_EMAIL', '[email protected]'), |
|
| 29 | 29 | 'password' => bcrypt(env('TASKS_USER_PASSWORD')) |
| 30 | 30 | ]); |
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | -if (! function_exists('first_user_as_task_manager')){ |
|
| 34 | +if ( ! function_exists('first_user_as_task_manager')) { |
|
| 35 | 35 | function first_user_as_task_manager() { |
| 36 | 36 | User::all()->first()->assignRole('task-manager'); |
| 37 | 37 | } |