@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $response['Result'] = [$response['Result']]; |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | - $projects = collect($response['Result'])->map(function ($project) { |
|
| 21 | + $projects = collect($response['Result'])->map(function($project) { |
|
| 22 | 22 | return new StatProject([ |
| 23 | 23 | 'id' => $project['Id'], |
| 24 | 24 | 'name' => $project['Name'], |
@@ -30,12 +30,12 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | $sites = $sites->merge($response['Result']); |
| 32 | 32 | |
| 33 | - if (! isset($response['nextpage'])) { |
|
| 33 | + if (!isset($response['nextpage'])) { |
|
| 34 | 34 | break; |
| 35 | 35 | } |
| 36 | 36 | } while ($response['resultsreturned'] < $response['totalresults']); |
| 37 | 37 | |
| 38 | - $sites->transform(function ($site) { |
|
| 38 | + $sites->transform(function($site) { |
|
| 39 | 39 | return new StatSite([ |
| 40 | 40 | 'id' => $site['Id'], |
| 41 | 41 | 'project_id' => $site['ProjectId'], |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $sites = collect($response['Result']); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - $sites->transform(function ($site) use ($projectID) { |
|
| 77 | + $sites->transform(function($site) use ($projectID) { |
|
| 78 | 78 | return new StatSite([ |
| 79 | 79 | 'id' => $site['Id'], |
| 80 | 80 | 'project_id' => $projectID, |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $rankDistribution = collect([$response['RankDistribution']]); |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | - $rankDistribution->transform(function ($distribution) { |
|
| 113 | + $rankDistribution->transform(function($distribution) { |
|
| 114 | 114 | return $this->transformRankDistribution($distribution); |
| 115 | 115 | }); |
| 116 | 116 | |
@@ -152,19 +152,19 @@ discard block |
||
| 152 | 152 | $arguments = []; |
| 153 | 153 | $arguments['id'] = $siteID; |
| 154 | 154 | |
| 155 | - if (! is_null($title)) { |
|
| 155 | + if (!is_null($title)) { |
|
| 156 | 156 | $arguments['title'] = rawurlencode($title); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - if (! is_null($url)) { |
|
| 159 | + if (!is_null($url)) { |
|
| 160 | 160 | $arguments['url'] = rawurlencode($url); |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | - if (! is_null($dropWWWprefix)) { |
|
| 163 | + if (!is_null($dropWWWprefix)) { |
|
| 164 | 164 | $arguments['drop_www_prefix'] = ($dropWWWprefix) ?: 0; |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | - if (! is_null($dropDirectories)) { |
|
| 167 | + if (!is_null($dropDirectories)) { |
|
| 168 | 168 | $arguments['drop_directories'] = ($dropDirectories) ?: 0; |
| 169 | 169 | } |
| 170 | 170 | |
@@ -209,15 +209,15 @@ discard block |
||
| 209 | 209 | $start += 5000; |
| 210 | 210 | $sovSites = $sovSites->merge($response['ShareOfVoice']); |
| 211 | 211 | |
| 212 | - if (! isset($response['nextpage'])) { |
|
| 212 | + if (!isset($response['nextpage'])) { |
|
| 213 | 213 | break; |
| 214 | 214 | } |
| 215 | 215 | } while ($response['resultsreturned'] < $response['totalresults']); |
| 216 | 216 | |
| 217 | - $sovSites->transform(function ($sov) { |
|
| 217 | + $sovSites->transform(function($sov) { |
|
| 218 | 218 | $shareOfVoice = new StatShareOfVoice([ |
| 219 | 219 | 'date' => $sov['date'], |
| 220 | - 'sites' => collect($sov['Site'])->transform(function ($site) { |
|
| 220 | + 'sites' => collect($sov['Site'])->transform(function($site) { |
|
| 221 | 221 | return new StatShareOfVoiceSite([ |
| 222 | 222 | 'domain' => $site['Domain'], |
| 223 | 223 | 'share' => (float) $site['Share'], |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | { |
| 242 | 242 | $response = $this->performQuery('sites/most_frequent_domains', ['id' => $siteID, 'engine' => $engine]); |
| 243 | 243 | |
| 244 | - $domains = collect($response['Site'])->transform(function ($site) { |
|
| 244 | + $domains = collect($response['Site'])->transform(function($site) { |
|
| 245 | 245 | return new StatFrequentDomain([ |
| 246 | 246 | 'domain' => Arr::get($site, 'Domain'), |
| 247 | 247 | 'top_ten_results' => Arr::get($site, 'TopTenResults'), |