mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-16 13:50:17 +02:00
SensioLabs Insight fixes
This commit is contained in:
parent
a0f4920333
commit
ce60a706ac
@ -42,17 +42,14 @@ class Factory
|
|||||||
// try a custom command
|
// try a custom command
|
||||||
$className = 'Command\\' . $commandName;
|
$className = 'Command\\' . $commandName;
|
||||||
|
|
||||||
// TODO use a custom exception
|
|
||||||
if (!class_exists($className)) {
|
if (!class_exists($className)) {
|
||||||
throw new Exception('Command "' . $commandName . '" not found.');
|
throw new Exception('Command "' . $commandName . '" not found.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @var AbstractCommand $instance */
|
/** @var AbstractCommand $instance */
|
||||||
// TODO dependencies like $config should be injected into constructor
|
|
||||||
$instance = new $className;
|
$instance = new $className;
|
||||||
if (! $instance instanceof AbstractCommand) {
|
if (! $instance instanceof AbstractCommand) {
|
||||||
// TODO use a custom exception
|
|
||||||
throw new Exception('The command ' . $commandName . ' must be an instance of Mage\Command\AbstractCommand.');
|
throw new Exception('The command ' . $commandName . ' must be an instance of Mage\Command\AbstractCommand.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ class GitRebaseTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
|||||||
{
|
{
|
||||||
$this->checkOverrideRelease();
|
$this->checkOverrideRelease();
|
||||||
|
|
||||||
if ($this->getConfig()->release('enabled', false) == true) {
|
if ($this->getConfig()->release('enabled', false) === true) {
|
||||||
$releasesDirectory = $this->getConfig()->release('directory', 'releases');
|
$releasesDirectory = $this->getConfig()->release('directory', 'releases');
|
||||||
|
|
||||||
$deployToDirectory = rtrim($this->getConfig()->deployment('to'), '/')
|
$deployToDirectory = rtrim($this->getConfig()->deployment('to'), '/')
|
||||||
|
Loading…
Reference in New Issue
Block a user