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

InlineShopCommand::_afterSave()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
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