Skip to content

Commit fd04575

Browse files
committed
style: remove spaces around strict_types declaration and unused imports
1 parent 00603fd commit fd04575

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

src/Concerns/HasConfig.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@
1010
* License: Commercial. See LICENSE.md.
1111
*/
1212

13-
declare(strict_types = 1);
13+
declare(strict_types=1);
1414

1515
namespace Isapp\GoogleAnalytics\Concerns;
1616

17-
use Isapp\GoogleAnalytics\Models\Config;
1817
use Statamic\Facades\Addon;
1918

2019
trait HasConfig
2120
{
22-
2321
protected function values(): array
2422
{
2523
return Addon::get('isapp/statamic-analytics')->settings()->all();

src/ServiceProvider.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
* License: Commercial. See LICENSE.md.
1111
*/
1212

13-
declare(strict_types = 1);
13+
declare(strict_types=1);
1414

1515
namespace Isapp\GoogleAnalytics;
1616

1717
use Illuminate\Support\Facades\Route;
1818
use Isapp\GoogleAnalytics\Analytics\Analytics;
1919
use Isapp\GoogleAnalytics\Controllers\AnalyticsController;
20-
use Isapp\GoogleAnalytics\Controllers\ConfigController;
2120
use Isapp\GoogleAnalytics\Widgets\GoogleAnalytics;
2221
use Spatie\Analytics\AnalyticsClient;
2322
use Statamic\Facades\CP\Nav;
@@ -60,7 +59,7 @@ public function bootAddon()
6059
],
6160
[
6261
'handle' => 'handle',
63-
'field' => ['type' => 'hidden', 'default' => 'default',],
62+
'field' => ['type' => 'hidden', 'default' => 'default'],
6463
],
6564
[
6665
'handle' => 'default_date_range',
@@ -109,7 +108,7 @@ public function bootAddon()
109108
'top_countries' => 'isapp-analytics::cp.Top countries',
110109
'top_operating_systems' => 'isapp-analytics::cp.Top operating systems',
111110
],
112-
'validate' => ['required',],
111+
'validate' => ['required'],
113112
],
114113
],
115114
[

0 commit comments

Comments
 (0)