Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored and github-actions[bot] committed Apr 11, 2024
1 parent d234fd9 commit aa39f7e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/Commands/ImportAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ private function importAssetContainers()
return;
}


if (! $this->option('only-asset-containers') && ! $this->option('force') && ! $this->confirm('Do you want to import asset containers?')) {
return;
}
Expand Down
3 changes: 0 additions & 3 deletions tests/Commands/ImportAssetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@

use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Facade;
use Illuminate\Support\Facades\Storage;
use Statamic\Contracts\Assets\Asset as AssetContract;
use Statamic\Contracts\Assets\AssetContainer as AssetContainerContract;
use Statamic\Contracts\Assets\AssetContainerRepository as AssetContainerRepositoryContract;
use Statamic\Contracts\Assets\AssetRepository as AssetRepositoryContract;
use Statamic\Eloquent\Assets\AssetContainerModel;
use Statamic\Eloquent\Assets\AssetModel;
use Statamic\Eloquent\Forms\FormModel;
use Statamic\Eloquent\Forms\SubmissionModel;
use Tests\PreventSavingStacheItemsToDisk;
use Tests\TestCase;

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

namespace Tests\Commands;

use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Facade;
use Illuminate\Support\Facades\Storage;
use Statamic\Contracts\Assets\Asset as AssetContract;
use Statamic\Contracts\Assets\AssetContainer as AssetContainerContract;
use Statamic\Eloquent\Assets\AssetContainerModel;
use Statamic\Eloquent\Assets\AssetModel;
use Statamic\Eloquent\Fields\BlueprintModel;
use Statamic\Eloquent\Fields\FieldsetModel;
use Statamic\Eloquent\Forms\FormModel;
use Statamic\Eloquent\Forms\SubmissionModel;
use Statamic\Facades\Blueprint as BlueprintFacade;
use Statamic\Facades\Fieldset as FieldsetFacade;
use Statamic\Fields\Blueprint;
Expand Down
10 changes: 5 additions & 5 deletions tests/Commands/ImportCollectionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
namespace Tests\Commands;

use Illuminate\Support\Facades\Facade;
use Statamic\Contracts\Entries\CollectionRepository as CollectionRepositoryContract;
use Statamic\Contracts\Entries\Collection as CollectionContract;
use Statamic\Contracts\Entries\CollectionRepository as CollectionRepositoryContract;
use Statamic\Contracts\Entries\Entry as EntryContract;
use Statamic\Contracts\Entries\EntryRepository as EntryRepositoryContract;
use Statamic\Contracts\Structures\CollectionTreeRepository as CollectionTreeRepositoryContract;
use Statamic\Contracts\Structures\CollectionTree as CollectionTreeContract;
use Statamic\Contracts\Structures\CollectionTreeRepository as CollectionTreeRepositoryContract;
use Statamic\Eloquent\Collections\CollectionModel;
use Statamic\Eloquent\Structures\TreeModel;
use Statamic\Facades\Collection as CollectionFacade;
use Statamic\Contracts\Entries\Entry as EntryContract;
use Statamic\Facades\Entry;
use Statamic\Structures\CollectionStructure;
use Tests\PreventSavingStacheItemsToDisk;
Expand Down Expand Up @@ -40,6 +39,7 @@ public function setUp(): void

/**
* @test
*
* @dataProvider entriesDriverProvider
*/
public function it_imports_collections_and_collection_trees(string $repository, string $entry)
Expand Down Expand Up @@ -80,7 +80,7 @@ public static function entriesDriverProvider(): array
return [
'stache-entries' => [
'repository' => \Statamic\Stache\Repositories\EntryRepository::class,
'entry' => \Statamic\Entries\Entry::class
'entry' => \Statamic\Entries\Entry::class,
],
'eloquent-entries' => [
'repository' => \Statamic\Eloquent\Entries\EntryRepository::class,
Expand Down

0 comments on commit aa39f7e

Please sign in to comment.