Test Setup Failed
Push — development ( ce0609...d418a4 )
by Tim
08:46
created
app/Widgets/RecentTasks.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function __construct()
10 10
     {
11
-       $this->reloadTimeout = config('timecontrol.refreshInterval');
11
+        $this->reloadTimeout = config('timecontrol.refreshInterval');
12 12
     }
13 13
 
14 14
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/TaskController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App\Tasks;
6 6
 use Illuminate\Http\Request;
7
-
8 7
 use App\Http\Requests;
9 8
 use App\Http\Controllers\Controller;
10 9
 
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * Store a newly created resource in storage.
45 45
      *
46 46
      * @param  Requests\HolidayValidator $input
47
-     * @return \Illuminate\Http\Response
47
+     * @return \Illuminate\Http\RedirectResponse
48 48
      */
49 49
     public function store(Requests\HolidayValidator $input)
50 50
     {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      *
90 90
      * @param  Requests\HolidayValidator $input
91 91
      * @param  int | $id | The database id.
92
-     * @return \Illuminate\Http\Response
92
+     * @return \Illuminate\Http\RedirectResponse
93 93
      */
94 94
     public function update(Requests\HolidayValidator $input, $id)
95 95
     {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * Remove the specified resource from storage.
106 106
      *
107 107
      * @param  int | $id | The database id.
108
-     * @return \Illuminate\Http\Response
108
+     * @return \Illuminate\Http\RedirectResponse
109 109
      */
110 110
     public function destroy($id)
111 111
     {
Please login to merge, or discard this patch.
app/Http/TransformersApi/DepartmentOutput.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * Include Managers
39 39
      *
40 40
      * @param  Departments $department
41
-     * @return Fractal\Resource\Item
41
+     * @return Fractal\Resource\Collection
42 42
      */
43 43
     public function includeManagers(Departments $department)
44 44
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function transform(Departments $department)
28 28
     {
29 29
         return [
30
-            'id'           => (int)    $department->id,
30
+            'id'           => (int) $department->id,
31 31
             'name'         => (string) $department->department_name,
32 32
             'managers'     => (string) $department->department_manager,
33 33
             'description'  => (string) $department->department_description
Please login to merge, or discard this patch.
app/Http/TransformersApi/Relations/DepartmentManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function transform(Departments $manager)
21 21
     {
22 22
         return [
23
-            'id'   => (int)    $manager->id,
23
+            'id'   => (int) $manager->id,
24 24
         ];
25 25
     }
26 26
 }
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
app/Http/Controllers/ApiDepartmentsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      */
138 138
     public function destroy($id)
139 139
     {
140
-        if (! empty($id)) {
140
+        if (!empty($id)) {
141 141
             Departments::destroy($id);
142 142
 
143 143
             $data = [];
Please login to merge, or discard this patch.
app/Http/Controllers/HolidaysController.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * Store a newly created resource in storage.
45 45
      *
46 46
      * @param  Requests\HolidayValidator $input
47
-     * @return \Illuminate\Http\Response
47
+     * @return \Illuminate\Http\RedirectResponse
48 48
      */
49 49
     public function store(Requests\HolidayValidator $input)
50 50
     {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      *
90 90
      * @param  Requests\HolidayValidator $input
91 91
      * @param  int | $id | The database id.
92
-     * @return \Illuminate\Http\Response
92
+     * @return \Illuminate\Http\RedirectResponse
93 93
      */
94 94
     public function update(Requests\HolidayValidator $input, $id)
95 95
     {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * Remove the specified resource from storage.
106 106
      *
107 107
      * @param  int | $id | The database id.
108
-     * @return \Illuminate\Http\Response
108
+     * @return \Illuminate\Http\RedirectResponse
109 109
      */
110 110
     public function destroy($id)
111 111
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7 5
 use App\Http\Requests;
8 6
 use App\Http\Controllers\Controller;
9 7
 
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
         $this->middleware('lang');
19 19
         $this->middleware('auth');
20 20
 
21
-        if (! auth()->user()->is('Manager')) {
21
+        if (!auth()->user()->is('Manager')) {
22 22
             return redirect()->back();
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
app/Http/Middleware/ManagerMiddleware.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
     public function handle($request, Closure $next)
17 17
     {
18
-        if(auth()->user()->is('Manager')) {
18
+        if (auth()->user()->is('Manager')) {
19 19
             return $next($request);
20 20
         } else {
21 21
             return redirect()->back(302);
Please login to merge, or discard this patch.
app/Http/Controllers/DepartmentsController.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * Store a newly created resource in storage.
45 45
      *
46 46
      * @param  Requests\HolidayValidator $input
47
-     * @return \Illuminate\Http\Response
47
+     * @return \Illuminate\Http\RedirectResponse
48 48
      */
49 49
     public function store(Requests\HolidayValidator $input)
50 50
     {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      *
90 90
      * @param  Requests\HolidayValidator $input
91 91
      * @param  int | $id | The database id.
92
-     * @return \Illuminate\Http\Response
92
+     * @return \Illuminate\Http\RedirectResponse
93 93
      */
94 94
     public function update(Requests\HolidayValidator $input, $id)
95 95
     {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * Remove the specified resource from storage.
106 106
      *
107 107
      * @param  int | $id | The database id.
108
-     * @return \Illuminate\Http\Response
108
+     * @return \Illuminate\Http\RedirectResponse
109 109
      */
110 110
     public function destroy($id)
111 111
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
5 5
 use Illuminate\Http\Request;
6 6
 use App\Http\Requests;
7 7
 use App\Departments;
8
-use App\DepartmentMembers;
9
-use Mail;
10 8
 use App\User;
11 9
 use App\Http\Controllers\Controller;
12 10
 
Please login to merge, or discard this patch.