From 6094b7013c58b870aa6dda8051e425d49f021a04 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Thu, 16 May 2013 02:16:56 +0100 Subject: [PATCH] Add file-level docblock to every file. --- PHPCI/Application.php | 11 +++++++++++ PHPCI/BuildFactory.php | 11 +++++++++++ PHPCI/Builder.php | 11 +++++++++++ PHPCI/Command/GenerateCommand.php | 7 +++++++ PHPCI/Command/InstallCommand.php | 7 +++++++ PHPCI/Command/RunCommand.php | 7 +++++++ PHPCI/Controller/BitbucketController.php | 7 +++++++ PHPCI/Controller/BuildController.php | 7 +++++++ PHPCI/Controller/GithubController.php | 7 +++++++ PHPCI/Controller/IndexController.php | 7 +++++++ PHPCI/Controller/ProjectController.php | 7 +++++++ PHPCI/Controller/SessionController.php | 7 +++++++ PHPCI/Controller/UserController.php | 7 +++++++ PHPCI/Helper/User.php | 7 +++++++ PHPCI/Model/Build.php | 9 ++++++--- PHPCI/Model/Build/BitbucketBuild.php | 11 +++++++---- PHPCI/Model/Build/GithubBuild.php | 16 +++++++++++----- PHPCI/Model/Build/LocalBuild.php | 11 +++++++---- PHPCI/Model/Build/RemoteGitBuild.php | 11 +++++++---- PHPCI/Model/Project.php | 9 ++++++--- PHPCI/Model/User.php | 9 ++++++--- PHPCI/Plugin.php | 11 +++++++++++ PHPCI/Plugin/Composer.php | 7 +++++++ PHPCI/Plugin/Mysql.php | 7 +++++++ PHPCI/Plugin/Pgsql.php | 7 +++++++ PHPCI/Plugin/PhpCodeSniffer.php | 7 +++++++ PHPCI/Plugin/PhpCpd.php | 7 +++++++ PHPCI/Plugin/PhpMessDetector.php | 7 +++++++ PHPCI/Plugin/PhpSpec.php | 7 +++++++ PHPCI/Plugin/PhpUnit.php | 7 +++++++ PHPCI/Store/BuildStore.php | 9 ++++++--- PHPCI/Store/ProjectStore.php | 9 ++++++--- Tests/PHPCI/Plugin/PHPUnitTest.php | 15 ++++++++++++--- bootstrap.php | 7 +++++++ console | 7 +++++++ index.php | 10 +++++++--- 36 files changed, 272 insertions(+), 38 deletions(-) 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 @@