Completed
Pull Request — develop (#817)
by Robbie
04:29
created

InlineShopCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 33
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A _afterSave() 0 4 1
1
<?php
2
3
namespace N98\Magento\Command\Developer\Translate;
4
5
use N98\Magento\Command\AbstractMagentoStoreConfigCommand;
6
7
class InlineShopCommand extends AbstractMagentoStoreConfigCommand
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $configPath = 'dev/translate_inline/active';
13
14
    /**
15
     * @var string
16
     */
17
    protected $toggleComment = 'Inline Translation';
18
19
    /**
20
     * @var string
21
     */
22
    protected $commandName = 'dev:translate:shop';
23
24
    /**
25
     * @var string
26
     */
27
    protected $commandDescription = 'Toggle inline translation tool for shop';
28
29
    /**
30
     * If required, handle the output and possible change of the developer IP restrictions
31
     *
32
     * @param \Mage_Core_Model_Store $store
33
     * @param bool $disabled
34
     */
35
    protected function _afterSave(\Mage_Core_Model_Store $store, $disabled)
36
    {
37
        $this->detectAskAndSetDeveloperIp($store, $disabled);
38
    }
39
}
40