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

MalformedArchiveException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
c 1
b 0
f 1
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace League\Emoji\Exception;
6
7
use Throwable;
8
9
class MalformedArchiveException extends UnarchiveException
10
{
11 6
    public function __construct(string $filename, ?Throwable $previous = null)
12
    {
13 6
        $message = \sprintf('Malformed archive %s. Perhaps it is corrupted or was archived using an older API. Try recreating the archive.', $filename);
14 6
        parent::__construct($filename, $message, $previous);
15 6
    }
16
}
17