Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kilip committed Oct 31, 2018
1 parent 5cadc3e commit 3977d3b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions module/Core/src/Controller/Console/SubsplitController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

namespace Core\Controller\Console;


use Interop\Container\ContainerInterface;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\ConsoleOutput;
Expand Down Expand Up @@ -48,28 +47,29 @@ class SubsplitController extends AbstractConsoleController
public function __construct()
{
$this->output = new ConsoleOutput();

}

static public function factory(ContainerInterface $container)
public static function factory(ContainerInterface $container)
{
return new static();
}

/**
* @return OutputInterface
*/
public function getOutput(): OutputInterface
public function getOutput()
{
return $this->output;
}

/**
* @param OutputInterface $output
* @return SubsplitController
*/
public function setOutput(OutputInterface $output): void
public function setOutput(OutputInterface $output)
{
$this->output = $output;
return $this;
}

public function indexAction()
Expand All @@ -79,13 +79,13 @@ public function indexAction()
$this->buildTree();
$workdir = $this->workdir;
$request = $this->getRequest();
$this->io = $io = new SymfonyStyle(new ArrayInput([]),$this->output);
$filter = $request->getParam('module',null);
$this->io = $io = new SymfonyStyle(new ArrayInput([]), $this->output);
$filter = $request->getParam('module', null);
$filter = null === $filter ? array() : explode(',', $filter);
$skipUpdate = $request->getParam('skip-update');
$heads = $request->getParam('heads','develop');
$tags = $request->getParam('tags',null);
if($request->getParam('verbose') || $request->getParam('v')){
$heads = $request->getParam('heads', 'develop');
$tags = $request->getParam('tags', null);
if ($request->getParam('verbose') || $request->getParam('v')) {
$this->getOutput()->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
}

Expand Down Expand Up @@ -155,11 +155,11 @@ private function publish($path, $repo, $heads = 'master', $tag = null)

private function runCommand($command)
{
if($this->io->getVerbosity() === OutputInterface::VERBOSITY_DEBUG){
if ($this->io->getVerbosity() === OutputInterface::VERBOSITY_DEBUG) {
$command.=' --debug';
$this->io->writeln("Executing: <info>$command</info>");
}
if($this->dryRun){
if ($this->dryRun) {
return;
}
//@codeCoverageIgnoreStart
Expand All @@ -182,4 +182,4 @@ public function handleProcessRun($type, $buffer)
}
$this->io->write($contents);
}
}
}

0 comments on commit 3977d3b

Please sign in to comment.