Test Failed
Push — docs ( 541d16...38ea2c )
by Mark
35:24
created

UnarchiveException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

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