@@ -35,12 +35,12 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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,7 +110,7 @@ discard block |
||
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 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | return collect($response['Result']['Id']); |
123 | 123 | } |
124 | 124 | |
125 | - return collect($response['Result'])->transform(function ($keywordID) { |
|
125 | + return collect($response['Result'])->transform(function($keywordID) { |
|
126 | 126 | return $keywordID['Id']; |
127 | 127 | }); |
128 | 128 | } |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | if (is_null($keyword['KeywordStats'])) { |
166 | 166 | $modifiedKeyword->keyword_stats = null; |
167 | 167 | } else { |
168 | - $localTrends = collect($keyword['KeywordStats']['LocalSearchTrendsByMonth'])->map(function ($searchVolume, $month) { |
|
168 | + $localTrends = collect($keyword['KeywordStats']['LocalSearchTrendsByMonth'])->map(function($searchVolume, $month) { |
|
169 | 169 | return new StatLocalSearchTrend([ |
170 | 170 | 'month' => strtolower($month), |
171 | 171 | 'search_volume' => ($searchVolume == '-') ? null : $searchVolume, |