Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and actions-user committed Jul 28, 2020
1 parent d0e50fd commit de18377
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/Commands/CleanUpModelsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function cleanUp(GetsCleanedUp $model)
$query->limit($cleanupConfig->chunkBy);
}

$numberOfDeletedRecords = (in_array(SoftDeletes::class, class_uses($model))
$numberOfDeletedRecords = (in_array(SoftDeletes::class, class_uses($model))
? $query->forceDelete()
: $query->delete());

Expand Down
2 changes: 0 additions & 2 deletions tests/CleanupSoftDeletableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace Tests;

use Carbon\Carbon;
use function Pest\Laravel\artisan;
use function PHPUnit\Framework\assertEquals;
use Spatie\ModelCleanup\CleanupConfig;
use Spatie\ModelCleanup\Commands\CleanUpModelsCommand;
use Tests\Models\TestSoftDeletableModel;
Expand Down
1 change: 0 additions & 1 deletion tests/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use function PHPUnit\Framework\assertEquals;
use function PHPUnit\Framework\assertInstanceOf;
use function PHPUnit\Framework\assertTrue;
use Tests\Models\TestModel;

function useCleanupConfig(Closure $closure, string $model)
{
Expand Down

0 comments on commit de18377

Please sign in to comment.