@@ -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"); |