Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | public function getEntryDescription() |
||
23 | { |
||
24 | if (!$this->getGateway()) { |
||
25 | return MessagesHelper::error( |
||
26 | $this->getGatewaysManager()->getMessage('entry-payment.invalid') |
||
27 | ); |
||
28 | } elseif (!$this->getGateway()->isActive()) { |
||
|
|||
29 | return MessagesHelper::error( |
||
30 | $this->getGatewaysManager()->getMessage('entry-payment.inactive') |
||
31 | ); |
||
32 | } |
||
33 | return false; |
||
34 | } |
||
68 |