@@ -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', |