original_string: protected function isForeignKey($table, $field)
      {
          foreach ($this->foreignKeys['all'] as $entry) {
              if ($entry->COLUMN_NAME == $field && $entry->TABLE_NAME == $table) {
                  return true;
              }
          }
  
          return false;
      }
code: protected function isForeignKey($table, $field)
      {
          foreach ($this->foreignKeys['all'] as $entry) {
              if ($entry->COLUMN_NAME == $field && $entry->TABLE_NAME == $table) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: protected function isForeignKey ( $ table , $ field ) { foreach ( $ this -> foreignKeys [ 'all' ] as $ entry ) { if ( $ entry -> COLUMN_NAME == $ field && $ entry -> TABLE_NAME == $ table ) { return true ; } } return false ; }
docstring: Check if a given field in a table is a foreign key.
  
  @param $table
  @param $field
  
  @return bool
docstring_tokens: Check if a given field in a table is a foreign key .