Completed
Push — master ( 1ae7e9...b1d075 )
by Martin
06:18
created
app/Http/Controllers/Admin/ProjectController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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!');
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/EventController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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 '-'
Please login to merge, or discard this patch.