Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler authored and github-actions[bot] committed Jul 27, 2022
1 parent 784368e commit eb12ca0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/CommentsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use RyanChandler\Comments\Commands\CommentsCommand;

class CommentsServiceProvider extends PackageServiceProvider
{
Expand Down
3 changes: 3 additions & 0 deletions src/Contracts/IsComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
interface IsComment
{
public function commentable(): MorphTo;

public function parent(): BelongsTo;

public function children(): HasMany;

public function user(): BelongsTo;
}
4 changes: 2 additions & 2 deletions tests/CommentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Schema;
use Orchestra\Testbench\Factories\UserFactory;
use RyanChandler\Comments\Concerns\HasComments;

use function Pest\Laravel\assertDatabaseHas;

use RyanChandler\Comments\Concerns\HasComments;

class Post extends Model
{
use HasComments;
Expand Down
3 changes: 2 additions & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

use Orchestra\Testbench\Factories\UserFactory;
use RyanChandler\Comments\Tests\TestCase;

use function Pest\Laravel\actingAs;

use RyanChandler\Comments\Tests\TestCase;

uses(TestCase::class)->in(__DIR__);

function login()
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace RyanChandler\Comments\Tests;

use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Schema;
use Orchestra\Testbench\TestCase as Orchestra;
use RyanChandler\Comments\CommentsServiceProvider;

Expand Down

0 comments on commit eb12ca0

Please sign in to comment.