Completed
Push — master ( 293c05...417c40 )
by Jeroen
16:45
created

DefaultFormatter::format()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 8
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Protoku\Exceptions\Formatters;
4
5
use Protoku\Interfaces\FormatterInterface;
6
7
class DefaultFormatter implements FormatterInterface
8
{
9
10
	public function format(\Throwable $e): array
11
	{
12
		return [
13
			'message' => $e->getMessage(),
14
			'file' => $e->getFile(),
15
			'line' => $e->getLine(),
16
		];
17
	}
18
}