Skip to content

Commit

Permalink
phpcs Assets/Notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Oct 28, 2024
1 parent bf5f9ec commit 0a672e0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tests/Assets/Notifications/CustomNotifiableStub.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets\Notifications;

use LaravelDoctrine\ORM\Notifications\Notifiable;
Expand All @@ -8,7 +10,7 @@ class CustomNotifiableStub
{
use Notifiable;

public function routeNotificationForDoctrine()
public function routeNotificationForDoctrine(): string
{
return 'custom';
}
Expand Down
3 changes: 2 additions & 1 deletion tests/Assets/Notifications/NotifiableStub.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets\Notifications;

use LaravelDoctrine\ORM\Notifications\Notifiable;
Expand All @@ -8,4 +10,3 @@ class NotifiableStub
{
use Notifiable;
}

4 changes: 3 additions & 1 deletion tests/Assets/Notifications/NotificationDatabaseStub.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets\Notifications;

use Illuminate\Notifications\Notification as IlluminateNotification;
use LaravelDoctrine\ORM\Notifications\Notification;

class NotificationDatabaseStub extends IlluminateNotification
{
public function toDatabase()
public function toDatabase(): Notification
{
return new Notification();
}
Expand Down
2 changes: 2 additions & 0 deletions tests/Assets/Notifications/NotificationInvalidStub.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets\Notifications;

use Illuminate\Notifications\Notification as IlluminateNotification;
Expand Down
4 changes: 3 additions & 1 deletion tests/Assets/Notifications/NotificationStub.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets\Notifications;

use Illuminate\Notifications\Notification as IlluminateNotification;
use LaravelDoctrine\ORM\Notifications\Notification;

class NotificationStub extends IlluminateNotification
{
public function toEntity()
public function toEntity(): Notification
{
return new Notification();
}
Expand Down

0 comments on commit 0a672e0

Please sign in to comment.