diff --git a/PHPCI/Application.php b/PHPCI/Application.php index 3f20c3ed..03e878d7 100644 --- a/PHPCI/Application.php +++ b/PHPCI/Application.php @@ -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()) { diff --git a/PHPCI/Builder.php b/PHPCI/Builder.php index eb3e08e9..e7ea97e3 100644 --- a/PHPCI/Builder.php +++ b/PHPCI/Builder.php @@ -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, diff --git a/PHPCI/Model.php b/PHPCI/Model.php index 392df656..7e314693 100644 --- a/PHPCI/Model.php +++ b/PHPCI/Model.php @@ -4,4 +4,4 @@ namespace PHPCI; abstract class Model extends \b8\Model { -} \ No newline at end of file +} diff --git a/PHPCI/Store.php b/PHPCI/Store.php index f0352680..6806a097 100644 --- a/PHPCI/Store.php +++ b/PHPCI/Store.php @@ -4,4 +4,4 @@ namespace PHPCI; abstract class Store extends \b8\Store { -} \ No newline at end of file +}