src/ShopBundle/Payment/PaymentConfig/ShopPaymentConfigLoader.php
private function isApplicable(ShopPaymentConfigRawValue $value, $environment, $portalId)
    {
        return (($environment === $value->getEnvironment()) || (IPkgShopOrderPaymentConfig::ENVIRONMENT_COMMON === $value->getEnvironment()))
            && (($portalId === $value->getPortalId()) || ('' === $value->getPortalId()));
    }
private function isApplicable(ShopPaymentConfigRawValue $value, $environment, $portalId)
    {
        return (($environment === $value->getEnvironment()) || (IPkgShopOrderPaymentConfig::ENVIRONMENT_COMMON === $value->getEnvironment()))
            && (($portalId === $value->getPortalId()) || ('' === $value->getPortalId()));
    }
private function isApplicable ( ShopPaymentConfigRawValue $ value , $ environment , $ portalId ) { return ( ( $ environment === $ value -> getEnvironment ( ) ) || ( IPkgShopOrderPaymentConfig :: ENVIRONMENT_COMMON === $ value -> getEnvironment ( ) ) ) && ( ( $ portalId === $ value -> getPortalId ( ) ) || ( '' === $ value -> getPortalId ( ) ) ) ; }
Returns true if the given config value can be applied, i.e. the environment and portal do match.

@param ShopPaymentConfigRawValue $value
@param string                    $environment one of IPkgShopOrderPaymentConfig::ENVIRONMENT_*
@param string                    $portalId

@return bool
Returns true if the given config value can be applied i . e . the environment and portal do match .