Completed
Push — master ( 86b8cf...f1c40c )
by Julien
12:06
created
app/Console/Commands/Twitter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.