@@ -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 |      { | 
                                                        
@@ -13,7 +13,7 @@  | 
                                                    ||
| 13 | 13 | * @param Orders $order  | 
                                                        
| 14 | 14 | * @param string $body  | 
                                                        
| 15 | 15 | *  | 
                                                        
| 16 | - * @return Orders  | 
                                                        |
| 16 | + * @return \stdClass  | 
                                                        |
| 17 | 17 | */  | 
                                                        
| 18 | 18 | private function executeOrder(Orders $order = null, $body = null)  | 
                                                        
| 19 | 19 |      { | 
                                                        
@@ -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 | }  |