Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 87.5% |
Changes | 0 |
1 | <?php |
||
11 | class PublishInitialScriptRelease extends Listener |
||
12 | { |
||
13 | protected $service; |
||
14 | |||
15 | /** |
||
16 | * Create the event listener. |
||
17 | * |
||
18 | * @return void |
||
19 | */ |
||
20 | 7 | public function __construct(ScriptServiceContract $service) |
|
21 | { |
||
22 | 7 | $this->service = $service; |
|
23 | 7 | } |
|
24 | |||
25 | /** |
||
26 | * Handle the event. |
||
27 | * |
||
28 | * @param ScriptWasCreatedEvent $event |
||
29 | * @return void |
||
30 | */ |
||
31 | 7 | public function handle(ScriptWasCreatedEvent $event): void |
|
36 | ]); |
||
37 | 7 | } |
|
38 | |||
39 | |||
40 | /** |
||
41 | * Handle the event. |
||
42 | * |
||
43 | * @param ScriptWasCreatedEvent $event |
||
44 | * @param \Exception $exception |
||
45 | * @return void |
||
46 | */ |
||
47 | public function failed(ScriptWasCreatedEvent $event, $exception): void |
||
53 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.