@@ -79,7 +79,7 @@ |
||
| 79 | 79 | * Create a new user instance after a valid registration. |
| 80 | 80 | * |
| 81 | 81 | * @param array $data |
| 82 | - * @return User |
|
| 82 | + * @return Administrators |
|
| 83 | 83 | */ |
| 84 | 84 | protected function create(array $data) |
| 85 | 85 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | /** |
| 71 | 71 | * Pour la suppression, il n'y a pas de vue dédiée. |
| 72 | 72 | * On redirige donc vers l'index. |
| 73 | - * @return \Illuminate\View\View |
|
| 73 | + * @return \Illuminate\Http\RedirectResponse |
|
| 74 | 74 | */ |
| 75 | 75 | public function delete($id) |
| 76 | 76 | { |
@@ -148,7 +148,6 @@ |
||
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | 150 | * Fonction de like des films, enregistré en session |
| 151 | - * @param Request $request |
|
| 152 | 151 | */ |
| 153 | 152 | public function like($id, $action) |
| 154 | 153 | { |
@@ -92,8 +92,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |
@@ -22,7 +22,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -35,7 +35,7 @@ |
||
| 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', |
@@ -35,7 +35,7 @@ |
||
| 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', |