Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
22 | 1 | public function process(\Swarrot\Broker\Message $message, array $options) |
|
23 | { |
||
24 | 1 | $message = new MessageAdapter($message); |
|
25 | |||
26 | 1 | $this->workerContext->getLogger()->debug((string) $message); |
|
27 | |||
28 | 1 | $this->onWorkerProcess(); |
|
29 | |||
30 | try |
||
31 | { |
||
32 | 1 | $processResult = $this->workerContext->getWorker()->process($message); |
|
33 | } |
||
34 | 1 | catch(\Exception $exception) |
|
35 | { |
||
36 | $this->onWorkerProcessed(); |
||
37 | |||
38 | throw $exception; |
||
39 | } |
||
40 | |||
41 | 1 | $this->onWorkerProcessed(); |
|
42 | |||
43 | 1 | return $processResult; |
|
44 | } |
||
45 | |||
56 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.