original_string: public function add(array $data)
      {
          $result = null;
          $this->hook->attach('country.add.before', $data, $result, $this);
  
          if (isset($result)) {
              return (bool) $result;
          }
  
          $result = true;
          $this->db->insert('country', $data);
          $this->hook->attach('country.add.after', $data, $result, $this);
          return (bool) $result;
      }
code: public function add(array $data)
      {
          $result = null;
          $this->hook->attach('country.add.before', $data, $result, $this);
  
          if (isset($result)) {
              return (bool) $result;
          }
  
          $result = true;
          $this->db->insert('country', $data);
          $this->hook->attach('country.add.after', $data, $result, $this);
          return (bool) $result;
      }
code_tokens: public function add ( array $ data ) { $ result = null ; $ this -> hook -> attach ( 'country.add.before' , $ data , $ result , $ this ) ; if ( isset ( $ result ) ) { return ( bool ) $ result ; } $ result = true ; $ this -> db -> insert ( 'country' , $ data ) ; $ this -> hook -> attach ( 'country.add.after' , $ data , $ result , $ this ) ; return ( bool ) $ result ; }
docstring: Adds a country
  @param array $data
  @return boolean
docstring_tokens: Adds a country