UnarchiveException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace League\Emoji\Exception;
6
7
use Throwable;
8
9
class UnarchiveException extends \RuntimeException implements EmojiException
10
{
11 9
    public function __construct(string $filename, ?string $message = null, ?Throwable $previous = null)
12
    {
13 9
        if (! isset($message)) {
14 3
            $message = \sprintf('Empty or corrupted archive: %s.', $filename);
15
        }
16
17 9
        parent::__construct($message, 0, $previous);
18 9
    }
19
}
20