Skip to content

Commit b657dbd

Browse files
committed
Throw RuntimeException from CodeCoverage namespace
1 parent 7743bbc commit b657dbd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Report/Clover.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
final class Clover
2020
{
2121
/**
22-
* @throws \RuntimeException
22+
* @throws RuntimeException
2323
*/
2424
public function process(CodeCoverage $coverage, ?string $target = null, ?string $name = null): string
2525
{
@@ -235,7 +235,7 @@ public function process(CodeCoverage $coverage, ?string $target = null, ?string
235235

236236
if ($target !== null) {
237237
if (!$this->createDirectory(\dirname($target))) {
238-
throw new \RuntimeException(\sprintf('Directory "%s" was not created', \dirname($target)));
238+
throw new RuntimeException(\sprintf('Directory "%s" was not created', \dirname($target)));
239239
}
240240

241241
if (@\file_put_contents($target, $buffer) === false) {

src/Report/Crap4j.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(int $threshold = 30)
2626
}
2727

2828
/**
29-
* @throws \RuntimeException
29+
* @throws RuntimeException
3030
*/
3131
public function process(CodeCoverage $coverage, ?string $target = null, ?string $name = null): string
3232
{
@@ -117,7 +117,7 @@ public function process(CodeCoverage $coverage, ?string $target = null, ?string
117117

118118
if ($target !== null) {
119119
if (!$this->createDirectory(\dirname($target))) {
120-
throw new \RuntimeException(\sprintf('Directory "%s" was not created', \dirname($target)));
120+
throw new RuntimeException(\sprintf('Directory "%s" was not created', \dirname($target)));
121121
}
122122

123123
if (@\file_put_contents($target, $buffer) === false) {

src/Report/PHP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function process(CodeCoverage $coverage, ?string $target = null): string
4141

4242
if ($target !== null) {
4343
if (!$this->createDirectory(\dirname($target))) {
44-
throw new \RuntimeException(\sprintf('Directory "%s" was not created', \dirname($target)));
44+
throw new RuntimeException(\sprintf('Directory "%s" was not created', \dirname($target)));
4545
}
4646

4747
if (@\file_put_contents($target, $buffer) === false) {

0 commit comments

Comments
 (0)