Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. try {
  2.  
  3. $remote_data = $this->megaApi->setAnything($array)->someMethod();
  4.  
  5. if($this->megaApi->someCondition > 0)
  6. {
  7. // do somthing
  8. }
  9.  
  10. } catch (\Exception $e) {
  11. $remote_data['data'] = $e->getMessage();
  12. }
  13.  
  14. return remote_data;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement