Completed
Push — master ( 9d3bbf...ed7dc7 )
by Glenn
02:43
created
app/Http/Controllers/RolesController.php 3 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Http\Request;
6 6
 
7
-use App\Http\Requests;
8
-
9 7
 class DepartmentController extends Controller
10 8
 {
11 9
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function index()
17 17
     {
18
-    	$data['roles'] = Roles::all();
18
+    	$data[ 'roles' ] = Roles::all();
19 19
     	return view('roles.index', $data);
20 20
     }
21 21
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function search(Request $request)
29 29
     {
30 30
         $term = $request->get('term');
31
-        $data['roles'] = Roles::where('name', 'LIKE', "$term")->get();
31
+        $data[ 'roles' ] = Roles::where('name', 'LIKE', "$term")->get();
32 32
         return view('roles.index', $data);
33 33
     }
34 34
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function show($id)
42 42
     {
43
-        $data['query'] = Roles::find($id);
43
+        $data[ 'query' ] = Roles::find($id);
44 44
         return view('', $data);
45 45
     }
46 46
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function edit($id)
73 73
     {
74
-        $data['query'] = Roles::find($id);
74
+        $data[ 'query' ] = Roles::find($id);
75 75
         return view('', $data)
76 76
     }
77 77
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function index()
18 18
     {
19
-    	$data['roles'] = Roles::all();
20
-    	return view('roles.index', $data);
19
+        $data['roles'] = Roles::all();
20
+        return view('roles.index', $data);
21 21
     }
22 22
 
23 23
     /**
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function edit($id)
54 54
     {
55
-    	return view('roles.edit');
55
+        return view('roles.edit');
56 56
     }
57 57
 
58 58
     public function store()
Please login to merge, or discard this patch.