@@ -79,6 +79,9 @@ |
||
79 | 79 | } |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $key |
|
84 | + */ |
|
82 | 85 | protected function getIfSetDateFmt($key, $fmt, stdClass $data=null){ |
83 | 86 | $val = $this->getIfSet($key, $data); |
84 | 87 | if (!empty($val)) { |
@@ -166,7 +166,7 @@ |
||
166 | 166 | /** |
167 | 167 | * Create a new order in MoIP. |
168 | 168 | * |
169 | - * @return Orders |
|
169 | + * @return stdClass |
|
170 | 170 | */ |
171 | 171 | public function create() |
172 | 172 | { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * |
44 | 44 | * @param Requests_Hooks $hooks Hook system |
45 | 45 | */ |
46 | - public function register(Requests_Hooks &$hooks) |
|
46 | + public function register(Requests_Hooks & $hooks) |
|
47 | 47 | { |
48 | 48 | $hooks->register('requests.before_request', array(&$this, 'before_request')); |
49 | 49 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * |
44 | 44 | * @param Requests_Hooks $hooks Hook system |
45 | 45 | */ |
46 | - public function register(Requests_Hooks &$hooks) |
|
46 | + public function register(Requests_Hooks & $hooks) |
|
47 | 47 | { |
48 | 48 | $hooks->register('requests.before_request', array(&$this, 'before_request')); |
49 | 49 | } |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | public function setTransfers($amount, $bankNumber, $agencyNumber, $agencyCheckNumber, $accountNumber, $accountCheckNumber) { |
37 | 37 | $this->data->amount = $amount; |
38 | 38 | $this->data->transferInstrument = new stdClass(); |
39 | - $this->data->transferInstrument->method = self::METHOD; |
|
40 | - $this->data->transferInstrument->bankAccount = new stdClass(); |
|
39 | + $this->data->transferInstrument->method = self::METHOD; |
|
40 | + $this->data->transferInstrument->bankAccount = new stdClass(); |
|
41 | 41 | #$this->data->initialize(); |
42 | 42 | $this->data->transferInstrument->bankAccount->type = self::TYPE; |
43 | 43 | $this->data->transferInstrument->bankAccount->bankNumber = $bankNumber; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | return $this; |
49 | 49 | } |
50 | 50 | |
51 | - public function setHolder($fullname, $taxDocument){ |
|
51 | + public function setHolder($fullname, $taxDocument) { |
|
52 | 52 | |
53 | 53 | $this->data->transferInstrument->bankAccount->holder = new stdClass(); |
54 | 54 | $this->data->transferInstrument->bankAccount->holder->fullname = $fullname; |