• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitExpert / magento2-force-login / 273

pending completion
273

push

travis-ci

web-flow
Merge pull request #192 from finelinejacobs/patch-1

force login in store redirects to default login

1 of 1 new or added line in 1 file covered. (100.0%)

66 of 681 relevant lines covered (9.69%)

0.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Controller/ModuleCheck.php
1
<?php
2

3
/*
4
 * This file is part of the Force Login module for Magento2.
5
 *
6
 * (c) bitExpert AG
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
namespace BitExpert\ForceCustomerLogin\Controller;
13

14
use Magento\Framework\App\Config\ScopeConfigInterface;
15
use Magento\Store\Model\ScopeInterface;
16

17
/**
18
 * Class ModuleCheck
19
 *
20
 * @package BitExpert\ForceCustomerLogin\Controller
21
 */
22
class ModuleCheck
23
{
24
    /*
25
     * Configuration
26
     */
27
    const MODULE_CONFIG_ENABLED = 'customer/BitExpert_ForceCustomerLogin/enabled';
28

29
    /**
30
     * @var ScopeConfigInterface
31
     */
32
    private $scopeConfig;
33

34
    /**
35
     * ModuleCheck constructor.
36
     *
37
     * @param ScopeConfigInterface $scopeConfig
38
     */
39
    public function __construct(ScopeConfigInterface $scopeConfig)
40
    {
41
        $this->scopeConfig = $scopeConfig;
×
42
    }
×
43

44
    /**
45
     * @return bool
46
     */
47
    public function isModuleEnabled()
48
    {
49
        return !!$this->scopeConfig->getValue(
×
50
            self::MODULE_CONFIG_ENABLED,
×
51
            ScopeInterface::SCOPE_STORE
×
52
        );
53
    }
54
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2024 Coveralls, Inc