original_string: protected function truncate($table)
      {
          if ($this->db->connection()->getConfig('driver') === 'mysql') {
              $this->db->statement('SET FOREIGN_KEY_CHECKS=0;');
              $this->db->table($table)->truncate();
              $this->db->statement('SET FOREIGN_KEY_CHECKS=1;');
          }
      }
code: protected function truncate($table)
      {
          if ($this->db->connection()->getConfig('driver') === 'mysql') {
              $this->db->statement('SET FOREIGN_KEY_CHECKS=0;');
              $this->db->table($table)->truncate();
              $this->db->statement('SET FOREIGN_KEY_CHECKS=1;');
          }
      }
code_tokens: protected function truncate ( $ table ) { if ( $ this -> db -> connection ( ) -> getConfig ( 'driver' ) === 'mysql' ) { $ this -> db -> statement ( 'SET FOREIGN_KEY_CHECKS=0;' ) ; $ this -> db -> table ( $ table ) -> truncate ( ) ; $ this -> db -> statement ( 'SET FOREIGN_KEY_CHECKS=1;' ) ; } }
docstring: Truncate the existing table of all records.
  
  @param string $table
docstring_tokens: Truncate the existing table of all records .