config = $config; } /** * @param Config $subject * @param bool $result * @param StoreInterface $store * @return bool * @SuppressWarnings(PMD.UnusedFormalParameter) */ public function afterKlarnaEnabled(Config $subject, $result, $store = null) { if ($result) { return $result; // No need to check any further, someone already said yes (true) } $scope = ($store === null ? ScopeConfigInterface::SCOPE_TYPE_DEFAULT : ScopeInterface::SCOPE_STORES); return $this->config->isSetFlag( sprintf('payment/%s/active', Kp::METHOD_CODE), $scope, $store ); } }