Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
50 | public function save($runValidation = true, $attributeNames = null) |
||
51 | { |
||
52 | try { |
||
53 | $result = Bill::perform('create-exchange', $this->getAttributes()); |
||
54 | } catch (ResponseErrorException $e) { |
||
55 | $this->addError('client_id', $e->getMessage()); |
||
56 | |||
57 | return false; |
||
58 | } |
||
59 | |||
60 | return $result['id']; |
||
61 | } |
||
62 | } |
||
63 |