SilentTransaction::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Buttress\ConcreteClient\Transaction;
4
5
class SilentTransaction implements Transaction
6
{
7
    use TransactionTrait;
8
9 6
    public function __invoke(callable $transaction)
10
    {
11 6
        ob_start();
12 6
        $result = $this->handleTransaction($transaction);
13 6
        ob_end_clean();
14
15 6
        return $result;
16
    }
17
}
18