Skip to content

Commit 2d0e1f7

Browse files
Fred Sungeddielau
authored andcommitted
MAGETWO-38178: Check if Theme in use
- code style issues fixed.
1 parent 996cd6c commit 2d0e1f7

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

app/code/Magento/Theme/Model/ThemeValidator.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ public function __construct(
4848
StoreManagerInterface $storeManager,
4949
ThemeProviderInterface $themeProvider,
5050
ValueInterface $configData
51-
)
52-
{
51+
) {
5352
$this->storeManager = $storeManager;
5453
$this->themeProvider = $themeProvider;
5554
$this->configData = $configData;
@@ -89,4 +88,4 @@ public function validateIsThemeInUse($themePaths)
8988
}
9089
return $messages;
9190
}
92-
}
91+
}

app/code/Magento/Theme/Test/Unit/Console/Command/ThemeUninstallCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function setUp()
105105
'',
106106
false
107107
);
108-
$this->themeValidator = $this->getMock('Magento\Theme\Model\ThemeValidator',[], [], '', false);
108+
$this->themeValidator = $this->getMock('Magento\Theme\Model\ThemeValidator', [], [], '', false);
109109
$this->command = new ThemeUninstallCommand(
110110
$this->cache,
111111
$this->cleanupFiles,

app/code/Magento/Theme/Test/Unit/Model/ThemeValidatorTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ protected function setUp()
3535
{
3636
$this->storeManager = $this->getMock('Magento\Store\Model\StoreManagerInterface', [], [], '', false);
3737
$this->themeProvider = $this->getMock(
38-
'Magento\Framework\View\Design\Theme\ThemeProviderInterface', [], [], '', false
38+
'Magento\Framework\View\Design\Theme\ThemeProviderInterface',
39+
[],
40+
[],
41+
'',
42+
false
3943
);
4044
$this->configData = $this->getMock(
4145
'Magento\Framework\App\Config\Value',

0 commit comments

Comments
 (0)