Failed Conditions
Pull Request — experimental/3.1 (#2424)
by chihiro
42:25
created

EmptyProcessor::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Plugin\PurchaseProcessors\Processor;
4
5
use Eccube\Entity\ItemInterface;
6
use Eccube\Service\PurchaseFlow\ItemProcessor;
7
use Eccube\Service\PurchaseFlow\PurchaseContext;
8
use Eccube\Service\PurchaseFlow\ProcessResult;
9
10
class EmptyProcessor implements ItemProcessor
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
11
{
12
    /**
13
     * @param ItemInterface $item
0 ignored issues
show
introduced by
Expected 3 spaces after parameter type; 1 found
Loading history...
14
     * @param PurchaseContext $context
15
     * @return ProcessResult
16
     */
17
    public function process(ItemInterface $item, PurchaseContext $context)
18
    {
19
        log_info('empty processor executed', [__METHOD__]);
20
        return ProcessResult::success();
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
21
    }
22
}
23