Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvalue committed Feb 28, 2023
1 parent c2b110a commit 8527f0e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/Commands/PublishScheduledDrafts.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Console\Command;
use InvalidArgumentException;
use Oddvalue\LaravelDrafts\Concerns\HasDrafts;
use Oddvalue\LaravelDrafts\Contacts\Draftable;

class PublishScheduledDrafts extends Command
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelDraftsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Schema;
use Oddvalue\LaravelDrafts\Http\Middleware\WithDraftsMiddleware;
use Oddvalue\LaravelDrafts\Commands\PublishScheduledDrafts;
use Oddvalue\LaravelDrafts\Http\Middleware\WithDraftsMiddleware;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;

Expand Down
1 change: 0 additions & 1 deletion tests/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Illuminate\Database\Eloquent\Relations\MorphToMany;
use Oddvalue\LaravelDrafts\Concerns\HasDrafts;
use Oddvalue\LaravelDrafts\Database\Factories\PostFactory;
use Oddvalue\LaravelDrafts\Contacts\Draftable;

class Post extends Model
{
Expand Down
6 changes: 0 additions & 6 deletions tests/SchedulingPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@

namespace Oddvalue\LaravelDrafts\Tests;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\Relations\MorphToMany;
use Oddvalue\LaravelDrafts\Concerns\HasDrafts;
use Oddvalue\LaravelDrafts\Contacts\Draftable;
use Oddvalue\LaravelDrafts\Database\Factories\PostFactory;

Expand Down
2 changes: 1 addition & 1 deletion tests/SchedulingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
});

it('fails when the model doesnt implement the contract', function (): void {
expect(static fn() => Artisan::call('drafts:publish', ['model' => Post::class]))
expect(static fn () => Artisan::call('drafts:publish', ['model' => Post::class]))
->toThrow(InvalidArgumentException::class);
});

Expand Down

0 comments on commit 8527f0e

Please sign in to comment.