Forces the Luma theme when httpRequest is being handled by checkout.

@param Design $subject
@param callable $proceed
@param array ...$args
@return int
490913
public function aroundGetConfigurationDesignTheme(Design $subject, callable $proceed, ...$args)
    {
        $forceLuma = $this->scopeConfig->getValue(self::CONFIG_PATH_FORCE_LUMA_CHECKOUT, ScopeInterface::SCOPE_STORE);
        if ($forceLuma &&
            $this->httpRequest->getModuleName() === 'checkout' &&
            $this->httpRequest->getControllerName() === 'index') {
            return $this->getLumaThemeId();
        }
        return $proceed(...$args);
    }
822843
public function aroundSendConfirmationRequestEmail(
        Subscriber $subscriber,
        callable $proceed
    ) {
        if (!$this->handleConfirmation($subscriber, self::EVENT_NEWSLETTER_SEND_CONFIRMATION_REQUEST_EMAIL)) {
            return $proceed($subscriber);
        }
    }
822190
public static function parseMaterialDesignIconicFontIcon(array $args) {

        $icon = static::newMaterialDesignIconicFontIcon();

        $icon->setName(ArrayHelper::get($args, "name", "home"));
        $icon->setStyle(ArrayHelper::get($args, "style"));

        $icon->setBorder(ArrayHelper::get($args, "border", false));
        $icon->setFixedWidth(ArrayHelper::get($args, "fixedWidth", false));
        $icon->setFlip(ArrayHelper::get($args, "flip"));
        $icon->setPull(ArrayHelper::get($args, "pull"));
        $icon->setRotate(ArrayHelper::get($args, "rotate"));
        $icon->setSize(ArrayHelper::get($args, "size"));
        $icon->setSpin(ArrayHelper::get($args, "spin"));

        return $icon;
    }
863583
public function aroundSendConfirmationSuccessEmail(
        Subscriber $subscriber,
        callable $proceed
    ) {
        if (!$this->handleConfirmation($subscriber, self::EVENT_NEWSLETTER_SEND_CONFIRMATION_SUCCESS_EMAIL)) {
            return $proceed($subscriber);
        }
    }
615167
function authorize($subject='',$ondeny=NULL) {
        $f3=\Base::instance();
        if (!$this->granted($route=$f3->VERB.' '.$f3->PATH,$subject) &&
            (!isset($ondeny) || FALSE===$f3->call($ondeny,array($route,$subject)))) {
            $f3->error($subject?403:401);
            return FALSE;
        }
        return TRUE;
    }
599610
public function callback($opcode, $subject, $offset, $length)
    {
        if ($opcode === 'i') {
            return;
        }

        if ($opcode === 'c') {
            return  htmlentities(substr($subject, $offset, $length));
        }

        $deletion = substr($subject, $offset, $length);

        if (strcspn($deletion, " \n\r") === 0) {
            $deletion = str_replace(array("\n","\r"), array('\n','\r'), $deletion);
        }

        return '<del>'.htmlentities($deletion).'</del>';
    }
508491
public function aroundUpdateStockItemBySku(
        \Magento\CatalogInventory\Model\StockRegistry $subject,
        \Closure $proceed,
        $productSku,
        \Magento\CatalogInventory\Api\Data\StockItemInterface $stockItem
    ) {
        $result = null;
        $stockId = $stockItem->getStockId();
        if ($stockId) {
            $result = $proceed($productSku, $stockItem);
        }
        return $result;
    }
396009
public function aroundSendUnsubscriptionEmail(
        Subscriber $subscriber,
        callable $proceed
    ) {
        if (!$this->handleConfirmation($subscriber, self::EVENT_NEWSLETTER_SEND_UNSUBSCRIPTION_EMAIL)) {
            return $proceed($subscriber);
        }
    }
1336313
public function passesCondition(TransientVarsInterface $transientVars, array $args = [], PropertySetInterface $ps)
    {
        $status = $args['status'];
        $stepId = array_key_exists('stepId', $args) ? (int)$args['stepId'] : 0;

        /** @var WorkflowEntryInterface $entry */
        $entry = $transientVars['entry'];

        /** @var WorkflowStoreInterface $store */
        $store = $transientVars['store'];
        $currentSteps = $store->findCurrentSteps($entry->getId());

        if ($stepId === 0) {
            foreach ($currentSteps as $step) {
                if ($status === $step->getStatus()) {
                    return true;
                }
            }
        } else {
            foreach ($currentSteps as $step) {
                if (($stepId === $step->getStepId())
                    && ($status === $step->getStatus())) {
                    return true;
                }
            }
        }

        return false;
    }
1059366
public function aroundGetCustomerGroupId(
        \Magento\Quote\Model\Quote $subject,
        \Closure $proceed
    ) {
        /* call parent to get group ID and to process other around-plugins */
        $result = $proceed();
        if ($result == \Magento\Customer\Model\GroupManagement::NOT_LOGGED_IN_ID) {
            /* check referral code in registry for guest visitors */
            $code = $this->hlpReferral->getReferralCode();
            if ($code) {
                /* return referral group id if code exists */
                $result = $this->hlpConfig->getReferralsGroupReferrals();
            }
        }
        return $result;
    }
820118
public function regex($subject, string $pattern) : bool
    {
        if (!$pattern) {
            throw new InvalidArgumentException('Arg pattern is empty.');
        }
        if ($subject === null) {
            return false;
        }
        return !!preg_match($pattern, '' . $subject);
    }
915353
public function call($subject, $inherentParams = [])
    {
        $reflectionFunction = new ReflectionFunction($subject);
        $reflectionParameters = $this->getReflectionParameters(
            $reflectionFunction,
            count($inherentParams)
        );

        $dependentInstances = [];
        foreach($reflectionParameters as $reflectionParameter) {
            $dependentInstances[] = $this->getDependentByParameter($reflectionParameter)
                ->getInstance();
        }
        $params = array_merge($dependentInstances, $inherentParams);
        $closure = $reflectionFunction->getClosure();
        return call_user_func_array($closure, $params);
    }
1327604
public function materialDesignColorPaletteTextFunction(array $args = []) {
        return $this->materialDesignColorPalette("text", ArrayHelper::get($args, "name"), ArrayHelper::get($args, "value"));
    }
1220389
public function aroundGetProductDetailsHtml(
        \Magento\Catalog\Block\Product\ListProduct $subject,
        \Closure $proceed,
        \Magento\Catalog\Model\Product $product
    ) {
        $result = $proceed($product);

        $deliveryBlock = $subject->getLayout()->getBlock('product.info.delivery');

        if ($deliveryBlock) {
            $deliveryBlock->setProduct($product);

            if ((bool) $this->_scopeConfig->getValue(
                'catalog/frontend/display_delivery_time',
                \Magento\Store\Model\ScopeInterface::SCOPE_STORE
            )) {
                $result = $deliveryBlock->toHtml() . $result;
            }
        }
        return $result;
    }
851189
public function aroundGetStockId(
        \Magento\CatalogInventory\Model\Stock\Item $subject,
        \Closure $proceed
    ) {
        $result = $subject->getData(Cfg::E_CATINV_STOCK_ITEM_A_STOCK_ID);
        return $result;
    }
666658
protected function _success(Subject $subject)
    {
        $subject->set(['success' => true, 'created' => true]);

        $this->_trigger('afterSave', $subject);
        $this->setFlash('success', $subject);

        return $this->_redirect($subject, ['action' => 'index']);
    }
63989
protected function payloadExec($method, $args = []) {
        $this->getPayloadInstance();
        if (method_exists($this->instance, $method)) {
            return $this->di->call([$this->instance, $method], $args);
        }
        return null;
    }