Completed
Push — master ( a197e1...c11aab )
by Julien
25:58 queued 12:07
created
app/Http/Controllers/MainController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use App\Http\Models\User;
9 9
 use Illuminate\Http\Request;
10 10
 use Illuminate\Support\Facades\Validator;
11
-use Netshell\Paypal\Facades\Paypal;
12 11
 
13 12
 
14 13
 /**
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
@@ -94,14 +94,14 @@  discard block
 block discarded – undo
94 94
         $nbseances = Sessions::count();
95 95
 
96 96
         $manager = new \MongoDB\Driver\Manager("mongodb://localhost:27017");
97
-        $collection = new \MongoDB\Collection($manager, "laravel","videos");
97
+        $collection = new \MongoDB\Collection($manager, "laravel", "videos");
98 98
         $videos = collect($collection->find()->toArray())->shuffle();
99 99
 
100
-        $collection = new \MongoDB\Collection($manager, "laravel","stats");
101
-        $youtubeinfo = collect($collection->find(["origin"  => "Youtube"])->toArray())->first();
100
+        $collection = new \MongoDB\Collection($manager, "laravel", "stats");
101
+        $youtubeinfo = collect($collection->find([ "origin"  => "Youtube" ])->toArray())->first();
102 102
 
103
-        $collection = new \MongoDB\Collection($manager, "laravel","stats");
104
-        $tweeterinfo = collect($collection->find(['origin' => 'Twitter', 'type' => 'infos'])->toArray())->first();
103
+        $collection = new \MongoDB\Collection($manager, "laravel", "stats");
104
+        $tweeterinfo = collect($collection->find([ 'origin' => 'Twitter', 'type' => 'infos' ])->toArray())->first();
105 105
 
106 106
         $actor = new Actors(); // Je récpere mon modèle
107 107
         $comment = new Comments(); // Je récpere mon modèle
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
             'avgnotepresse' => $avgnotepresse->avgpress,
125 125
             'avgacteurs' => $avgacteurs->age,
126 126
             'videos' => $videos,
127
-            'video' => $videos[0],
127
+            'video' => $videos[ 0 ],
128 128
             'youtubeinfo' => $youtubeinfo->data,
129
-            'tweeterinfo' => $tweeterinfo['data'][0],
129
+            'tweeterinfo' => $tweeterinfo[ 'data' ][ 0 ],
130 130
             'youtubeinfodateupdated' => $youtubeinfo->created,
131
-            'tweeterinfodateupdated' => $tweeterinfo['created_at'],
131
+            'tweeterinfodateupdated' => $tweeterinfo[ 'created_at' ],
132 132
             'avghour' => $avghour->avghour,
133 133
             'nbacteurs' => $nbacteurs,
134 134
             'nbcommentaires' => $nbcommentaires,
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use App\Http\Requests;
6
-
7 5
 class HomeController extends Controller
8 6
 {
9 7
     /**
Please login to merge, or discard this patch.
app/Console/Commands/Youtube.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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");
Please login to merge, or discard this patch.