protected function filterByStoreRegistration(array $taxTypes, Context $context)
    {
        $taxTypes = array_filter($taxTypes, function ($taxType) use ($context) {
            $zone = $taxType->getZone();

            return $this->checkStoreRegistration($zone, $context);
        });

        return $taxTypes;
    }
protected function filterByStoreRegistration(array $taxTypes, Context $context)
    {
        $taxTypes = array_filter($taxTypes, function ($taxType) use ($context) {
            $zone = $taxType->getZone();

            return $this->checkStoreRegistration($zone, $context);
        });

        return $taxTypes;
    }
protected function filterByStoreRegistration ( array $ taxTypes , Context $ context ) { $ taxTypes = array_filter ( $ taxTypes , function ( $ taxType ) use ( $ context ) { $ zone = $ taxType -> getZone ( ) ; return $ this -> checkStoreRegistration ( $ zone , $ context ) ; } ) ; return $ taxTypes ; }
Filters out tax types not matching the store registration.

@param TaxTypeInterface[] $taxTypes The tax types to filter.
@param Context            $context  The context containing store information.

@return TaxTypeInterface[] An array of additional tax types the store is
registered to collect.
Filters out tax types not matching the store registration .