11<?php
22
3- declare (strict_types=1 );
4-
53/**
64 * This file is part of the friends-of-phpspec/phpspec-code-coverage package.
75 *
1210 * that was distributed with this source code.
1311 */
1412
13+ declare (strict_types=1 );
14+
1515namespace FriendsOfPhpSpec \PhpSpec \CodeCoverage \Listener ;
1616
1717use PhpSpec \Console \ConsoleIO ;
@@ -34,18 +34,9 @@ class CodeCoverageListener implements EventSubscriberInterface
3434
3535 private $ reports ;
3636
37- /**
38- * @var bool
39- */
4037 private $ skipCoverage ;
4138
42- /**
43- * @param ConsoleIO $io
44- * @param CodeCoverage $coverage
45- * @param array $reports
46- * @param bool $skipCoverage
47- */
48- public function __construct (ConsoleIO $ io , CodeCoverage $ coverage , array $ reports , $ skipCoverage = false )
39+ public function __construct (ConsoleIO $ io , CodeCoverage $ coverage , array $ reports , bool $ skipCoverage = false )
4940 {
5041 $ this ->io = $ io ;
5142 $ this ->coverage = $ coverage ;
@@ -62,9 +53,6 @@ public function __construct(ConsoleIO $io, CodeCoverage $coverage, array $report
6253 $ this ->skipCoverage = $ skipCoverage ;
6354 }
6455
65- /**
66- * @param ExampleEvent $event
67- */
6856 public function afterExample (ExampleEvent $ event ): void
6957 {
7058 if ($ this ->skipCoverage ) {
@@ -74,9 +62,6 @@ public function afterExample(ExampleEvent $event): void
7462 $ this ->coverage ->stop ();
7563 }
7664
77- /**
78- * @param SuiteEvent $event
79- */
8065 public function afterSuite (SuiteEvent $ event ): void
8166 {
8267 if ($ this ->skipCoverage ) {
@@ -106,9 +91,6 @@ public function afterSuite(SuiteEvent $event): void
10691 }
10792 }
10893
109- /**
110- * @param ExampleEvent $event
111- */
11294 public function beforeExample (ExampleEvent $ event ): void
11395 {
11496 if ($ this ->skipCoverage ) {
@@ -175,9 +157,6 @@ public static function getSubscribedEvents(): array
175157 ];
176158 }
177159
178- /**
179- * @param array $options
180- */
181160 public function setOptions (array $ options ): void
182161 {
183162 $ this ->options = $ options + $ this ->options ;
0 commit comments