Completed
Push — master ( b44652...ac9cf3 )
by Andrii
03:25
created

CalculateValueHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 8
ccs 0
cts 0
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 5 1
1
<?php
2
3
namespace hiqdev\billing\hiapi\commands\order;
4
5
class CalculateValueHandler
6
{
7
    public function handle(CalculateValueCommand $command)
8
    {
9
        var_dump($command);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($command); looks like debug code. Are you sure you do not want to remove it? This might expose sensitive data.
Loading history...
10
        die(__METHOD__);
0 ignored issues
show
Coding Style Compatibility introduced by
The method handle() contains an exit expression.

An exit expression should only be used in rare cases. For example, if you write a short command line script.

In most cases however, using an exit expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.

Loading history...
11
    }
12
}
13