Fixing PHPCS errors
This commit is contained in:
parent
cc6d0f2964
commit
ffa593f1a3
|
@ -104,7 +104,6 @@ class BuildStatusController extends \PHPCI\Controller
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$xml = new \SimpleXMLElement('<projects/>');
|
$xml = new \SimpleXMLElement('<projects/>');
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue