Completed
Push — master ( b1d075...e12f33 )
by Martin
05:37
created
app/Http/Controllers/Admin/EventController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         $projects = Project::where('is_archived', false)->get();
19 19
         $archive = Project::where('is_archived', true)->get();
20
-        foreach( $archive as $project )
20
+        foreach ($archive as $project)
21 21
         {
22 22
             // Set the time range of the project by selecting the last and first dates of its events
23 23
             // if no events are associated with the project, set the dates to '-'
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
     public function delete(Event $event)
110 110
     {
111
-        if($event->tickets()->exists())
111
+        if ($event->tickets()->exists())
112 112
         {
113 113
             return redirect()->route('admin.events.get', $event)
114 114
                     ->with('status', 'Error on deletion: Event has tickets!');
Please login to merge, or discard this patch.