Skip to content

Commit 11110a2

Browse files
Fix CS/WS issues
1 parent 5fcd964 commit 11110a2

40 files changed

+109
-181
lines changed

src/CodeCoverage.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
1110
namespace SebastianBergmann\CodeCoverage;
1211

1312
use PHPUnit\Framework\TestCase;
@@ -228,7 +227,6 @@ public function setTests(array $tests): void
228227
* Start collection of code coverage information.
229228
*
230229
* @param PhptTestCase|string|TestCase $id
231-
* @param bool $clear
232230
*
233231
* @throws RuntimeException
234232
*/

src/Driver/Driver.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
1110
namespace SebastianBergmann\CodeCoverage\Driver;
1211

1312
/**

src/Driver/PHPDBG.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
1110
namespace SebastianBergmann\CodeCoverage\Driver;
1211

1312
use SebastianBergmann\CodeCoverage\RuntimeException;
@@ -24,7 +23,7 @@ final class PHPDBG implements Driver
2423
*/
2524
public function __construct()
2625
{
27-
if (PHP_SAPI !== 'phpdbg') {
26+
if (\PHP_SAPI !== 'phpdbg') {
2827
throw new RuntimeException(
2928
'This driver requires the PHPDBG SAPI'
3029
);

src/Driver/Xdebug.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
1110
namespace SebastianBergmann\CodeCoverage\Driver;
1211

1312
use SebastianBergmann\CodeCoverage\RuntimeException;

src/Exception/CoveredCodeNotExecutedException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
1110
namespace SebastianBergmann\CodeCoverage;
1211

1312
/**

src/Exception/Exception.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
1110
namespace SebastianBergmann\CodeCoverage;
1211

1312
/**

src/Exception/InvalidArgumentException.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
1110
namespace SebastianBergmann\CodeCoverage;
1211

1312
final class InvalidArgumentException extends \InvalidArgumentException implements Exception
1413
{
1514
/**
1615
* @param int $argument
1716
* @param string $type
18-
* @param mixed $value
1917
*
2018
* @return InvalidArgumentException
2119
*/

src/Exception/MissingCoversAnnotationException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
1110
namespace SebastianBergmann\CodeCoverage;
1211

1312
/**

src/Exception/RuntimeException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
1110
namespace SebastianBergmann\CodeCoverage;
1211

1312
class RuntimeException extends \RuntimeException implements Exception

src/Exception/UnintentionallyCoveredCodeException.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
1110
namespace SebastianBergmann\CodeCoverage;
1211

1312
/**
@@ -20,27 +19,18 @@ final class UnintentionallyCoveredCodeException extends RuntimeException
2019
*/
2120
private $unintentionallyCoveredUnits = [];
2221

23-
/**
24-
* @param array $unintentionallyCoveredUnits
25-
*/
2622
public function __construct(array $unintentionallyCoveredUnits)
2723
{
2824
$this->unintentionallyCoveredUnits = $unintentionallyCoveredUnits;
2925

3026
parent::__construct($this->toString());
3127
}
3228

33-
/**
34-
* @return array
35-
*/
3629
public function getUnintentionallyCoveredUnits(): array
3730
{
3831
return $this->unintentionallyCoveredUnits;
3932
}
4033

41-
/**
42-
* @return string
43-
*/
4434
private function toString(): string
4535
{
4636
$message = '';

0 commit comments

Comments
 (0)