Completed
Push — master ( eda44c...015a60 )
by Glenn
05:01 queued 02:28
created
app/Http/Requests/PasswordValidation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
      */
27 27
     public function rules()
28 28
     {
29
-        return ['password' => 'required|min:6|confirmed'];
29
+        return [ 'password' => 'required|min:6|confirmed' ];
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
app/Http/Controllers/ProfileController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@  discard block
 block discarded – undo
29 29
     public function updateProfile(Requests\ProfileValidator $input)
30 30
     {
31 31
         // User information
32
-        User::find(auth()->user()->id)->update($input->except(['_token', 'avatar']));
32
+        User::find(auth()->user()->id)->update($input->except([ '_token', 'avatar' ]));
33 33
 
34 34
         // User image information.
35 35
         if (Input::file()) {
36 36
             $image    = Input::file('avatar');
37
-            $filename = time() . '.' . $image->getClientOriginalExtension();
38
-            $path     = public_path('profilepics/' . $filename);
37
+            $filename = time().'.'.$image->getClientOriginalExtension();
38
+            $path     = public_path('profilepics/'.$filename);
39 39
             
40 40
             Image::make($image->getRealPath())->resize(80, 80)->save($path);
41 41
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function updateSecurity(Requests\PasswordValidation $input)
58 58
     {
59
-        $data['password'] = bcrypt($input->password);
59
+        $data[ 'password' ] = bcrypt($input->password);
60 60
 
61 61
         User::find(auth()->user()->id)->update($data);
62 62
         session()->flash('message', 'Your password has been updated.');
Please login to merge, or discard this patch.
app/Roles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,5 +19,5 @@
 block discarded – undo
19 19
      *
20 20
      * @var array
21 21
      */
22
-    protected $fillable = ['name'];
22
+    protected $fillable = [ 'name' ];
23 23
 }
Please login to merge, or discard this patch.
app/Http/Controllers/RolesController.php 1 patch
Spacing   +6 added lines, -10 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function index()
18 18
     {
19
-    	$data['roles'] = Roles::all();
19
+    	$data[ 'roles' ] = Roles::all();
20 20
     	return view('roles.index', $data);
21 21
     }
22 22
 
23
-<<<<<<< HEAD
23
+<< << <<< HEAD
24 24
     /**
25 25
      * Search for a specific role.
26 26
      *
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     public function search(Request $request)
31 31
     {
32 32
         $term = $request->get('term');
33
-        $data['roles'] = Roles::where('name', 'LIKE', "$term")->get();
33
+        $data[ 'roles'] = Roles::where('name', 'LIKE', "$term")->get();
34 34
         return view('roles.index', $data);
35 35
     }
36 36
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function show($id)
44 44
     {
45
-        $data['query'] = Roles::find($id);
45
+        $data[ 'query'] = Roles::find($id);
46 46
         return view('roles.specific', $data);
47 47
     }
48 48
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function edit($id)
82 82
     {
83
-        $data['query'] = Roles::find($id);
83
+        $data[ 'query'] = Roles::find($id);
84 84
         return view('roles.edit', $data);
85 85
     }
86 86
 
@@ -102,8 +102,4 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function destroy($id)
104 104
     {
105
-        Roles::destroy($id);
106
-        session()->flash('message', 'Role deleted');
107
-        return redirect()->back(302);
108
-    }
109
-}
105
+        Roles::destroy($id
110 106
\ No newline at end of file
Please login to merge, or discard this patch.