Skip to content

Commit

Permalink
run pint for style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bezhanSalleh committed Jul 15, 2023
1 parent 6050b52 commit 6a23ec0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 37 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/phpstan.yml

This file was deleted.

4 changes: 0 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@
"require-dev": {
"laravel/pint": "^1.2",
"nunomaduro/collision": "^6.0|^7.0",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^7.0|^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.5",
"spatie/laravel-ray": "^1.26"
},
Expand All @@ -53,7 +50,6 @@
}
},
"scripts": {
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/MostVisitedPagesWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function getData()
$analyticsData = Analytics::get(
$lookups[$this->filter],
['screenPageViews'],
['pageTitle','hostName','pagePath'],
['pageTitle', 'hostName', 'pagePath'],
10,
[OrderBy::metric('screenPageViews', true)],
);
Expand Down
3 changes: 1 addition & 2 deletions src/Widgets/SessionsByCountryWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace BezhanSalleh\FilamentGoogleAnalytics\Widgets;

use BezhanSalleh\FilamentGoogleAnalytics\Traits;

use Filament\Widgets\Widget;
use Illuminate\Support\Str;
use Spatie\Analytics\Facades\Analytics;
Expand Down Expand Up @@ -50,7 +49,7 @@ protected function getChartData()
}

$total = 0;
foreach($results as $result) {
foreach ($results as $result) {
$total += $result;
}
$this->total = number_format($total);
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/SessionsByDeviceWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function getChartData()
}

$total = 0;
foreach($results as $result) {
foreach ($results as $result) {
$total += $result;
}
$this->total = number_format($total);
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ protected function setUp(): void
{
parent::setUp();

Factory::guessFactoryNamesUsing(
fn (string $modelName) => 'BezhanSalleh\\FilamentGoogleAnalytics\\Database\\Factories\\'.class_basename($modelName).'Factory'
);
// Factory::guessFactoryNamesUsing(
// fn (string $modelName) => 'BezhanSalleh\\FilamentGoogleAnalytics\\Database\\Factories\\'.class_basename($modelName).'Factory'
// );
}

protected function getPackageProviders($app)
Expand Down

0 comments on commit 6a23ec0

Please sign in to comment.