fix code sniff violations.
This commit is contained in:
parent
bb76952e6a
commit
b421b20935
|
@ -27,8 +27,7 @@ class Application extends b8\Application
|
|||
$opts = ['controller' => 'Home', 'action' => 'index'];
|
||||
|
||||
$this->router->clearRoutes();
|
||||
$this->router->register($route, $opts, function (&$route, Response &$response) use (&$request)
|
||||
{
|
||||
$this->router->register($route, $opts, function (&$route, Response &$response) use (&$request) {
|
||||
$skipValidation = in_array($route['controller'], array('session', 'webhook', 'build-status'));
|
||||
|
||||
if (!$skipValidation && !$this->validateSession()) {
|
||||
|
|
|
@ -197,8 +197,7 @@ class Builder implements LoggerAwareInterface
|
|||
// stages.
|
||||
if ($this->success) {
|
||||
$this->build->setStatus(Build::STATUS_SUCCESS);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$this->build->setStatus(Build::STATUS_FAILED);
|
||||
}
|
||||
|
||||
|
@ -208,8 +207,7 @@ class Builder implements LoggerAwareInterface
|
|||
if ($this->success) {
|
||||
$this->pluginExecutor->executePlugins($this->config, 'success');
|
||||
$this->buildLogger->logSuccess('BUILD SUCCESSFUL!');
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$this->pluginExecutor->executePlugins($this->config, 'failure');
|
||||
$this->buildLogger->logFailure("BUILD FAILURE");
|
||||
}
|
||||
|
@ -266,8 +264,8 @@ class Builder implements LoggerAwareInterface
|
|||
*/
|
||||
protected function setupBuild()
|
||||
{
|
||||
$buildId = 'project' . $this->build->getProject()->getId(
|
||||
) . '-build' . $this->build->getId();
|
||||
$buildId = 'project' . $this->build->getProject()->getId()
|
||||
. '-build' . $this->build->getId();
|
||||
$this->ciDir = dirname(dirname(__FILE__) . '/../') . '/';
|
||||
$this->buildPath = $this->ciDir . 'build/' . $buildId . '/';
|
||||
$this->build->currentBuildPath = $this->buildPath;
|
||||
|
@ -338,7 +336,7 @@ class Builder implements LoggerAwareInterface
|
|||
|
||||
$self = $this;
|
||||
$pluginFactory->registerResource(
|
||||
function () use($self) {
|
||||
function () use ($self) {
|
||||
return $self;
|
||||
},
|
||||
null,
|
||||
|
@ -346,7 +344,7 @@ class Builder implements LoggerAwareInterface
|
|||
);
|
||||
|
||||
$pluginFactory->registerResource(
|
||||
function () use($build) {
|
||||
function () use ($build) {
|
||||
return $build;
|
||||
},
|
||||
null,
|
||||
|
|
|
@ -4,4 +4,4 @@ namespace PHPCI;
|
|||
abstract class Model extends \b8\Model
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@ namespace PHPCI;
|
|||
abstract class Store extends \b8\Store
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue