original_string: public function getErrors() {
          $result = array();
  
          if (count($this->errors) > 0) {
              if (isset($this->errors['common'])) {
                  $result['common'] = $this->errors['common'];
              }
              if (isset($this->errors['fields'])) {
                  foreach ($this->errors['fields'] as $key => $value) {
                      $result[$key] = $value;
                  }
              }
          }
          
          return $result;
      }
code: public function getErrors() {
          $result = array();
  
          if (count($this->errors) > 0) {
              if (isset($this->errors['common'])) {
                  $result['common'] = $this->errors['common'];
              }
              if (isset($this->errors['fields'])) {
                  foreach ($this->errors['fields'] as $key => $value) {
                      $result[$key] = $value;
                  }
              }
          }
          
          return $result;
      }
code_tokens: public function getErrors ( ) { $ result = array ( ) ; if ( count ( $ this -> errors ) > 0 ) { if ( isset ( $ this -> errors [ 'common' ] ) ) { $ result [ 'common' ] = $ this -> errors [ 'common' ] ; } if ( isset ( $ this -> errors [ 'fields' ] ) ) { foreach ( $ this -> errors [ 'fields' ] as $ key => $ value ) { $ result [ $ key ] = $ value ; } } } return $ result ; }
docstring: Get errors received from Textmagic API
  
  @return array
docstring_tokens: Get errors received from Textmagic API