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

InlineAdminCommand::_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 InlineAdminCommand extends AbstractMagentoStoreConfigCommand
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $configPath = 'dev/translate_inline/active_admin';
13
14
    /**
15
     * @var string
16
     */
17
    protected $toggleComment = 'Inline Translation (Admin)';
18
19
    /**
20
     * @var string
21
     */
22
    protected $commandName = 'dev:translate:admin';
23
24
    /**
25
     * @var string
26
     */
27
    protected $commandDescription = 'Toggle inline translation tool for admin';
28
29
    /**
30
     * @var string
31
     */
32
    protected $scope = self::SCOPE_GLOBAL;
33
34
    /**
35
     * If required, handle the output and possible change of the developer IP restrictions
36
     *
37
     * @param \Mage_Core_Model_Store $store
38
     * @param bool $disabled
39
     */
40
    protected function _afterSave(\Mage_Core_Model_Store $store, $disabled)
41
    {
42
        $this->detectAskAndSetDeveloperIp($store, $disabled);
43
    }
44
}
45