@@ -38,7 +38,7 @@ |
||
38 | 38 | { |
39 | 39 | // check if events are associate with the to be deleted project |
40 | 40 | // if yes do not delete and send back with errors |
41 | - if( $project->events()->exists() ) |
|
41 | + if ($project->events()->exists()) |
|
42 | 42 | { |
43 | 43 | return redirect()->route('admin.events.project.get', $project) |
44 | 44 | ->with('status', 'Error on deletion: Project has events!'); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | $projects = Project::where('is_archived', false)->get(); |
17 | 17 | $archive = Project::where('is_archived', true)->get(); |
18 | - foreach( $archive as $project ) |
|
18 | + foreach ($archive as $project) |
|
19 | 19 | { |
20 | 20 | // Set the time range of the project by selecting the last and first dates of its events |
21 | 21 | // if no events are associated with the project, set the dates to '-' |