diff --git a/PHPCI/Application.php b/PHPCI/Application.php index dc9dda12..5de5a69a 100644 --- a/PHPCI/Application.php +++ b/PHPCI/Application.php @@ -1,9 +1,20 @@ +*/ class Application extends b8\Application { public function handleRequest() diff --git a/PHPCI/BuildFactory.php b/PHPCI/BuildFactory.php index d9dccf5f..96d1da18 100644 --- a/PHPCI/BuildFactory.php +++ b/PHPCI/BuildFactory.php @@ -1,4 +1,11 @@ +*/ class BuildFactory { public static function getBuild(Build $base) diff --git a/PHPCI/Builder.php b/PHPCI/Builder.php index d04f8bd9..9b68ec6a 100644 --- a/PHPCI/Builder.php +++ b/PHPCI/Builder.php @@ -1,10 +1,21 @@ +*/ class Builder { public $buildPath; diff --git a/PHPCI/Command/GenerateCommand.php b/PHPCI/Command/GenerateCommand.php index 52b12198..d9f74caf 100644 --- a/PHPCI/Command/GenerateCommand.php +++ b/PHPCI/Command/GenerateCommand.php @@ -1,4 +1,11 @@ $status, 'target_url' => \b8\Registry::getInstance()->get('install_url') . '/build/view/' . $this->getId()); - $http->setHeaders(array('Authorization: token ' . $project->getToken())); + $http->setHeaders(array( + 'Authorization: token ' . $project->getToken(), + 'Content-Type: application/x-www-form-urlencoded' + )); $http->request('POST', $url, json_encode($params)); } diff --git a/PHPCI/Model/Build/LocalBuild.php b/PHPCI/Model/Build/LocalBuild.php index d9d29f54..0bdce84e 100644 --- a/PHPCI/Model/Build/LocalBuild.php +++ b/PHPCI/Model/Build/LocalBuild.php @@ -1,8 +1,11 @@ +*/ interface Plugin { public function __construct(\PHPCI\Builder $phpci, array $options = array()); diff --git a/PHPCI/Plugin/Composer.php b/PHPCI/Plugin/Composer.php index 1760fb98..c5bfeceb 100644 --- a/PHPCI/Plugin/Composer.php +++ b/PHPCI/Plugin/Composer.php @@ -1,4 +1,11 @@