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