Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
22 | public function process(\Swarrot\Broker\Message $message, array $options) |
||
23 | { |
||
24 | $message = new MessageAdapter($message); |
||
25 | |||
26 | $this->workerContext->getLogger()->debug((string) $message); |
||
27 | |||
28 | $this->onWorkerProcess(); |
||
29 | |||
30 | try |
||
31 | { |
||
32 | $processResult = $this->workerContext->getWorker()->process($message); |
||
33 | } |
||
34 | catch(\Exception $exception) |
||
35 | { |
||
36 | $this->onWorkerProcessed(); |
||
37 | |||
38 | throw $exception; |
||
39 | } |
||
40 | |||
41 | $this->onWorkerProcessed(); |
||
42 | |||
43 | 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.