Test Setup Failed
Push — master ( b06239...c96282 )
by Felix
09:52
created
src/Api/StatKeywords.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,12 +35,12 @@  discard block
 block discarded – undo
35 35
 
36 36
             $keywords = $keywords->merge($response['Result']);
37 37
 
38
-            if (! isset($response['nextpage'])) {
38
+            if (!isset($response['nextpage'])) {
39 39
                 break;
40 40
             }
41 41
         } while ($response['resultsreturned'] < $response['totalresults']);
42 42
 
43
-        $keywords = $keywords->transform(function ($keyword) {
43
+        $keywords = $keywords->transform(function($keyword) {
44 44
             return $this->transformListedKeyword($keyword);
45 45
         });
46 46
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $arguments['device'] = $device;
64 64
         $arguments['type'] = 'regular';
65 65
 
66
-        $keywords = array_map(function ($keyword) {
66
+        $keywords = array_map(function($keyword) {
67 67
             $keyword = str_replace(',', '\,', $keyword);
68 68
             $keyword = rawurlencode($keyword);
69 69
 
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
         }, $keywords);
72 72
         $arguments['keyword'] = implode(',', $keywords);
73 73
 
74
-        if (! is_null($tags) && count($tags) > 0) {
75
-            $tags = array_map(function ($tag) {
74
+        if (!is_null($tags) && count($tags) > 0) {
75
+            $tags = array_map(function($tag) {
76 76
                 $tag = str_replace(',', '-', $tag);
77 77
                 $tag = rawurlencode($tag);
78 78
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $arguments['tag'] = implode(',', $tags);
83 83
         }
84 84
 
85
-        if (! is_null($location) && $location != '') {
85
+        if (!is_null($location) && $location != '') {
86 86
             $arguments['location'] = $location;
87 87
         }
88 88
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             $keywords = collect($response['Result']);
100 100
         }
101 101
 
102
-        return $keywords->transform(function ($keyword) {
102
+        return $keywords->transform(function($keyword) {
103 103
             return $this->transformCreatedKeyword($keyword);
104 104
         });
105 105
     }
@@ -110,11 +110,11 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function delete($id)
112 112
     {
113
-        if (! is_array($id)) {
113
+        if (!is_array($id)) {
114 114
             $id = [$id];
115 115
         }
116 116
 
117
-        if(!array_filter($id)) {
117
+        if (!array_filter($id)) {
118 118
             return new Collection();
119 119
         }
120 120
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             return collect($response['Result']['Id']);
127 127
         }
128 128
 
129
-        return collect($response['Result'])->transform(function ($keywordID) {
129
+        return collect($response['Result'])->transform(function($keywordID) {
130 130
             return $keywordID['Id'];
131 131
         });
132 132
     }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         if (is_null($keyword['KeywordStats'])) {
170 170
             $modifiedKeyword->keyword_stats = null;
171 171
         } else {
172
-            $localTrends = collect($keyword['KeywordStats']['LocalSearchTrendsByMonth'])->map(function ($searchVolume, $month) {
172
+            $localTrends = collect($keyword['KeywordStats']['LocalSearchTrendsByMonth'])->map(function($searchVolume, $month) {
173 173
                 return new StatLocalSearchTrend([
174 174
                     'month' => strtolower($month),
175 175
                     'search_volume' => ($searchVolume == '-') ? null : $searchVolume,
Please login to merge, or discard this patch.