Completed
Pull Request — master (#1)
by
unknown
03:33
created
app/Console/Kernel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
     protected function schedule(Schedule $schedule)
26 26
     {
27 27
         $schedule->command('inspire')
28
-                 ->hourly();
28
+                    ->hourly();
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
app/Http/Controllers/AdministratorsController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 
91 91
         $administrator->save();
92 92
 
93
-       // Auth::login($administrator); => Autologin
93
+        // Auth::login($administrator); => Autologin
94 94
         Session::flash('success', "L'administrateur {$administrator->email} a bien été crée");
95 95
         return Redirect::route('administrators_index');
96 96
 
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/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/Models/Actors.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         //1ere methode: Utilisation de MYSQL
38 38
         // marche mais n'est peu souple
39
-         /*
39
+            /*
40 40
           * $results = DB::select('
41 41
             SELECT ROUND(AVG(TIMESTAMPDIFF(YEAR,dob, NOW()))) as age
42 42
             FROM actors
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         // MAITRISE
61 61
 
62
-          $results = DB::table('actors')
62
+            $results = DB::table('actors')
63 63
             ->select(DB::raw('ROUND(AVG(TIMESTAMPDIFF(YEAR,dob, NOW()))) as age'))
64 64
             ->first();
65 65
 
Please login to merge, or discard this patch.
app/Http/Controllers/MainController.php 1 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.