Completed
Push — master ( 05378f...53bf0b )
by Johnny
36:25 queued 32:00
created
app/Http/Controllers/Admin/DashboardController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers\Admin;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use App\Http\Controllers\Controller;
7 6
 use App\Link;
8 7
 use App\User;
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/LinksController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      *
42 42
      * @param Link $link
43 43
      *
44
-     * @return \Illuminate\Http\Response
44
+     * @return \Illuminate\Http\RedirectResponse
45 45
      * @internal param int $id
46 46
      */
47 47
     public function destroy(Link $link)
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,12 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers\Admin;
4 4
 
5
-use App\Http\Requests\Admin\LinksRequest;
6
-use App\Session\Flash;
7
-use Illuminate\Http\Request;
5
+use App\Hit;
8 6
 use App\Http\Controllers\Controller;
9 7
 use App\Link;
10
-use App\Hit;
8
+use App\Session\Flash;
11 9
 
12 10
 class LinksController extends Controller
13 11
 {
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/UsersController.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *
42 42
      * @param UserRequest|Request $request
43 43
      *
44
-     * @return \Illuminate\Http\Response
44
+     * @return \Illuminate\Http\RedirectResponse
45 45
      */
46 46
     public function store(UserRequest $request)
47 47
     {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param UserRequest|Request $request
95 95
      * @param User $user
96 96
      *
97
-     * @return \Illuminate\Http\Response
97
+     * @return \Illuminate\Http\RedirectResponse
98 98
      * @internal param int $id
99 99
      */
100 100
     public function update(UserRequest $request, User $user)
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      *
125 125
      * @param User $user
126 126
      *
127
-     * @return \Illuminate\Http\Response
127
+     * @return \Illuminate\Http\RedirectResponse
128 128
      * @internal param int $id
129 129
      */
130 130
     public function destroy(User $user)
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 use App\Http\Requests\Admin\UserRequest;
7 7
 use App\Notifications\EmailVerification;
8 8
 use App\Role;
9
+use App\Session\Flash;
9 10
 use App\User;
10 11
 use Illuminate\Http\Request;
11
-use App\Session\Flash;
12 12
 use Illuminate\Support\Facades\Hash;
13 13
 
14 14
 class UsersController extends Controller
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     {
102 102
         $user->fill(['name' => $request->name, 'email' => $request->email, 'activated' => $request->activated])->save();
103 103
 
104
-        if (!empty($request->password)) {
104
+        if ( ! empty($request->password)) {
105 105
             $user->password = Hash::make($request->password);
106 106
         }
107 107
 
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 Route::get('/logout', ['as' => 'user.logout', 'uses' => 'Auth\LoginController@logout']);
21 21
 
22
-Route::get('/home', function () {
22
+Route::get('/home', function() {
23 23
     return redirect()->route('url_create');
24 24
 })->middleware('auth')->name('home');
25 25
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 Route::group([
30 30
     'prefix' => '/admin',
31 31
     'middleware' => ['auth'],
32
-], function () {
32
+], function() {
33 33
     Route::resource('links', 'Admin\LinksController', [
34 34
         'names' => [
35 35
             'index' => 'admin.links.index',
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 Route::group([
57 57
     'prefix' => '/dashboard',
58 58
     'middleware' => ['auth'],
59
-], function () {
59
+], function() {
60 60
     Route::resource('links', 'UserDashboardController');
61 61
 });
62 62
 
Please login to merge, or discard this patch.