@@ -29,7 +29,7 @@ |
||
| 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 '); |
@@ -29,7 +29,7 @@ |
||
| 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 | } |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * Handle the event. |
| 22 | 22 | * |
| 23 | - * @param Events $event |
|
| 24 | 23 | */ |
| 25 | 24 | public function handle(Administrators $user) |
| 26 | 25 | { |
@@ -49,7 +49,7 @@ |
||
| 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') |
@@ -15,11 +15,11 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | public function categories() |
| 17 | 17 | { |
| 18 | - $tab = []; |
|
| 18 | + $tab = [ ]; |
|
| 19 | 19 | $categories = Categories::all(); |
| 20 | 20 | |
| 21 | 21 | foreach ($categories as $categorie) { |
| 22 | - $tab[] = |
|
| 22 | + $tab[ ] = |
|
| 23 | 23 | [ |
| 24 | 24 | $categorie->title, |
| 25 | 25 | count($categorie->movies), |
@@ -39,11 +39,11 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | //exit(dump($resultat)); |
| 41 | 41 | |
| 42 | - $tab = []; |
|
| 42 | + $tab = [ ]; |
|
| 43 | 43 | foreach ($resultat as $actor) { |
| 44 | - $tab[] = [ |
|
| 44 | + $tab[ ] = [ |
|
| 45 | 45 | 'name' => $actor->city, |
| 46 | - 'data' => [(int) $actor->nb], |
|
| 46 | + 'data' => [ (int) $actor->nb ], |
|
| 47 | 47 | ]; |
| 48 | 48 | } |
| 49 | 49 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function checkout() |
| 58 | 58 | { |
| 59 | - $ids = session('likes', []); |
|
| 59 | + $ids = session('likes', [ ]); |
|
| 60 | 60 | |
| 61 | 61 | $total = 0; |
| 62 | 62 | foreach ($ids as $id) { |
@@ -83,12 +83,12 @@ discard block |
||
| 83 | 83 | $payment->setIntent('sale'); |
| 84 | 84 | $payment->setPayer($payer); |
| 85 | 85 | $payment->setRedirectUrls($redirectUrls); |
| 86 | - $payment->setTransactions([$transaction]); |
|
| 86 | + $payment->setTransactions([ $transaction ]); |
|
| 87 | 87 | |
| 88 | 88 | //response de Paypal |
| 89 | 89 | $response = $payment->create($this->_apiContext); |
| 90 | 90 | |
| 91 | - $redirectUrl = $response->links[1]->href; |
|
| 91 | + $redirectUrl = $response->links[ 1 ]->href; |
|
| 92 | 92 | |
| 93 | 93 | //redirect to Plateform Paypal |
| 94 | 94 | return Redirect::to($redirectUrl); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $executePayment = $payment->execute($paymentExecution, $this->_apiContext); |
| 122 | 122 | |
| 123 | 123 | // Clear the shopping cart, |
| 124 | - $request->session()->pull('likes', []); |
|
| 124 | + $request->session()->pull('likes', [ ]); |
|
| 125 | 125 | |
| 126 | 126 | //write log |
| 127 | 127 | Log::info('Un client vient de passer uen commande via Paypal'.$payer_id); |
@@ -28,12 +28,12 @@ |
||
| 28 | 28 | * |
| 29 | 29 | * @var array |
| 30 | 30 | */ |
| 31 | - protected $fillable = ['name', 'email', 'password']; |
|
| 31 | + protected $fillable = [ 'name', 'email', 'password' ]; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * The attributes excluded from the model's JSON form. |
| 35 | 35 | * |
| 36 | 36 | * @var array |
| 37 | 37 | */ |
| 38 | - protected $hidden = ['password', 'remember_token']; |
|
| 38 | + protected $hidden = [ 'password', 'remember_token' ]; |
|
| 39 | 39 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class Movies extends Model implements ItemInterface |
| 15 | 15 | { |
| 16 | - protected $fillable = ['title', 'description', 'categories_id']; |
|
| 16 | + protected $fillable = [ 'title', 'description', 'categories_id' ]; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Décrit le nom de la table |
@@ -36,13 +36,13 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | public function handle() |
| 38 | 38 | { |
| 39 | - $infos = \Thujohn\Twitter\Facades\Twitter::getUsersLookup(['screen_name' => 'Symfomany', 'format' => 'php']); |
|
| 39 | + $infos = \Thujohn\Twitter\Facades\Twitter::getUsersLookup([ 'screen_name' => 'Symfomany', 'format' => 'php' ]); |
|
| 40 | 40 | $manager = new \MongoDB\Driver\Manager("mongodb://localhost:27017"); |
| 41 | 41 | $collection = new \MongoDB\Collection($manager, "laravel.tweets"); |
| 42 | 42 | |
| 43 | 43 | if (!empty($infos)) { |
| 44 | 44 | |
| 45 | - $collection->deleteMany(['origin' => 'Twitter', 'type' => 'infos']); |
|
| 45 | + $collection->deleteMany([ 'origin' => 'Twitter', 'type' => 'infos' ]); |
|
| 46 | 46 | |
| 47 | 47 | $stat = [ |
| 48 | 48 | "origin" => "Twitter", |
@@ -54,9 +54,9 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - $tweets = \Thujohn\Twitter\Facades\Twitter::getDmsOut(['format' => 'php']); |
|
| 57 | + $tweets = \Thujohn\Twitter\Facades\Twitter::getDmsOut([ 'format' => 'php' ]); |
|
| 58 | 58 | if (!empty($tweets)) { |
| 59 | - $collection->deleteMany(['origin' => 'Twitter', 'type' => 'dmsout']); |
|
| 59 | + $collection->deleteMany([ 'origin' => 'Twitter', 'type' => 'dmsout' ]); |
|
| 60 | 60 | |
| 61 | 61 | foreach ($tweets as $tweet) { |
| 62 | 62 | $stat = [ |
@@ -69,9 +69,9 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - $tweets = \Thujohn\Twitter\Facades\Twitter::getFavorites(['format' => 'php']); |
|
| 72 | + $tweets = \Thujohn\Twitter\Facades\Twitter::getFavorites([ 'format' => 'php' ]); |
|
| 73 | 73 | if (!empty($tweets)) { |
| 74 | - $collection->deleteMany(['origin' => 'Twitter', 'type' => 'favorites']); |
|
| 74 | + $collection->deleteMany([ 'origin' => 'Twitter', 'type' => 'favorites' ]); |
|
| 75 | 75 | |
| 76 | 76 | foreach ($tweets as $tweet) { |
| 77 | 77 | |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | 'format' => 'php', ]); |
| 93 | 93 | |
| 94 | 94 | if (!empty($tweets)) { |
| 95 | - $collection->deleteMany(['origin' => 'Twitter', 'type' => 'mentionstimeline']); |
|
| 95 | + $collection->deleteMany([ 'origin' => 'Twitter', 'type' => 'mentionstimeline' ]); |
|
| 96 | 96 | |
| 97 | 97 | |
| 98 | 98 | foreach ($tweets as $tweet) { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | ]); |
| 115 | 115 | |
| 116 | 116 | if (!empty($tweets)) { |
| 117 | - $collection->deleteMany(['origin' => 'Twitter', 'type' => 'hometimeline']); |
|
| 117 | + $collection->deleteMany([ 'origin' => 'Twitter', 'type' => 'hometimeline' ]); |
|
| 118 | 118 | |
| 119 | 119 | foreach ($tweets as $tweet) { |
| 120 | 120 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | ]); |
| 137 | 137 | |
| 138 | 138 | if (!empty($tweets)) { |
| 139 | - $collection->deleteMany(['origin' => 'Twitter', 'type' => 'usertimeline']); |
|
| 139 | + $collection->deleteMany([ 'origin' => 'Twitter', 'type' => 'usertimeline' ]); |
|
| 140 | 140 | |
| 141 | 141 | foreach ($tweets as $tweet) { |
| 142 | 142 | |