Completed
Push — master ( 86b8cf...f1c40c )
by Julien
12:06
created
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function map(Router $router)
39 39
     {
40
-        $router->group(['namespace' => $this->namespace], function ($router) {
40
+        $router->group([ 'namespace' => $this->namespace ], function($router) {
41 41
             require app_path('Http/routes.php');
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
app/Http/Controllers/AdministratorsController.php 1 patch
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.
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/Auth/AuthController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         //exit('coucou');
64 64
 
65 65
         // application du middleware guest
66
-        $this->middleware('guest', ['except' => 'getLogout']);
66
+        $this->middleware('guest', [ 'except' => 'getLogout' ]);
67 67
     }
68 68
 
69 69
     /**
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
     protected function create(array $data)
91 91
     {
92 92
         return Administrators::create([
93
-            'name' => $data['name'],
94
-            'email' => $data['email'],
95
-            'password' => bcrypt($data['password']),
93
+            'name' => $data[ 'name' ],
94
+            'email' => $data[ 'email' ],
95
+            'password' => bcrypt($data[ 'password' ]),
96 96
         ]);
97 97
     }
98 98
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function getLogin()
104 104
     {
105
-        return view('Auth/login', ['errors' => []]);
105
+        return view('Auth/login', [ 'errors' => [ ] ]);
106 106
     }
107 107
 
108 108
 
Please login to merge, or discard this patch.
app/Console/Kernel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
     protected function schedule(Schedule $schedule)
34 34
     {
35 35
         $schedule->command('email:send [email protected] Boyer')
36
-                 ->everyMinute();
36
+                    ->everyMinute();
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
app/Console/Commands/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $email = $this->argument('email');
31 31
         $nom = $this->argument('nom');
32
-        Mail::send('Emails/welcome', [], function ($m) use ($email, $nom) {
32
+        Mail::send('Emails/welcome', [ ], function($m) use ($email, $nom) {
33 33
             $m->from('[email protected]', 'Julien Boyer')
34 34
                 ->to($email, $nom)
35 35
                 ->subject('Welcome to the site ');
Please login to merge, or discard this patch.
app/Http/Cart/CartServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function register()
31 31
     {
32
-        $this->app->singleton(Cart::class, function ($app) {
32
+        $this->app->singleton(Cart::class, function($app) {
33 33
             return new Cart();
34 34
         });
35 35
     }
Please login to merge, or discard this patch.
app/Console/Commands/LastMovies.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             $users = $movie->actors();
50 50
             foreach ($users as $user) {
51 51
                 //send an email
52
-                Mail::send('Emails/newsletter', [], function ($m) {
52
+                Mail::send('Emails/newsletter', [ ], function($m) {
53 53
 
54 54
                     $m->from('[email protected]', 'Florent Boyer');
55 55
                     $m->to('[email protected]', 'Boyer Julien')
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@  discard block
 block discarded – undo
26 26
 /*
27 27
  * BackOffice
28 28
  */
29
-Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function () {
29
+Route::group([ 'prefix' => 'admin', 'middleware' => 'auth' ], function() {
30 30
 
31 31
     /*
32 32
      * Cart Payment
33 33
      */
34
-    Route::group(['prefix' => 'cart'], function () {
34
+    Route::group([ 'prefix' => 'cart' ], function() {
35 35
         /*
36 36
          * Pages Recapitulatif
37 37
          */
@@ -86,9 +86,9 @@  discard block
 block discarded – undo
86 86
     /*
87 87
      * COMMENTAIRES
88 88
      */
89
-    Route::group(['prefix' => 'comments'], function () {
90
-        Route::get('/index', ['uses' => 'CommentsController@index', 'as' => 'comments.index']);
91
-        Route::post('{id}/update', ['uses' => 'CommentsController@update', 'as' => 'comments.update']);
89
+    Route::group([ 'prefix' => 'comments' ], function() {
90
+        Route::get('/index', [ 'uses' => 'CommentsController@index', 'as' => 'comments.index' ]);
91
+        Route::post('{id}/update', [ 'uses' => 'CommentsController@update', 'as' => 'comments.update' ]);
92 92
 
93 93
         /*
94 94
          * Action Like
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /*
104 104
      * CRUD de Movies
105 105
      */
106
-    Route::group(['prefix' => 'movies'], function () {
106
+    Route::group([ 'prefix' => 'movies' ], function() {
107 107
 
108 108
         /*
109 109
          * Page index: liste des films
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     });
181 181
 
182 182
 // CRUD de categories
183
-    Route::group(['prefix' => 'categories'], function () {
183
+    Route::group([ 'prefix' => 'categories' ], function() {
184 184
 
185 185
         Route::get('/index', [
186 186
             'as'   => 'categories_index',
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     });
228 228
 
229 229
 // CRUD de actors
230
-    Route::group(['prefix' => 'actors'], function () {
230
+    Route::group([ 'prefix' => 'actors' ], function() {
231 231
 
232 232
         Route::get('/index', [
233 233
             'as'   => 'actors_index',
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     });
253 253
 
254 254
 // CRUD de directors
255
-    Route::group(['prefix' => 'directors'], function () {
255
+    Route::group([ 'prefix' => 'directors' ], function() {
256 256
 
257 257
         Route::get('/index', [
258 258
             'as'   => 'directors_delete',
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 
277 277
     });
278 278
 
279
-    Route::group(['prefix' => 'api'], function () {
279
+    Route::group([ 'prefix' => 'api' ], function() {
280 280
 
281 281
         // mon retour en JSON de mes catégories
282 282
         Route::get('/categories', [
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
     });
293 293
 
294 294
     // CRUD de administrators
295
-    Route::group(['prefix' => 'administrators',    'middleware' => 'authorisation'], function () {
295
+    Route::group([ 'prefix' => 'administrators', 'middleware' => 'authorisation' ], function() {
296 296
 
297 297
         Route::get('/index', [
298 298
             'as'   => 'administrators_index',
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 /*
341 341
  * Page FAQ
342 342
  */
343
-Route::get('/faq', function () {
343
+Route::get('/faq', function() {
344 344
 
345 345
     return view('Pages/faq');
346 346
 });
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 /*
349 349
  * Page about
350 350
  */
351
-Route::get('/about', function () {
351
+Route::get('/about', function() {
352 352
 
353 353
     // retourne le nom de la vue
354 354
     return view('Pages/about');
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 /*
358 358
  * Pages concept
359 359
  */
360
-Route::get('/concept', function () {
360
+Route::get('/concept', function() {
361 361
 
362 362
     // retourne le nom de la vue
363 363
     return view('Pages/concept');
Please login to merge, or discard this patch.