| @@ -7,7 +7,7 @@ discard block | ||
| 7 | 7 |  set('application', 'owncourses'); | 
| 8 | 8 |  set('default_stage', 'demo'); | 
| 9 | 9 | |
| 10 | -set('env', static function () { | |
| 10 | +set('env', static function() { | |
| 11 | 11 | return [ | 
| 12 | 12 |          'APP_ENV' => has('symfony_env') ? get('symfony_env') : 'prod', | 
| 13 | 13 | ]; | 
| @@ -24,13 +24,13 @@ discard block | ||
| 24 | 24 | |
| 25 | 25 |  inventory('hosts.yml'); | 
| 26 | 26 | |
| 27 | -task('deploy:assets:install', static function () { | |
| 27 | +task('deploy:assets:install', static function() { | |
| 28 | 28 |      run('{{bin/console}} ckeditor:install'); | 
| 29 | 29 |      run('{{bin/console}} assets:install {{release_path}}/public'); | 
| 30 | 30 |  })->desc('Install bundle assets'); | 
| 31 | 31 |  after('deploy:symlink', 'deploy:assets:install'); | 
| 32 | 32 | |
| 33 | -task('deploy:composer:dump-env', static function () { | |
| 33 | +task('deploy:composer:dump-env', static function() { | |
| 34 | 34 |      run('cd {{release_path}} && {{bin/composer}} symfony:dump-env prod'); | 
| 35 | 35 |  })->desc('Install bundle assets'); | 
| 36 | 36 |  after('deploy:symlink', 'deploy:composer:dump-env'); | 
| @@ -63,7 +63,7 @@ | ||
| 63 | 63 | |
| 64 | 64 | private function getProcessedNotifications(array $notifications, UserInterface $user): array | 
| 65 | 65 |      { | 
| 66 | -        $readByUserNotifications = \array_map(function ($notification) { | |
| 66 | +        $readByUserNotifications = \array_map(function($notification) { | |
| 67 | 67 | return $notification->getId(); | 
| 68 | 68 | }, $user->getNotifications()->toArray()); | 
| 69 | 69 | |