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

MalformedArchiveException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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