Completed
Pull Request — master (#91)
by Tim
02:31
created
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         $router->group([
56 56
             'namespace' => $this->namespace, 'middleware' => 'web',
57
-        ], function ($router) {
57
+        ], function($router) {
58 58
             require app_path('Http/routes.php');
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function __construct()
39 39
     {
40
-        $this->middleware($this->guestMiddleware(), ['except' => 'logout']);
40
+        $this->middleware($this->guestMiddleware(), [ 'except' => 'logout' ]);
41 41
     }
42 42
 
43 43
     /**
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
     protected function create(array $data)
66 66
     {
67 67
         return User::create([
68
-            'fname' => $data['fname'],
69
-            'name' => $data['name'],
70
-            'email' => $data['email'],
71
-            'password' => bcrypt($data['password']),
68
+            'fname' => $data[ 'fname' ],
69
+            'name' => $data[ 'name' ],
70
+            'email' => $data[ 'email' ],
71
+            'password' => bcrypt($data[ 'password' ]),
72 72
         ]);
73 73
     }
74 74
 }
Please login to merge, or discard this patch.
app/Http/Middleware/languageMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * @var array
19 19
      */
20
-    protected static $supportedLanguages = ['nl', 'en', 'fr'];
20
+    protected static $supportedLanguages = [ 'nl', 'en', 'fr' ];
21 21
     /**
22 22
      * Handle an incoming request.
23 23
      *
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('available')->to('');
19 19
             Bouncer::allow('unavailable')->to('');
20 20
 
Please login to merge, or discard this patch.
app/Http/Middleware/RoleMiddlware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function handle($request, Closure $next, $role)
18 18
     {
19
-        if (! auth()->user()->is($role)) {
19
+        if (!auth()->user()->is($role)) {
20 20
             return redirect()->back(302);
21 21
         }
22 22
 
Please login to merge, or discard this patch.
app/Http/Controllers/CustomersController.php 2 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 App\Customer;
6
-use Illuminate\Http\Request;
7
-
8 6
 use App\Http\Requests;
9 7
 
10 8
 class CustomersController extends Controller
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function index()
29 29
     {
30
-        $data['customers'] = Customer::paginate(15);
30
+        $data[ 'customers' ] = Customer::paginate(15);
31 31
         return view('customers/index', $data);
32 32
     }
33 33
 
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $user = auth()->user();
42 42
 
43
-        if (! $user->is('Guest') || ! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) {
43
+        if (!$user->is('Guest') || !$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) {
44 44
             return redirect()->back();
45 45
         }
46 46
 
47
-        $data['countries'] = Countries::all();
47
+        $data[ 'countries' ] = Countries::all();
48 48
         return view('customers/register', $data);
49 49
     }
50 50
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $user = auth()->user();
60 60
 
61
-        if (! $user->is('Guest') || ! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) {
61
+        if (!$user->is('Guest') || !$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) {
62 62
             return redirect()->back();
63 63
         }
64 64
 
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $user = auth()->user();
79 79
 
80
-        if (! $user->is('Customer') || ! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) {
80
+        if (!$user->is('Customer') || !$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) {
81 81
             return redirect()->back();
82 82
         }
83 83
 
84
-        $data['customer'] = Customer::where('id', $id)->get();
84
+        $data[ 'customer' ] = Customer::where('id', $id)->get();
85 85
         return view('customers/edit', $data);
86 86
     }
87 87
 }
Please login to merge, or discard this patch.
app/Http/Controllers/DepartmentController.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * Store a newly created resource in storage.
50 50
      *
51 51
      * @param  Requests\DepartmentsValidator $input
52
-     * @return \Illuminate\Http\Response
52
+     * @return \Illuminate\Http\RedirectResponse
53 53
      */
54 54
     public function store(Requests\DepartmentsValidator $input)
55 55
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @param  Requests\DepartmentsValidator $input
88 88
      * @param  int $id the department id in the database.
89
-     * @return \Illuminate\Http\Response
89
+     * @return \Illuminate\Http\RedirectResponse
90 90
      */
91 91
     public function update(Requests\DepartmentsValidator $input, $id)
92 92
     {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * Remove the specified resource from storage.
99 99
      *
100 100
      * @param  int  $id the department id in the database.
101
-     * @return \Illuminate\Http\Response
101
+     * @return \Illuminate\Http\RedirectResponse
102 102
      */
103 103
     public function destroy($id)
104 104
     {
Please login to merge, or discard this patch.
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\Departments;
6 6
 use Illuminate\Http\Request;
7
-
8 7
 use App\Http\Requests;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function index()
34 34
     {
35
-        $data['query'] = Departments::with('managers')->paginate(15);
35
+        $data[ 'query' ] = Departments::with('managers')->paginate(15);
36 36
         return view('departments.index', $data);
37 37
     }
38 38
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function search(Request $request)
56 56
     {
57 57
         $term = $request->get('name');
58
-        $data['query'] = Departments::where('name', 'LIKE', "%$term%")->with('managers')->paginate(15);
58
+        $data[ 'query' ] = Departments::where('name', 'LIKE', "%$term%")->with('managers')->paginate(15);
59 59
         return view('departments.index', $data);
60 60
     }
61 61
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function show($id)
81 81
     {
82
-        $data['query'] = Departments::find($id);
82
+        $data[ 'query' ] = Departments::find($id);
83 83
         return view('departments.specific', $data);
84 84
     }
85 85
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function edit($id)
93 93
     {
94
-        $data['query'] = Departments::find($id);
94
+        $data[ 'query' ] = Departments::find($id);
95 95
         return view('departments.update', $data);
96 96
     }
97 97
 
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
     public function get_departments()
129 129
     {
130 130
         $items = Departments::all();
131
-        $data2 = [];
131
+        $data2 = [ ];
132 132
 
133
-        foreach($items as $department) {
134
-            $data2[] = [
135
-                'value' => $department["id"],
136
-                'text'  => $department["name"]
133
+        foreach ($items as $department) {
134
+            $data2[ ] = [
135
+                'value' => $department[ "id" ],
136
+                'text'  => $department[ "name" ]
137 137
             ];
138 138
         }
139 139
 
Please login to merge, or discard this patch.
app/Http/Controllers/CallbackController.php 3 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7
-use App\Http\Requests;
8 5
 use App\Customer as Customer;
9 6
 
10 7
 class CustomersController extends Controller
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function index()
22 22
     {
23 23
         $data['query'] = Callback::all();
24
-    	return view('callbacks/list', $data);
24
+        return view('callbacks/list', $data);
25 25
     }
26 26
 
27 27
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function edit($id)
45 45
     {
46
-    	return view('callbacks/details');
46
+        return view('callbacks/details');
47 47
     }
48 48
 
49 49
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function index()
32 32
     {
33
-        $data['query'] = Callback::all();
33
+        $data[ 'query' ] = Callback::all();
34 34
     	return view('callbacks/list', $data);
35 35
     }
36 36
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $user = auth()->user();
46 46
 
47
-        if (! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) {
47
+        if (!$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) {
48 48
             return redirect()->back();
49 49
         }
50 50
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $user = auth()->user();
62 62
 
63
-        if (! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) {
63
+        if (!$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) {
64 64
             return redirect()->back();
65 65
         }
66 66
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $user = auth()->user();
79 79
 
80
-        if (! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) {
80
+        if (!$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) {
81 81
             return redirect()->back();
82 82
         }
83 83
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $user = auth()->user();
96 96
 
97
-        if (! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) {
97
+        if (!$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) {
98 98
             return redirect()->back();
99 99
         }
100 100
 
Please login to merge, or discard this patch.
app/Http/Controllers/SettingsController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 class SettingsController extends Controller
10 10
 {
11
-	/**
11
+    /**
12 12
      * SettingsController constructor.
13 13
      */
14 14
     public function __construct()
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     public function index()
21 21
     {
22
-    	return view('settings.index');
22
+        return view('settings.index');
23 23
     }
24 24
 
25 25
 
Please login to merge, or discard this patch.