Fixing new PHPCS errors.

This commit is contained in:
Dan Cryer 2015-10-05 14:17:13 +01:00
parent 6c33417839
commit ea1157066e
5 changed files with 5 additions and 8 deletions

View file

@ -41,8 +41,7 @@ class BuildFactory
*/
public static function getBuild(Build $base)
{
switch($base->getProject()->getType())
{
switch ($base->getProject()->getType()) {
case 'remote':
$type = 'RemoteGitBuild';
break;

View file

@ -71,7 +71,7 @@ class MailerFactory
} else {
// Check defaults
switch($configName) {
switch ($configName) {
case 'smtp_address':
return "localhost";
case 'default_mailto_address':

View file

@ -54,8 +54,7 @@ class GithubBuild extends RemoteGitBuild
$url = 'https://api.github.com/repos/'.$project->getReference().'/statuses/'.$this->getCommitId();
$http = new \b8\HttpClient();
switch($this->getStatus())
{
switch ($this->getStatus()) {
case 0:
case 1:
$status = 'pending';

View file

@ -69,8 +69,7 @@ class PackageBuild implements \PHPCI\Plugin
}
foreach ($this->format as $format) {
switch($format)
{
switch ($format) {
case 'tar':
$cmd = 'tar cfz "%s/%s.tar.gz" ./*';
break;

View file

@ -47,7 +47,7 @@ class Factory
*/
public static function createProcessControl()
{
switch(true) {
switch (true) {
case PosixProcessControl::isAvailable():
return new PosixProcessControl();