ScheduleCreatedListener   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 15
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A failed() 0 2 1
A handle() 0 2 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 14.10.18
6
 * Time: 19:44.
7
 */
8
9
namespace Modules\Schedule\Listeners;
10
11
use Foundation\Abstracts\Listeners\Listener;
12
use Modules\Schedule\Events\ScheduleCreatedEvent;
13
14
class ScheduleCreatedListener extends Listener
15
{
16
    /**
17
     * @param ScheduleCreatedEvent $event
18
     */
19
    public function handle($event): void
0 ignored issues
show
Unused Code introduced by
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

19
    public function handle(/** @scrutinizer ignore-unused */ $event): void

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...
20
    {
21
    }
22
23
    /**
24
     * @param ScheduleCreatedEvent $event
25
     * @param $exception
26
     */
27
    public function failed($event, $exception): void
0 ignored issues
show
Unused Code introduced by
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

27
    public function failed(/** @scrutinizer ignore-unused */ $event, $exception): void

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...
Unused Code introduced by
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

27
    public function failed($event, /** @scrutinizer ignore-unused */ $exception): void

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...
28
    {
29
    }
30
}
31