src/Db.php
protected function executeQuery($sql, array $parameters = [])
    {
        $this->connect();

        $dbParameters = $this->prepareParameters($parameters);
        try {
            $pdoStatement = $this->pdo->prepare($sql);
            $pdoStatement->execute($dbParameters);

            return $pdoStatement;
        } catch (PDOException $e) {
            throw new QueryException($e, $sql, $dbParameters);
        }
    }
protected function executeQuery($sql, array $parameters = [])
    {
        $this->connect();

        $dbParameters = $this->prepareParameters($parameters);
        try {
            $pdoStatement = $this->pdo->prepare($sql);
            $pdoStatement->execute($dbParameters);

            return $pdoStatement;
        } catch (PDOException $e) {
            throw new QueryException($e, $sql, $dbParameters);
        }
    }
protected function executeQuery ( $ sql , array $ parameters = [ ] ) { $ this -> connect ( ) ; $ dbParameters = $ this -> prepareParameters ( $ parameters ) ; try { $ pdoStatement = $ this -> pdo -> prepare ( $ sql ) ; $ pdoStatement -> execute ( $ dbParameters ) ; return $ pdoStatement ; } catch ( PDOException $ e ) { throw new QueryException ( $ e , $ sql , $ dbParameters ) ; } }
Creates and executes a PDO statement.

@param string $sql
@param array  $parameters
@return PDOStatement
Creates and executes a PDO statement .