Completed
Push — master ( c3d46d...0132dd )
by Glenn
7s
created
app/Http/Controllers/HomeController.php 1 patch
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 App\Http\Requests;
6
-use Illuminate\Http\Request;
7
-
8 5
 class HomeController extends Controller
9 6
 {
10 7
     /**
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
@@ -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   +4 added lines, -4 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
     /**
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
     protected function create(array $data)
65 65
     {
66 66
         return User::create([
67
-            'name' => $data['name'],
68
-            'email' => $data['email'],
69
-            'password' => bcrypt($data['password']),
67
+            'name' => $data[ 'name' ],
68
+            'email' => $data[ 'email' ],
69
+            'password' => bcrypt($data[ 'password' ]),
70 70
         ]);
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Route::get('/', function () {
14
+Route::get('/', function() {
15 15
     return view('welcome');
16 16
 });
17 17
 
Please login to merge, or discard this patch.
app/Http/Controllers/CustomersController.php 2 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.
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
     public function index()
19 19
     {
20
-        $data['customers'] = Customer::paginate(15);
20
+        $data[ 'customers' ] = Customer::paginate(15);
21 21
         return view('customers/index', $data);
22 22
     }
23 23
    
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function edit($id)
35 35
     {
36
-        $data['customer'] = Customer::where('id', $id)->get();
36
+        $data[ 'customer' ] = Customer::where('id', $id)->get();
37 37
         return view('customers/edit', $data);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
app/Http/Controllers/StaffController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,6 @@
 block discarded – undo
9 9
 class StaffController extends Controller
10 10
 {
11 11
     public function profile(){
12
-    	return view('users/profile');
12
+        return view('users/profile');
13 13
     }
14 14
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 class StaffController extends Controller
10 10
 {
11
-    public function profile(){
11
+    public function profile() {
12 12
     	return view('users/profile');
13 13
     }
14 14
 }
Please login to merge, or discard this patch.