Completed
Pull Request — master (#1)
by
unknown
03:33
created
app/Http/Controllers/AdministratorsController.php 2 patches
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\Http\Models\Administrators;
6 6
 use App\Http\Requests\AdministratorsRequest;
7
-use Illuminate\Http\Request;
8 7
 use Illuminate\Support\Facades\Auth;
9 8
 use Illuminate\Support\Facades\Redirect;
10 9
 use Illuminate\Support\Facades\Session;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
                 'password' => 'required|confirmed|min:6',
36 36
                 'image' => 'required|image',
37 37
             ];
38
-        }else{
38
+        } else{
39 39
             return [
40 40
                 'firstname' => 'required|max:255',
41 41
                 'lastname' => 'required|max:255',
Please login to merge, or discard this patch.
app/Http/Models/Administrators.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,12 +3,9 @@
 block discarded – undo
3 3
 namespace App\Http\Models;
4 4
 
5 5
 use Illuminate\Database\Eloquent\Model;
6
-
7
-
8 6
 use Illuminate\Auth\Authenticatable;
9 7
 use Illuminate\Foundation\Auth\Access\Authorizable;
10 8
 use Illuminate\Auth\Passwords\CanResetPassword;
11
-
12 9
 use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
13 10
 use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
14 11
 use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
Please login to merge, or discard this patch.
app/Http/Requests/AdministratorsRequest.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,11 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Requests;
4 4
 
5
-use App\Http\Models\Administrators;
6 5
 use Illuminate\Foundation\Http\FormRequest;
7
-use Illuminate\Support\Facades\Auth;
8
-
9
-use Illuminate\Support\Facades\Request;
10 6
 
11 7
 /**
12 8
  * Class AdministratorsRequest
Please login to merge, or discard this patch.
app/Http/Controllers/MoviesController.php 1 patch
Braces   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@  discard block
 block discarded – undo
92 92
             $movie->visible = 1;
93 93
             Session::flash("success","Le film {$movie->title} a bien été activé");
94 94
 
95
-        }
96
-        else{
95
+        } else{
97 96
             $movie->visible = 0;
98 97
             Session::flash("success","Le film {$movie->title} a bien été desactivé");
99 98
         }
@@ -117,8 +116,7 @@  discard block
 block discarded – undo
117 116
             $movie->cover = 1;
118 117
             Session::flash("success","Le film {$movie->title} a bien été mis en avant");
119 118
 
120
-        }
121
-        else{
119
+        } else{
122 120
             $movie->cover = 0;
123 121
             Session::flash("danger","Le film {$movie->title} a bien été retiré de l'avant");
124 122
         }
@@ -160,7 +158,7 @@  discard block
 block discarded – undo
160 158
 
161 159
             $likes[$id] = $movie->id;
162 160
 
163
-        }else{
161
+        } else{
164 162
             unset($likes[$id]);
165 163
         }
166 164
         Session::put("likes", $likes);
Please login to merge, or discard this patch.
app/Policies/SuperAdminPolicy.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         if($administrator->super_admin == true){
24 24
             return true;
25
-        }else{
25
+        } else{
26 26
             return false;
27 27
         }
28 28
     }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         // si j'ai expiration au niveau des date d'expiratio n
39 39
         if($administrator->expiration_date > date('Y-m-d')){
40 40
             return true;
41
-        }else{
41
+        } else{
42 42
             return false;
43 43
         }
44 44
     }
Please login to merge, or discard this patch.
app/Http/Controllers/MainController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use App\Http\Models\Movies;
7 7
 use App\Http\Models\Sessions;
8 8
 use App\Http\Models\User;
9
-use Carbon\Carbon;
10 9
 use Illuminate\Http\Request;
11 10
 use Illuminate\Support\Facades\DB;
12 11
 use Illuminate\Support\Facades\Validator;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
                 'password' => 'required|confirmed|min:6',
36 36
                 'image' => 'required|image',
37 37
             ];
38
-        }else{
38
+        } else{
39 39
             return [
40 40
                 'firstname' => 'required|max:255',
41 41
                 'lastname' => 'required|max:255',
Please login to merge, or discard this patch.