@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function ajaxmovies(Request $request) |
37 | 37 | { |
38 | 38 | $validator = Validator::make( |
39 | - $request->all(), //request all : tous les elements de requetses |
|
39 | + $request->all(), //request all : tous les elements de requetses |
|
40 | 40 | [ |
41 | 41 | 'title' => 'required|min:10', |
42 | 42 | ], [ |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $executePayment = $payment->execute($paymentExecution, $this->_apiContext); |
78 | 78 | |
79 | 79 | // Clear the shopping cart, write to database, send notifications, etc. |
80 | - $request->session()->pull('likes', []); |
|
80 | + $request->session()->pull('likes', [ ]); |
|
81 | 81 | |
82 | 82 | return view('Main/index'); |
83 | 83 | } |
@@ -97,10 +97,10 @@ discard block |
||
97 | 97 | $videos = collect($collection->find()->toArray())->shuffle(); |
98 | 98 | |
99 | 99 | $collection = new \MongoDB\Collection($manager, 'laravel', 'stats'); |
100 | - $youtubeinfo = collect($collection->find(['origin' => 'Youtube'])->toArray())->first(); |
|
100 | + $youtubeinfo = collect($collection->find([ 'origin' => 'Youtube' ])->toArray())->first(); |
|
101 | 101 | |
102 | 102 | $collection = new \MongoDB\Collection($manager, 'laravel', 'stats'); |
103 | - $tweeterinfo = collect($collection->find(['origin' => 'Twitter', 'type' => 'infos'])->toArray())->first(); |
|
103 | + $tweeterinfo = collect($collection->find([ 'origin' => 'Twitter', 'type' => 'infos' ])->toArray())->first(); |
|
104 | 104 | |
105 | 105 | $actor = new Actors(); // Je récpere mon modèle |
106 | 106 | $comment = new Comments(); // Je récpere mon modèle |
@@ -121,11 +121,11 @@ discard block |
||
121 | 121 | 'avgnotepresse' => $avgnotepresse->avgpress, |
122 | 122 | 'avgacteurs' => $avgacteurs->age, |
123 | 123 | 'videos' => $videos, |
124 | - 'video' => $videos[0], |
|
124 | + 'video' => $videos[ 0 ], |
|
125 | 125 | 'youtubeinfo' => $youtubeinfo->data, |
126 | - 'tweeterinfo' => $tweeterinfo['data'][0], |
|
126 | + 'tweeterinfo' => $tweeterinfo[ 'data' ][ 0 ], |
|
127 | 127 | 'youtubeinfodateupdated' => $youtubeinfo->created, |
128 | - 'tweeterinfodateupdated' => $tweeterinfo['created_at'], |
|
128 | + 'tweeterinfodateupdated' => $tweeterinfo[ 'created_at' ], |
|
129 | 129 | 'avghour' => $avghour->avghour, |
130 | 130 | 'nbacteurs' => $nbacteurs, |
131 | 131 | 'nbcommentaires' => $nbcommentaires, |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | public function __construct() |
65 | 65 | { |
66 | 66 | // application du middleware guest |
67 | - $this->middleware('guest', ['except' => 'logout']); |
|
67 | + $this->middleware('guest', [ 'except' => 'logout' ]); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -93,9 +93,9 @@ discard block |
||
93 | 93 | protected function create(array $data) |
94 | 94 | { |
95 | 95 | return Administrators::create([ |
96 | - 'name' => $data['name'], |
|
97 | - 'email' => $data['email'], |
|
98 | - 'password' => bcrypt($data['password']), |
|
96 | + 'name' => $data[ 'name' ], |
|
97 | + 'email' => $data[ 'email' ], |
|
98 | + 'password' => bcrypt($data[ 'password' ]), |
|
99 | 99 | ]); |
100 | 100 | } |
101 | 101 |