@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | public function boot() |
16 | 16 | { |
17 | 17 | $this->publishes([ |
18 | - __DIR__.'/config/laravel-stat-search-analytics.php' => config_path('laravel-stat-search-analytics.php'), |
|
18 | + __DIR__ . '/config/laravel-stat-search-analytics.php' => config_path('laravel-stat-search-analytics.php'), |
|
19 | 19 | ], 'config'); |
20 | 20 | } |
21 | 21 | |
@@ -26,18 +26,18 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function register() |
28 | 28 | { |
29 | - $this->mergeConfigFrom(__DIR__.'/config/laravel-stat-search-analytics.php', 'laravel-stat-search-analytics'); |
|
29 | + $this->mergeConfigFrom(__DIR__ . '/config/laravel-stat-search-analytics.php', 'laravel-stat-search-analytics'); |
|
30 | 30 | |
31 | 31 | $statConfig = config('laravel-stat-search-analytics'); |
32 | 32 | |
33 | - $this->app->bind(StatClient::class, function () use ($statConfig) { |
|
33 | + $this->app->bind(StatClient::class, function() use ($statConfig) { |
|
34 | 34 | if (empty($statConfig['key'])) { |
35 | 35 | throw InvalidConfiguration::keyNotSpecified(); |
36 | 36 | } |
37 | 37 | return StatClientFactory::createForConfig($statConfig); |
38 | 38 | }); |
39 | 39 | |
40 | - $this->app->bind(Stat::class, function () { |
|
40 | + $this->app->bind(Stat::class, function() { |
|
41 | 41 | $client = app(StatClient::class); |
42 | 42 | return new Stat($client); |
43 | 43 | }); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $start += 5000; |
18 | 18 | $sites = $sites->merge($response['Result']); |
19 | 19 | |
20 | - if(!isset($response['nextpage'])) { |
|
20 | + if (!isset($response['nextpage'])) { |
|
21 | 21 | break; |
22 | 22 | } |
23 | 23 | } while ($response['resultsreturned'] < $response['totalresults']); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | $rankDistribution = collect($response['RankDistribution']); |
45 | 45 | |
46 | - if(isset($response['RankDistribution']['date'])) { |
|
46 | + if (isset($response['RankDistribution']['date'])) { |
|
47 | 47 | $rankDistribution = collect([$response['RankDistribution']]); |
48 | 48 | } |
49 | 49 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | $response = $this->performQuery('sites/delete', ['id' => $siteID]); |
74 | 74 | |
75 | - return (int) $response['Result']['Id']; |
|
75 | + return (int)$response['Result']['Id']; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | } |