@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | | kernel and includes session state, CSRF protection, and more. |
12 | 12 | | |
13 | 13 | */ |
14 | -Route::group(['middleware' => ['web']], function () { |
|
14 | +Route::group([ 'middleware' => [ 'web' ] ], function() { |
|
15 | 15 | |
16 | 16 | Route::auth(); |
17 | 17 | |
@@ -32,12 +32,12 @@ discard block |
||
32 | 32 | /* |
33 | 33 | * BackOffice |
34 | 34 | */ |
35 | - Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function () { |
|
35 | + Route::group([ 'prefix' => 'admin', 'middleware' => 'auth' ], function() { |
|
36 | 36 | |
37 | 37 | /* |
38 | 38 | * Cart Payment |
39 | 39 | */ |
40 | - Route::group(['prefix' => 'cart'], function () { |
|
40 | + Route::group([ 'prefix' => 'cart' ], function() { |
|
41 | 41 | /* |
42 | 42 | * Pages Recapitulatif |
43 | 43 | */ |
@@ -92,9 +92,9 @@ discard block |
||
92 | 92 | /* |
93 | 93 | * COMMENTAIRES |
94 | 94 | */ |
95 | - Route::group(['prefix' => 'comments'], function () { |
|
96 | - Route::get('/index', ['uses' => 'CommentsController@index', 'as' => 'comments.index']); |
|
97 | - Route::post('{id}/update', ['uses' => 'CommentsController@update', 'as' => 'comments.update']); |
|
95 | + Route::group([ 'prefix' => 'comments' ], function() { |
|
96 | + Route::get('/index', [ 'uses' => 'CommentsController@index', 'as' => 'comments.index' ]); |
|
97 | + Route::post('{id}/update', [ 'uses' => 'CommentsController@update', 'as' => 'comments.update' ]); |
|
98 | 98 | |
99 | 99 | /* |
100 | 100 | * Action Like |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | /* |
110 | 110 | * CRUD de Movies |
111 | 111 | */ |
112 | - Route::group(['prefix' => 'movies'], function () { |
|
112 | + Route::group([ 'prefix' => 'movies' ], function() { |
|
113 | 113 | |
114 | 114 | /* |
115 | 115 | * Page index: liste des films |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | }); |
187 | 187 | |
188 | 188 | // CRUD de categories |
189 | - Route::group(['prefix' => 'categories'], function () { |
|
189 | + Route::group([ 'prefix' => 'categories' ], function() { |
|
190 | 190 | |
191 | 191 | Route::get('/index', [ |
192 | 192 | 'as' => 'categories_index', |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | }); |
234 | 234 | |
235 | 235 | // CRUD de actors |
236 | - Route::group(['prefix' => 'actors'], function () { |
|
236 | + Route::group([ 'prefix' => 'actors' ], function() { |
|
237 | 237 | |
238 | 238 | Route::get('/index', [ |
239 | 239 | 'as' => 'actors_index', |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | }); |
259 | 259 | |
260 | 260 | // CRUD de directors |
261 | - Route::group(['prefix' => 'directors'], function () { |
|
261 | + Route::group([ 'prefix' => 'directors' ], function() { |
|
262 | 262 | |
263 | 263 | Route::get('/index', [ |
264 | 264 | 'as' => 'directors_delete', |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | |
283 | 283 | }); |
284 | 284 | |
285 | - Route::group(['prefix' => 'api'], function () { |
|
285 | + Route::group([ 'prefix' => 'api' ], function() { |
|
286 | 286 | |
287 | 287 | // mon retour en JSON de mes catégories |
288 | 288 | Route::get('/categories', [ |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | }); |
299 | 299 | |
300 | 300 | // CRUD de administrators |
301 | - Route::group(['prefix' => 'administrators', 'middleware' => 'authorisation'], function () { |
|
301 | + Route::group([ 'prefix' => 'administrators', 'middleware' => 'authorisation' ], function() { |
|
302 | 302 | |
303 | 303 | Route::get('/index', [ |
304 | 304 | 'as' => 'administrators_index', |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | /* |
347 | 347 | * Page FAQ |
348 | 348 | */ |
349 | - Route::get('/faq', function () { |
|
349 | + Route::get('/faq', function() { |
|
350 | 350 | |
351 | 351 | return view('Pages/faq'); |
352 | 352 | }); |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | /* |
355 | 355 | * Page about |
356 | 356 | */ |
357 | - Route::get('/about', function () { |
|
357 | + Route::get('/about', function() { |
|
358 | 358 | |
359 | 359 | // retourne le nom de la vue |
360 | 360 | return view('Pages/about'); |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | /* |
364 | 364 | * Pages concept |
365 | 365 | */ |
366 | - Route::get('/concept', function () { |
|
366 | + Route::get('/concept', function() { |
|
367 | 367 | |
368 | 368 | // retourne le nom de la vue |
369 | 369 | return view('Pages/concept'); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | if (!empty($channel)) { |
49 | 49 | $manager = new \MongoDB\Driver\Manager("mongodb://localhost:27017"); |
50 | 50 | $collection = new \MongoDB\Collection($manager, "laravel.stats"); |
51 | - $collection->deleteMany([]); |
|
51 | + $collection->deleteMany([ ]); |
|
52 | 52 | |
53 | 53 | $collection = new \MongoDB\Collection($manager, "laravel.stats"); |
54 | 54 | $stat = [ |
@@ -67,11 +67,11 @@ discard block |
||
67 | 67 | 'maxResults' => 30, |
68 | 68 | ]; |
69 | 69 | |
70 | - $videos = Yt::searchAdvanced($params, true)['results']; |
|
70 | + $videos = Yt::searchAdvanced($params, true)[ 'results' ]; |
|
71 | 71 | |
72 | 72 | if (!empty($videos)) { |
73 | 73 | $collection = new \MongoDB\Collection($manager, "laravel.videos"); |
74 | - $collection->deleteMany([]); |
|
74 | + $collection->deleteMany([ ]); |
|
75 | 75 | |
76 | 76 | foreach ($videos as $video) { |
77 | 77 | $collection = new \MongoDB\Collection($manager, "laravel.videos"); |