From a33f0f23023464c4679e29206af1fa99f3622f71 Mon Sep 17 00:00:00 2001 From: Daniele Barbaro Date: Tue, 8 Sep 2026 15:40:40 +0200 Subject: [PATCH] chore: drop the unused package skeleton residue The package has no Eloquent models and ships no views, but it still carried the scaffolding for both from the spatie skeleton it was generated from. database/factories/ModelFactory.php defined nothing at all: the class body sat inside a comment block, so the file was an empty namespace declaration that the composer autoloader was nevertheless mapped to. resources/views held only a .gitkeep. TestCase pointed Eloquent's factory name resolution at that empty namespace and carried a commented-out migration loop. PHPStan was told to check model properties and to analyse the database directory. None of it was reachable. Removing it is a no-op. --- composer.json | 3 +-- database/factories/ModelFactory.php | 19 ------------------- phpstan.neon.dist | 2 -- resources/views/.gitkeep | 0 tests/TestCase.php | 21 --------------------- 5 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 database/factories/ModelFactory.php delete mode 100644 resources/views/.gitkeep diff --git a/composer.json b/composer.json index c399e31..e27f4c8 100644 --- a/composer.json +++ b/composer.json @@ -51,8 +51,7 @@ }, "autoload": { "psr-4": { - "PlinCode\\KmlParser\\": "src/", - "PlinCode\\KmlParser\\Database\\Factories\\": "database/factories/" + "PlinCode\\KmlParser\\": "src/" } }, "autoload-dev": { diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php deleted file mode 100644 index 6d5912b..0000000 --- a/database/factories/ModelFactory.php +++ /dev/null @@ -1,19 +0,0 @@ - 'PlinCode\\KmlParser\\Database\\Factories\\'.class_basename($modelName).'Factory' - ); - } - protected function getPackageProviders($app) { return [ KmlParserServiceProvider::class, ]; } - - public function getEnvironmentSetUp($app) - { - config()->set('database.default', 'testing'); - - /* - foreach (\Illuminate\Support\Facades\File::allFiles(__DIR__ . '/database/migrations') as $migration) { - (include $migration->getRealPath())->up(); - } - */ - } }