Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
42 | public function save($runValidation = true, $attributeNames = null) |
||
43 | { |
||
44 | try { |
||
45 | $result = Bill::perform('create-exchange', $this->getAttributes()); |
||
46 | } catch (ResponseErrorException $e) { |
||
47 | $this->addError('client_id', $e->getMessage()); |
||
48 | return false; |
||
49 | } |
||
50 | |||
51 | return $result['id']; |
||
52 | } |
||
53 | } |
||
54 |