original_string: private function isColumnInIndex(TableInterface $table, ColumnInterface $column){
          $indexes = $table->getAddedIndexes();
  
          if(in_array($column->getName(), $table->getPrimaryKey())){
              return true;
          }
  
          foreach($indexes as $columnNames){
              if(in_array($column->getName(), $columnNames)){
                  return true;
              }
          }
  
          return false;
      }
code: private function isColumnInIndex(TableInterface $table, ColumnInterface $column){
          $indexes = $table->getAddedIndexes();
  
          if(in_array($column->getName(), $table->getPrimaryKey())){
              return true;
          }
  
          foreach($indexes as $columnNames){
              if(in_array($column->getName(), $columnNames)){
                  return true;
              }
          }
  
          return false;
      }
code_tokens: private function isColumnInIndex ( TableInterface $ table , ColumnInterface $ column ) { $ indexes = $ table -> getAddedIndexes ( ) ; if ( in_array ( $ column -> getName ( ) , $ table -> getPrimaryKey ( ) ) ) { return true ; } foreach ( $ indexes as $ columnNames ) { if ( in_array ( $ column -> getName ( ) , $ columnNames ) ) { return true ; } } return false ; }
docstring: Check if a column is marked as index
  
  @param TableInterface $table
  @param ColumnInterface $column
  @return bool
docstring_tokens: Check if a column is marked as index