Skip to content

Commit

Permalink
cleanuip
Browse files Browse the repository at this point in the history
  • Loading branch information
jericdei committed Sep 11, 2024
1 parent 3fd9931 commit d678496
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 48 deletions.
19 changes: 0 additions & 19 deletions database/factories/ModelFactory.php

This file was deleted.

Empty file removed resources/views/.gitkeep
Empty file.
6 changes: 3 additions & 3 deletions src/Commands/ConvertToDatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ConvertToDatabaseCommand extends Command
*
* @var string
*/
protected $signature = 'psgc:convert';
protected $signature = 'psgc-db:convert';

/**
* The console command description.
Expand Down Expand Up @@ -67,7 +67,7 @@ public function handle()

$worksheet = Cache::rememberForever(
'psgc-latest',
fn () => SimpleExcelReader::create($file)->fromSheetName('PSGC')->getRows()->toArray()
fn() => SimpleExcelReader::create($file)->fromSheetName('PSGC')->getRows()->toArray()
);

array_shift($worksheet);
Expand Down Expand Up @@ -102,7 +102,7 @@ public function handle()
'old_name' => $row['Old names'] ? trim($row['Old names']) : null,
];

DB::transaction(fn () => match ($type) {
DB::transaction(fn() => match ($type) {
'reg' => Region::create($data),
'prov' => Province::create($data),
'mun' => Municipality::create($data),
Expand Down
16 changes: 0 additions & 16 deletions src/Facades/PsgcDatabase.php

This file was deleted.

5 changes: 0 additions & 5 deletions src/PsgcDatabase.php

This file was deleted.

2 changes: 2 additions & 0 deletions src/PsgcDatabaseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Jericdei\PsgcDatabase;

use Jericdei\PsgcDatabase\Commands\ConvertToDatabaseCommand;
use Jericdei\PsgcDatabase\Commands\DownloadPsgcLatestDataCommand;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
Expand All @@ -28,6 +29,7 @@ public function configurePackage(Package $package): void
)
->hasCommands(
DownloadPsgcLatestDataCommand::class,
ConvertToDatabaseCommand::class
);
}
}
5 changes: 0 additions & 5 deletions tests/ExampleTest.php

This file was deleted.

0 comments on commit d678496

Please sign in to comment.