PHPStorm refactoring.

This commit is contained in:
Andrés Montañez
2014-08-06 14:01:39 -03:00
parent 4c584b2634
commit fddeebe59a
48 changed files with 2011 additions and 1996 deletions
+6 -6
View File
@@ -20,10 +20,10 @@ use Mage\Task\SkipException;
*/
class CloneTask extends AbstractTask
{
/**
* Name of the Task
* @var string
*/
/**
* Name of the Task
* @var string
*/
private $name = 'SCM Clone [built-in]';
/**
@@ -66,12 +66,12 @@ class CloneTask extends AbstractTask
case 'git':
// Clone Repo
$command = 'cd ' . $this->source['temporal'] . ' ; '
. 'git clone ' . $this->source['repository'] . ' . ';
. 'git clone ' . $this->source['repository'] . ' . ';
$result = $this->runCommandLocal($command);
// Checkout Branch
$command = 'cd ' . $this->source['temporal'] . ' ; '
. 'git checkout ' . $this->source['from'];
. 'git checkout ' . $this->source['from'];
$result = $result && $this->runCommandLocal($command);
$this->getConfig()->setFrom($this->source['temporal']);