Remove whitespace from empty lines, reformatted inline comments
This commit is contained in:
parent
66ffea12f0
commit
fe9289eda5
|
@ -86,10 +86,7 @@ class WebhookController extends \b8\Controller
|
||||||
{
|
{
|
||||||
$project = $this->fetchProject($projectId, 'bitbucket');
|
$project = $this->fetchProject($projectId, 'bitbucket');
|
||||||
|
|
||||||
/*
|
// Support both old services and new webhooks
|
||||||
* support both old services and new webhooks
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($payload = $this->getParam('payload')) {
|
if ($payload = $this->getParam('payload')) {
|
||||||
return $this->bitbucketService(json_decode($payload, true), $project);
|
return $this->bitbucketService(json_decode($payload, true), $project);
|
||||||
}
|
}
|
||||||
|
@ -97,9 +94,7 @@ class WebhookController extends \b8\Controller
|
||||||
$payload = json_decode(file_get_contents("php://input"), true);
|
$payload = json_decode(file_get_contents("php://input"), true);
|
||||||
|
|
||||||
if (empty($payload['push']['changes'])) {
|
if (empty($payload['push']['changes'])) {
|
||||||
/*
|
// Invalid event from bitbucket
|
||||||
* invalid event from bitbucket
|
|
||||||
*/
|
|
||||||
return [
|
return [
|
||||||
'status' => 'failed',
|
'status' => 'failed',
|
||||||
'commits' => []
|
'commits' => []
|
||||||
|
|
Loading…
Reference in a new issue