Fixing PHPCS errors

This commit is contained in:
Dan Cryer 2016-04-27 12:02:13 +01:00
parent cc6d0f2964
commit ffa593f1a3
2 changed files with 1 additions and 2 deletions

View file

@ -104,7 +104,6 @@ class BuildStatusController extends \PHPCI\Controller
} }
} }
} }
} catch (\Exception $e) { } catch (\Exception $e) {
$xml = new \SimpleXMLElement('<projects/>'); $xml = new \SimpleXMLElement('<projects/>');
} }

View file

@ -165,6 +165,7 @@ class BuildStore extends BuildStoreBase
$stmt->bindValue(':projectId', (int)$projectId, \PDO::PARAM_INT); $stmt->bindValue(':projectId', (int)$projectId, \PDO::PARAM_INT);
$stmt->bindValue(':buildId', (int)$buildId, \PDO::PARAM_INT); $stmt->bindValue(':buildId', (int)$buildId, \PDO::PARAM_INT);
$stmt->bindValue(':numResults', (int)$numResults, \PDO::PARAM_INT); $stmt->bindValue(':numResults', (int)$numResults, \PDO::PARAM_INT);
if (!is_null($branch)) { if (!is_null($branch)) {
$stmt->bindValue(':branch', $branch, \PDO::PARAM_STR); $stmt->bindValue(':branch', $branch, \PDO::PARAM_STR);
} }
@ -183,7 +184,6 @@ class BuildStore extends BuildStoreBase
} else { } else {
return $rtn; return $rtn;
} }
} else { } else {
return null; return null;
} }