Completed
Push — master ( cc889b...822d3c )
by Luke
03:46
created

CouldNotSendNotification::serviceBadRequest()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3.2098

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 5
cts 7
cp 0.7143
rs 9.6666
c 0
b 0
f 0
cc 3
eloc 5
nc 4
nop 1
crap 3.2098
1
<?php
2
3
namespace NotificationChannels\PagerDuty\Exceptions;
4
5
class CouldNotSendNotification extends \Exception
6
{
7 2
    public static function create(\Exception $e)
8
    {
9 2
        return new static("Cannot send message to PagerDuty: {$e->getMessage()}", 0, $e);
10
    }
11
}
12