Issues (119)

src/LaravelH5p/Notifications/H5pNotification.php (4 issues)

1
<?php
2
3
namespace App\Notifications;
4
5
use Illuminate\Contracts\Queue\ShouldQueue;
6
use Illuminate\Notifications\Notification;
7
8
class H5pNotification extends Notification implements ShouldQueue
9
{
10
    public function handle(OrderShipped $event)
0 ignored issues
show
The parameter $event is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

10
    public function handle(/** @scrutinizer ignore-unused */ OrderShipped $event)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The type App\Notifications\OrderShipped was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
    {
12
        //
13
    }
14
15
    public function failed(OrderShipped $event, $exception)
0 ignored issues
show
The parameter $event is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    public function failed(/** @scrutinizer ignore-unused */ OrderShipped $event, $exception)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $exception is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    public function failed(OrderShipped $event, /** @scrutinizer ignore-unused */ $exception)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
    {
17
        //
18
    }
19
}
20