lib/Doctrine/DBAL/Schema/Index.php
public function spansColumns(array $columnNames)
    {
        $columns         = $this->getColumns();
        $numberOfColumns = count($columns);
        $sameColumns     = true;

        for ($i = 0; $i < $numberOfColumns; $i++) {
            if (isset($columnNames[$i]) && $this->trimQuotes(strtolower($columns[$i])) === $this->trimQuotes(strtolower($columnNames[$i]))) {
                continue;
            }

            $sameColumns = false;
        }

        return $sameColumns;
    }
public function spansColumns(array $columnNames)
    {
        $columns         = $this->getColumns();
        $numberOfColumns = count($columns);
        $sameColumns     = true;

        for ($i = 0; $i < $numberOfColumns; $i++) {
            if (isset($columnNames[$i]) && $this->trimQuotes(strtolower($columns[$i])) === $this->trimQuotes(strtolower($columnNames[$i]))) {
                continue;
            }

            $sameColumns = false;
        }

        return $sameColumns;
    }
public function spansColumns ( array $ columnNames ) { $ columns = $ this -> getColumns ( ) ; $ numberOfColumns = count ( $ columns ) ; $ sameColumns = true ; for ( $ i = 0 ; $ i < $ numberOfColumns ; $ i ++ ) { if ( isset ( $ columnNames [ $ i ] ) && $ this -> trimQuotes ( strtolower ( $ columns [ $ i ] ) ) === $ this -> trimQuotes ( strtolower ( $ columnNames [ $ i ] ) ) ) { continue ; } $ sameColumns = false ; } return $ sameColumns ; }
Checks if this index exactly spans the given column names in the correct order.

@param string[] $columnNames

@return bool
Checks if this index exactly spans the given column names in the correct order .