Model/ResourceModel/Order/Collection.php
public function getStoreQuotes($storeId, $updated, $guest = false)
    {
        $salesCollection = $this->getStoreQuotesForGuestsAndCustomers($storeId, $updated);

        if ($guest) {
            $salesCollection->addFieldToFilter('main_table.customer_id', ['null' => true]);
        } else {
            $salesCollection->addFieldToFilter('main_table.customer_id', ['notnull' => true]);
        }

        return $salesCollection;
    }
public function getStoreQuotes($storeId, $updated, $guest = false)
    {
        $salesCollection = $this->getStoreQuotesForGuestsAndCustomers($storeId, $updated);

        if ($guest) {
            $salesCollection->addFieldToFilter('main_table.customer_id', ['null' => true]);
        } else {
            $salesCollection->addFieldToFilter('main_table.customer_id', ['notnull' => true]);
        }

        return $salesCollection;
    }
public function getStoreQuotes ( $ storeId , $ updated , $ guest = false ) { $ salesCollection = $ this -> getStoreQuotesForGuestsAndCustomers ( $ storeId , $ updated ) ; if ( $ guest ) { $ salesCollection -> addFieldToFilter ( 'main_table.customer_id' , [ 'null' => true ] ) ; } else { $ salesCollection -> addFieldToFilter ( 'main_table.customer_id' , [ 'notnull' => true ] ) ; } return $ salesCollection ; }
Get store quotes for either guests or customers, excluding inactive and empty.

@param int $storeId
@param array $updated
@param bool $guest

@return \Magento\Quote\Model\ResourceModel\Quote\Collection
Get store quotes for either guests or customers excluding inactive and empty .