Test Setup Failed
Push — development ( 0bde83...86d0ff )
by Glenn
12:02 queued 06:49
created
app/Http/Controllers/SickController.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * Store a newly created resource in storage.
42 42
      *
43 43
      * @param  \Illuminate\Http\Request  $request
44
-     * @return \Illuminate\Http\Response
44
+     * @return \Illuminate\Http\RedirectResponse
45 45
      */
46 46
     public function store(Request $request)
47 47
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,7 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-use App\Http\Requests;
7 6
 use App\Http\Controllers\Controller;
8
-use App\Sick;
9 7
 use App\User;
10 8
 
11 9
 class SickController extends Controller
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             $mailbox = env('MAIL_USERNAME');
70 70
 
71 71
             \Session::flash('message', "Information has been saved to the database");
72
-            \Mail::send('emails.new_sick', ['data' => $data], function ($m) use ($mailbox, $subject) {
72
+            \Mail::send('emails.new_sick', ['data' => $data], function($m) use ($mailbox, $subject) {
73 73
                 $m->from($mailbox);
74 74
                 $m->to("[email protected]")->subject("$subject");
75 75
             });
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@
 block discarded – undo
72 72
             \Mail::send('emails.new_sick', ['data' => $data], function ($m) use ($mailbox, $subject) {
73 73
                 $m->from($mailbox);
74 74
                 /** Send confirmation mail to all managers in the department from the user.
75
-                *$m->to("")->subject("$subject");
76
-                */
75
+                 *$m->to("")->subject("$subject");
76
+                 */
77 77
             });
78 78
 
79 79
             return redirect('sick');
Please login to merge, or discard this patch.
app/Http/Controllers/TeamsController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-use App\Http\Requests;
7 6
 use App\Http\Controllers\Controller;
8 7
 use App\User;
9 8
 use App\Teams;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function index()
20 20
     {
21
-        $teams = Teams::orderBy('name', 'asc')->paginate(10);;
21
+        $teams = Teams::orderBy('name', 'asc')->paginate(10); ;
22 22
         return view('teams/list', ['teams' => $teams]);
23 23
     }
24 24
 
Please login to merge, or discard this patch.
app/Http/Controllers/DepartmentsController.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $manager->userid = $request->get('department_manager');
51 51
         $manager->save();
52 52
 
53
-         \Session::flash('message', "New department has been saved");
53
+            \Session::flash('message', "New department has been saved");
54 54
         return redirect('staff/departments');
55 55
     }
56 56
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * Store a newly created resource in storage.
42 42
      *
43 43
      * @param  \Illuminate\Http\Request  $request
44
-     * @return \Illuminate\Http\Response
44
+     * @return \Illuminate\Http\RedirectResponse
45 45
      */
46 46
     public function store(Request $request)
47 47
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use App\Http\Requests;
7 7
 use App\Departments;
8 8
 use App\Department_members;
9
-use Mail;
10 9
 use App\User;
11 10
 
12 11
 class DepartmentsController extends Controller
Please login to merge, or discard this patch.
app/Console/Kernel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
     protected function schedule(Schedule $schedule)
26 26
     {
27 27
         $schedule->command('inspire')
28
-                 ->hourly();
28
+                    ->hourly();
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function map(Router $router)
39 39
     {
40
-        $router->group(['namespace' => $this->namespace], function ($router) {
40
+        $router->group(['namespace' => $this->namespace], function($router) {
41 41
             require app_path('Http/routes.php');
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-use App\Http\Requests;
7 6
 use App\Http\Controllers\Controller;
8 7
 use App\User;
9 8
 use App\Teams;
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function boot()
16 16
     {
17
-        Bouncer::seeder(function () {
17
+        Bouncer::seeder(function() {
18 18
             Bouncer::allow('Agent');
19 19
 
20 20
             Bouncer::allow('Administrator')
Please login to merge, or discard this patch.
app/Http/Controllers/SettingsController.php 5 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-
7
-use App\Http\Requests;
8 6
 use App\Http\Controllers\Controller;
9 7
 
10 8
 class SettingsController extends Controller
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * Store a newly created resource in storage.
42 42
      *
43 43
      * @param  \Illuminate\Http\Request  $request
44
-     * @return \Illuminate\Http\Response
44
+     * @return \Illuminate\Http\RedirectResponse
45 45
      */
46 46
     public function store(Request $request)
47 47
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     'm.d.Y' => '12.23.2010',
31 31
   );
32 32
 
33
-    $data['time_formats'] = array (
33
+    $data['time_formats'] = array(
34 34
     'H:i' => '23:00',
35 35
     'h:ia' => '11:00pm',
36 36
     'h:iA' => '11:00PM',
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $config->set('time', $request->get('time'));
63 63
         $config->save(); 
64 64
 
65
-        if ($config){
65
+        if ($config) {
66 66
             sleep(2);
67 67
             session()->flash('message', 'Settings have been saved');
68 68
             return redirect('settings/general');
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,9 +66,7 @@
 block discarded – undo
66 66
             sleep(2);
67 67
             session()->flash('message', 'Settings have been saved');
68 68
             return redirect('settings/general');
69
-        }
70
-
71
-        else {
69
+        } else {
72 70
             session()->flash('message', 'Settings have not been saved, please verify');
73 71
             return redirect('settings/general');
74 72
         }
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     'Y.m.d' => '2010.12.23',
29 29
     'd.m.Y' => '23.12.2010',
30 30
     'm.d.Y' => '12.23.2010',
31
-  );
31
+    );
32 32
 
33 33
     $data['time_formats'] = array (
34 34
     'H:i' => '23:00',
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
     'h:iA' => '11:00PM',
37 37
     'h:i a' => '11:00 pm',
38 38
     'h:i A' => '11:00 PM',
39
-  );
39
+    );
40 40
     
41 41
     $data['title'] = config('timecontrol.title');
42 42
     $data['email'] = config('timecontrol.email');
43 43
     $data['date'] = config('timecontrol.date');
44 44
     $data['time'] = config('timecontrol.time');
45 45
 
46
-     return view('settings/basic', $data);
46
+        return view('settings/basic', $data);
47 47
     }
48 48
 
49 49
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             session()->flash('message', 'Settings have not been saved, please verify');
73 73
             return redirect('settings/general');
74 74
         }
75
-   }
75
+    }
76 76
 
77 77
     /**
78 78
      * Display a form to configure the backup settings.
Please login to merge, or discard this patch.
app/Http/Controllers/BreakController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-
7
-use App\Http\Requests;
8 6
 use App\Http\Controllers\Controller;
9 7
 
10 8
 class SettingsController extends Controller
Please login to merge, or discard this patch.