Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/freek.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 19, 2023
2 parents 08328e5 + 3ac2ee8 commit 221f2a2
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/ForgotPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

class ForgotPasswordController
{
use ValidatesRequests, SendsPasswordResetEmails;
use SendsPasswordResetEmails, ValidatesRequests;
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class LoginController
{
use ValidatesRequests, AuthenticatesUsers;
use AuthenticatesUsers, ValidatesRequests;

public function redirectPath()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Models\Link;
use Illuminate\View\View;

use function view;

class IndexController
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/Discovery/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Models\Post;
use Illuminate\View\View;
use Spatie\RouteDiscovery\Attributes\Route;

use function view;

class HomeController
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/Discovery/MusicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Http\Controllers\Discovery;

use Illuminate\View\View;

use function view;

class MusicController
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/Discovery/OriginalsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Models\Post;
use Illuminate\View\View;

use function view;

class OriginalsController
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/Discovery/UsesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Models\Post;
use Illuminate\View\View;

use function view;

class UsesController
Expand Down
12 changes: 6 additions & 6 deletions app/Models/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@
use Spatie\Tags\HasTags;
use Spatie\Tags\Tag;

class Post extends Model implements Feedable, Sluggable, HasMedia
class Post extends Model implements Feedable, HasMedia, Sluggable
{
public const TYPE_LINK = 'link';

public const TYPE_TWEET = 'tweet';

public const TYPE_ORIGINAL = 'originalPost';

use HasSlug,
HasTags,
PostPresenter,
use HasComments,
HasFactory,
HasComments,
InteractsWithMedia;
HasSlug,
HasTags,
InteractsWithMedia,
PostPresenter;

public $with = ['tags'];

Expand Down
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Spatie\Comments\Models\Concerns\InteractsWithComments;
use Spatie\Comments\Models\Concerns\Interfaces\CanComment;

class User extends Authenticatable implements CanComment, MustVerifyEmail, FilamentUser
class User extends Authenticatable implements CanComment, FilamentUser, MustVerifyEmail
{
use HasFactory;
use InteractsWithComments;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use App\Models\Link;

use function Pest\Laravel\assertDatabaseHas;
use function Pest\Laravel\get;

Expand Down
1 change: 1 addition & 0 deletions tests/Feature/Controllers/ApproveLinkControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use App\Mail\LinkApprovedMail;
use App\Models\Link;

use function Pest\Laravel\get;

it('can approve a link using a signed url', function () {
Expand Down
1 change: 1 addition & 0 deletions tests/Feature/Controllers/CreateLinkControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Models\Link;
use App\Models\User;
use Illuminate\Support\Facades\Mail;

use function Pest\Laravel\assertDatabaseHas;
use function Pest\Laravel\post;

Expand Down
1 change: 1 addition & 0 deletions tests/Feature/Controllers/RejectLinkControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use App\Models\Link;

use function Pest\Laravel\get;

it('can reject a link using a signed url', function () {
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/Models/PostTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
use App\Http\Controllers\Discovery\Post\ShowPostController;
use App\Models\Post;
use App\Models\User;
use function Pest\Laravel\get;
use Tests\Factories\PostFactory;

use function Pest\Laravel\get;

beforeEach(function () {
$this->post = Post::factory()->create();
});
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/Models/AdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use App\Models\Ad;
use Carbon\Carbon;

use function Spatie\PestPluginTestTime\testTime;

it('can get an ad for the current date', function () {
Expand Down

0 comments on commit 221f2a2

Please sign in to comment.