@@ -21,7 +21,7 @@ |
||
21 | 21 | return collect(); |
22 | 22 | } |
23 | 23 | |
24 | - $tags = collect($response['Result'])->transform(function ($item, $key) { |
|
24 | + $tags = collect($response['Result'])->transform(function($item, $key) { |
|
25 | 25 | if ($item['Keywords'] == 'none') { |
26 | 26 | $item['Keywords'] = collect(); |
27 | 27 | } else { |
@@ -67,7 +67,7 @@ |
||
67 | 67 | $sites = collect($response['Result']); |
68 | 68 | } |
69 | 69 | |
70 | - $sites->transform(function ($site, $key) use ($projectID) { |
|
70 | + $sites->transform(function($site, $key) use ($projectID) { |
|
71 | 71 | return new StatSite([ |
72 | 72 | 'id' => $site['Id'], |
73 | 73 | 'project_id' => $projectID, |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $bulkJobs = collect($response['Result']); |
35 | 35 | } |
36 | 36 | |
37 | - return $bulkJobs->transform(function ($job, $key) { |
|
37 | + return $bulkJobs->transform(function($job, $key) { |
|
38 | 38 | return new StatBulkJob([ |
39 | 39 | 'id' => $job['Id'], |
40 | 40 | 'job_type' => $job['JobType'], |
@@ -68,16 +68,16 @@ discard block |
||
68 | 68 | $arguments['currently_tracked_only'] = $currentlyTrackedOnly; |
69 | 69 | $arguments['crawled_keywords_only'] = $crawledKeywordsOnly; |
70 | 70 | |
71 | - if (! is_null($sites) && count($sites) > 0) { |
|
71 | + if (!is_null($sites) && count($sites) > 0) { |
|
72 | 72 | $arguments['site_id'] = implode(',', $sites); |
73 | 73 | ; |
74 | 74 | } |
75 | - if (! is_null($engines) && count($engines) > 0) { |
|
75 | + if (!is_null($engines) && count($engines) > 0) { |
|
76 | 76 | $arguments['engines'] = implode(',', $engines); |
77 | 77 | } |
78 | 78 | $response = $this->performQuery('bulk/ranks', $arguments); |
79 | 79 | |
80 | - return (int) $response['Result']['Id']; |
|
80 | + return (int)$response['Result']['Id']; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | public function status($bulkJobID) |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $jobStatus->sites = collect(); |
94 | 94 | if (isset($response['Result']['SiteId'])) { |
95 | 95 | $jobStatus->sites = collect(explode(',', $response['Result']['SiteId'])) |
96 | - ->transform(function ($site, $key) { |
|
96 | + ->transform(function($site, $key) { |
|
97 | 97 | return (int)$site; |
98 | 98 | }); |
99 | 99 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $this->validateBulkDate($date); |
128 | 128 | |
129 | 129 | $response = $this->performQuery('bulk/tag_ranking_distributions', ['date' => $date->toDateString()]); |
130 | - return (int) $response['Result']['Id']; |
|
130 | + return (int)$response['Result']['Id']; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | public function get($bulkJobID) |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | if ($project['TotalSites'] > 1) { |
184 | 184 | $transformedProject->sites = collect($project['Site']); |
185 | 185 | } |
186 | - $transformedProject->sites->transform(function ($site, $key) { |
|
186 | + $transformedProject->sites->transform(function($site, $key) { |
|
187 | 187 | return $this->transformSite($site); |
188 | 188 | }); |
189 | 189 | |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | $transformedSite->created_at = $site['CreatedAt']; |
201 | 201 | |
202 | 202 | if (array_key_exists('Keyword', $site)) { |
203 | - $transformedSite->keywords = collect($site['Keyword'])->transform(function ($keyword, $key) { |
|
203 | + $transformedSite->keywords = collect($site['Keyword'])->transform(function($keyword, $key) { |
|
204 | 204 | return $this->transformKeyword($keyword); |
205 | 205 | }); |
206 | 206 | } |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | } |
211 | 211 | |
212 | 212 | if (array_key_exists('Tag', $site)) { |
213 | - $transformedSite->tags = $this->getCollection($site['Tag'])->transform(function ($tag, $key) { |
|
213 | + $transformedSite->tags = $this->getCollection($site['Tag'])->transform(function($tag, $key) { |
|
214 | 214 | return $this->transformTag($tag); |
215 | 215 | }); |
216 | 216 | } |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | if (is_null($keyword['KeywordStats'])) { |
239 | 239 | $modifiedKeyword->keyword_stats = null; |
240 | 240 | } else { |
241 | - $localTrends = collect($keyword['KeywordStats']['LocalSearchTrendsByMonth'])->map(function ($searchVolume, $month) { |
|
241 | + $localTrends = collect($keyword['KeywordStats']['LocalSearchTrendsByMonth'])->map(function($searchVolume, $month) { |
|
242 | 242 | return new StatLocalSearchTrend([ |
243 | 243 | 'month' => strtolower($month), |
244 | 244 | 'search_volume' => ($searchVolume == '-') ? null : $searchVolume, |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | |
289 | 289 | $rankings = $this->getCollection($rankingForEngine['Result'], 'Rank'); |
290 | 290 | |
291 | - $rankings->transform(function ($ranking, $key) { |
|
291 | + $rankings->transform(function($ranking, $key) { |
|
292 | 292 | return $this->transformRanking($ranking); |
293 | 293 | }); |
294 | 294 |