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

InlineAdminCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 38
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 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