Skip to content
Snippets Groups Projects
Commit dd8162e9 authored by Ivan Gavryshko's avatar Ivan Gavryshko
Browse files

MAGETWO-36078: Move dev/tools/Magento/Tools/Webdev/file_assembler.php

- fixed static PHPMD issues
- chamges according to CR
parent bc217f4b
No related merge requests found
......@@ -4,7 +4,7 @@
* See COPYING.txt for license details.
*/
namespace Magento\Developer\Console;
namespace Magento\Developer\Console\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
......@@ -23,6 +23,7 @@ use Magento\Framework\App\Filesystem\DirectoryList;
/**
* Class CssDeployCommand
* @SuppressWarnings("PMD.CouplingBetweenObjects")
*/
class CssDeployCommand extends Command
{
......
......@@ -4,7 +4,7 @@
* See COPYING.txt for license details.
*/
namespace Magento\Developer\Test\Unit\Console;
namespace Magento\Developer\Test\Unit\Console\Command;
use Magento\Framework\Filesystem;
use Magento\Framework\View\Asset\Source;
......@@ -15,7 +15,7 @@ use Magento\Framework\App\ObjectManager\ConfigLoader;
use Magento\Framework\View\Asset\SourceFileGeneratorPool;
use Magento\Framework\View\Asset\PreProcessor\ChainFactoryInterface;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Developer\Console\CssDeployCommand;
use Magento\Developer\Console\Command\CssDeployCommand;
use Symfony\Component\Console\Tester\CommandTester;
class CssDeployCommandTest extends \PHPUnit_Framework_TestCase
......@@ -99,7 +99,6 @@ class CssDeployCommandTest extends \PHPUnit_Framework_TestCase
public function testExecute()
{
$file = 'css/styles-m' . '.less';
$content = '';
$this->configLoader->expects($this->once())->method('load')->with('frontend')->willReturn([]);
$this->objectManager->expects($this->once())->method('configure');
......
......@@ -27,7 +27,7 @@
<arguments>
<argument name="commands" xsi:type="array">
<item name="dev_tests_run" xsi:type="object">Magento\Developer\Console\Command\DevTestsRunCommand</item>
<item name="dev_css_deploy" xsi:type="object">Magento\Developer\Console\CssDeployCommand</item>
<item name="dev_css_deploy" xsi:type="object">Magento\Developer\Console\Command\CssDeployCommand</item>
</argument>
</arguments>
</type>
......
......@@ -246,6 +246,8 @@ class Deployer
* @param string $locale
* @param string $module
* @return void
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings(PHPMD.NPathComplexity)
*/
private function deployFile($filePath, $area, $themePath, $locale, $module)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment