Fixed namespaces in docblocks (PHPCI -> PHPCensor)
This commit is contained in:
parent
41407e1d15
commit
32f5c01728
89 changed files with 167 additions and 168 deletions
|
|
@ -22,7 +22,7 @@ use b8\View;
|
|||
class Application extends b8\Application
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Controller
|
||||
* @var \PHPCensor\Controller
|
||||
*/
|
||||
protected $controller;
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class Builder implements LoggerAwareInterface
|
|||
protected $verbose = true;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ class Builder implements LoggerAwareInterface
|
|||
protected $interpolator;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Store\BuildStore
|
||||
* @var \PHPCensor\Store\BuildStore
|
||||
*/
|
||||
protected $store;
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ class Builder implements LoggerAwareInterface
|
|||
public $quiet = false;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Plugin\Util\Executor
|
||||
* @var \PHPCensor\Plugin\Util\Executor
|
||||
*/
|
||||
protected $pluginExecutor;
|
||||
|
||||
|
|
@ -99,8 +99,9 @@ class Builder implements LoggerAwareInterface
|
|||
|
||||
/**
|
||||
* Set up the builder.
|
||||
* @param \PHPCI\Model\Build $build
|
||||
* @param LoggerInterface $logger
|
||||
*
|
||||
* @param \PHPCensor\Model\Build $build
|
||||
* @param LoggerInterface $logger
|
||||
*/
|
||||
public function __construct(Build $build, LoggerInterface $logger = null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -100,9 +100,10 @@ class DaemoniseCommand extends Command
|
|||
}
|
||||
|
||||
/**
|
||||
* Called when log entries are made in Builder / the plugins.
|
||||
* @see \PHPCI\Builder::log()
|
||||
*/
|
||||
* Called when log entries are made in Builder / the plugins.
|
||||
*
|
||||
* @see \PHPCensor\Builder::log()
|
||||
*/
|
||||
public function logCallback($log)
|
||||
{
|
||||
$this->output->writeln($log);
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class RebuildCommand extends Command
|
|||
$runner->setMaxBuilds(1);
|
||||
$runner->setDaemon(false);
|
||||
|
||||
/** @var \PHPCI\Store\BuildStore $store */
|
||||
/** @var \PHPCensor\Store\BuildStore $store */
|
||||
$store = Factory::getStore('Build');
|
||||
$service = new BuildService($store);
|
||||
|
||||
|
|
@ -83,9 +83,10 @@ class RebuildCommand extends Command
|
|||
}
|
||||
|
||||
/**
|
||||
* Called when log entries are made in Builder / the plugins.
|
||||
* @see \PHPCI\Builder::log()
|
||||
*/
|
||||
* Called when log entries are made in Builder / the plugins.
|
||||
*
|
||||
* @see \PHPCensor\Builder::log()
|
||||
*/
|
||||
public function logCallback($log)
|
||||
{
|
||||
$this->output->writeln($log);
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ class RunCommand extends Command
|
|||
|
||||
protected function validateRunningBuilds()
|
||||
{
|
||||
/** @var \PHPCI\Store\BuildStore $store */
|
||||
/** @var \PHPCensor\Store\BuildStore $store */
|
||||
$store = Factory::getStore('Build');
|
||||
$running = $store->getByStatus(1);
|
||||
$rtn = [];
|
||||
|
|
@ -162,7 +162,7 @@ class RunCommand extends Command
|
|||
$timeout = Config::getInstance()->get('php-censor.build.failed_after', 1800);
|
||||
|
||||
foreach ($running['items'] as $build) {
|
||||
/** @var \PHPCI\Model\Build $build */
|
||||
/** @var \PHPCensor\Model\Build $build */
|
||||
$build = BuildFactory::getBuild($build);
|
||||
|
||||
$now = time();
|
||||
|
|
|
|||
|
|
@ -29,12 +29,12 @@ use PHPCensor\Controller;
|
|||
class BuildController extends Controller
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\BuildStore
|
||||
* @var \PHPCensor\Store\BuildStore
|
||||
*/
|
||||
protected $buildStore;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Service\BuildService
|
||||
* @var \PHPCensor\Service\BuildService
|
||||
*/
|
||||
protected $buildService;
|
||||
|
||||
|
|
@ -173,7 +173,7 @@ class BuildController extends Controller
|
|||
$data['finished'] = !is_null($build->getFinished()) ? $build->getFinished()->format('Y-m-d H:i:s') : null;
|
||||
$data['duration'] = $build->getDuration();
|
||||
|
||||
/** @var \PHPCI\Store\BuildErrorStore $errorStore */
|
||||
/** @var \PHPCensor\Store\BuildErrorStore $errorStore */
|
||||
$errorStore = b8\Store\Factory::getStore('BuildError');
|
||||
$errors = $errorStore->getErrorsForBuild($build->getId());
|
||||
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@ use PHPCensor\Controller;
|
|||
*/
|
||||
class BuildStatusController extends Controller
|
||||
{
|
||||
/* @var \PHPCI\Store\ProjectStore */
|
||||
/* @var \PHPCensor\Store\ProjectStore */
|
||||
protected $projectStore;
|
||||
/* @var \PHPCI\Store\BuildStore */
|
||||
/* @var \PHPCensor\Store\BuildStore */
|
||||
protected $buildStore;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use PHPCensor\Helper\Lang;
|
|||
class GroupController extends Controller
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\ProjectGroupStore
|
||||
* @var \PHPCensor\Store\ProjectGroupStore
|
||||
*/
|
||||
protected $groupStore;
|
||||
|
||||
|
|
|
|||
|
|
@ -24,17 +24,17 @@ use PHPCensor\Controller;
|
|||
class HomeController extends Controller
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\BuildStore
|
||||
* @var \PHPCensor\Store\BuildStore
|
||||
*/
|
||||
protected $buildStore;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Store\ProjectStore
|
||||
* @var \PHPCensor\Store\ProjectStore
|
||||
*/
|
||||
protected $projectStore;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Store\ProjectGroupStore
|
||||
* @var \PHPCensor\Store\ProjectGroupStore
|
||||
*/
|
||||
protected $groupStore;
|
||||
|
||||
|
|
|
|||
|
|
@ -30,22 +30,22 @@ use PHPCensor\Service\ProjectService;
|
|||
class ProjectController extends PHPCensor\Controller
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\ProjectStore
|
||||
* @var \PHPCensor\Store\ProjectStore
|
||||
*/
|
||||
protected $projectStore;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Service\ProjectService
|
||||
* @var \PHPCensor\Service\ProjectService
|
||||
*/
|
||||
protected $projectService;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Store\BuildStore
|
||||
* @var \PHPCensor\Store\BuildStore
|
||||
*/
|
||||
protected $buildStore;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Service\BuildService
|
||||
* @var \PHPCensor\Service\BuildService
|
||||
*/
|
||||
protected $buildService;
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ class ProjectController extends PHPCensor\Controller
|
|||
*/
|
||||
public function build($projectId, $branch = '')
|
||||
{
|
||||
/* @var \PHPCI\Model\Project $project */
|
||||
/* @var \PHPCensor\Model\Project $project */
|
||||
$project = $this->projectStore->getById($projectId);
|
||||
|
||||
if (empty($branch)) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use PHPCensor\Controller;
|
|||
class SessionController extends Controller
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\UserStore
|
||||
* @var \PHPCensor\Store\UserStore
|
||||
*/
|
||||
protected $userStore;
|
||||
|
||||
|
|
|
|||
|
|
@ -25,12 +25,12 @@ use PHPCensor\Service\UserService;
|
|||
class UserController extends Controller
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\UserStore
|
||||
* @var \PHPCensor\Store\UserStore
|
||||
*/
|
||||
protected $userStore;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Service\UserService
|
||||
* @var \PHPCensor\Service\UserService
|
||||
*/
|
||||
protected $userService;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace PHPCensor;
|
|||
/**
|
||||
* Error Handler
|
||||
*
|
||||
* @package PHPCI\Logging
|
||||
* @package PHPCensor\Logging
|
||||
*/
|
||||
class ErrorHandler
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use SensioLabs\AnsiConverter\AnsiToHtmlConverter;
|
|||
/**
|
||||
* Converts ANSI output to HTML.
|
||||
*
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
final class AnsiConverter
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ use Psr\Log\LogLevel;
|
|||
|
||||
/**
|
||||
* Handles running system commands with variables.
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
abstract class BaseCommandExecutor implements CommandExecutor
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ use PHPCensor\Model\Build;
|
|||
|
||||
/**
|
||||
* The BuildInterpolator class replaces variables in a string with build-specific information.
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
class BuildInterpolator
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace PHPCensor\Helper;
|
|||
|
||||
/**
|
||||
* Provides some basic diff processing functionality.
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
class Diff
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use PHPCensor\Builder;
|
|||
|
||||
/**
|
||||
* Helper class for sending emails using PHPCI's email configuration.
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
class Email
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ use b8\HttpClient;
|
|||
|
||||
/**
|
||||
* The Github Helper class provides some Github API call functionality.
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
class Github
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use b8\Config;
|
|||
/**
|
||||
* Languages Helper Class - Handles loading strings files and the strings within them.
|
||||
*
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
class Lang
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace PHPCensor\Helper;
|
|||
|
||||
/**
|
||||
* Class MailerFactory helps to set up and configure a SwiftMailer object.
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
class MailerFactory
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace PHPCensor\Helper;
|
|||
|
||||
/**
|
||||
* Helper class for dealing with SSH keys.
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
class SshKey
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace PHPCensor\Helper;
|
|||
|
||||
/**
|
||||
* Unix/Linux specific extension of the CommandExecutor class.
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
class UnixCommandExecutor extends BaseCommandExecutor
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace PHPCensor\Helper;
|
|||
|
||||
/**
|
||||
* Windows-specific extension of the CommandExecutor class.
|
||||
* @package PHPCI\Helper
|
||||
* @package PHPCensor\Helper
|
||||
*/
|
||||
class WindowsCommandExecutor extends BaseCommandExecutor
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use Psr\Log\LogLevel;
|
|||
|
||||
/**
|
||||
* Class BuildDBLogHandler writes the build log to the database.
|
||||
* @package PHPCI\Logging
|
||||
* @package PHPCensor\Logging
|
||||
*/
|
||||
class BuildDBLogHandler extends AbstractProcessingHandler
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use Psr\Log\LogLevel;
|
|||
|
||||
/**
|
||||
* Class BuildLogger
|
||||
* @package PHPCI\Logging
|
||||
* @package PHPCensor\Logging
|
||||
*/
|
||||
class BuildLogger implements LoggerAwareInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ use Psr\Log\LoggerInterface;
|
|||
|
||||
/**
|
||||
* Base Log Handler
|
||||
* @package PHPCI\Logging
|
||||
* @package PHPCensor\Logging
|
||||
*/
|
||||
class Handler
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ use PHPCensor\Model\Build;
|
|||
|
||||
/**
|
||||
* Class LoggedBuildContextTidier cleans up build log entries.
|
||||
* @package PHPCI\Logging
|
||||
* @package PHPCensor\Logging
|
||||
*/
|
||||
class LoggedBuildContextTidier
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use Monolog\Logger;
|
|||
|
||||
/**
|
||||
* Class LoggerConfig
|
||||
* @package PHPCI\Logging
|
||||
* @package PHPCensor\Logging
|
||||
*/
|
||||
class LoggerConfig
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||
|
||||
/**
|
||||
* Class OutputLogHandler outputs the build log to the terminal.
|
||||
* @package PHPCI\Logging
|
||||
* @package PHPCensor\Logging
|
||||
*/
|
||||
class OutputLogHandler extends AbstractProcessingHandler
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ use PHPCensor\Model\BuildError;
|
|||
class ConvertErrors extends AbstractMigration
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\BuildMetaStore
|
||||
* @var \PHPCensor\Store\BuildMetaStore
|
||||
*/
|
||||
protected $metaStore;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Store\BuildErrorStore
|
||||
* @var \PHPCensor\Store\BuildErrorStore
|
||||
*/
|
||||
protected $errorStore;
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ class ConvertErrors extends AbstractMigration
|
|||
$data = $this->metaStore->getErrorsForUpgrade(100);
|
||||
$count = count($data);
|
||||
|
||||
/** @var \PHPCI\Model\BuildMeta $meta */
|
||||
/** @var \PHPCensor\Model\BuildMeta $meta */
|
||||
foreach ($data as $meta) {
|
||||
switch ($meta->getMetaKey()) {
|
||||
case 'phpmd-data':
|
||||
|
|
|
|||
|
|
@ -568,9 +568,9 @@ class BuildBase extends Model
|
|||
/**
|
||||
* Get the Project model for this Build by Id.
|
||||
*
|
||||
* @uses \PHPCI\Store\ProjectStore::getById()
|
||||
* @uses \PHPCI\Model\Project
|
||||
* @return \PHPCI\Model\Project
|
||||
* @uses \PHPCensor\Store\ProjectStore::getById()
|
||||
* @uses \PHPCensor\Model\Project
|
||||
* @return \PHPCensor\Model\Project
|
||||
*/
|
||||
public function getProject()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -448,9 +448,9 @@ class BuildErrorBase extends Model
|
|||
/**
|
||||
* Get the Build model for this BuildError by Id.
|
||||
*
|
||||
* @uses \PHPCI\Store\BuildStore::getById()
|
||||
* @uses \PHPCI\Model\Build
|
||||
* @return \PHPCI\Model\Build
|
||||
* @uses \PHPCensor\Store\BuildStore::getById()
|
||||
* @uses \PHPCensor\Model\Build
|
||||
* @return \PHPCensor\Model\Build
|
||||
*/
|
||||
public function getBuild()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -296,9 +296,9 @@ class BuildMetaBase extends Model
|
|||
/**
|
||||
* Get the Project model for this BuildMeta by Id.
|
||||
*
|
||||
* @uses \PHPCI\Store\ProjectStore::getById()
|
||||
* @uses \PHPCI\Model\Project
|
||||
* @return \PHPCI\Model\Project
|
||||
* @uses \PHPCensor\Store\ProjectStore::getById()
|
||||
* @uses \PHPCensor\Model\Project
|
||||
* @return \PHPCensor\Model\Project
|
||||
*/
|
||||
public function getProject()
|
||||
{
|
||||
|
|
@ -353,9 +353,9 @@ class BuildMetaBase extends Model
|
|||
/**
|
||||
* Get the Build model for this BuildMeta by Id.
|
||||
*
|
||||
* @uses \PHPCI\Store\BuildStore::getById()
|
||||
* @uses \PHPCI\Model\Build
|
||||
* @return \PHPCI\Model\Build
|
||||
* @uses \PHPCensor\Store\BuildStore::getById()
|
||||
* @uses \PHPCensor\Model\Build
|
||||
* @return \PHPCensor\Model\Build
|
||||
*/
|
||||
public function getBuild()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -598,9 +598,9 @@ class ProjectBase extends Model
|
|||
/**
|
||||
* Get the ProjectGroup model for this Project by Id.
|
||||
*
|
||||
* @uses \PHPCI\Store\ProjectGroupStore::getById()
|
||||
* @uses \PHPCI\Model\ProjectGroup
|
||||
* @return \PHPCI\Model\ProjectGroup
|
||||
* @uses \PHPCensor\Store\ProjectGroupStore::getById()
|
||||
* @uses \PHPCensor\Model\ProjectGroup
|
||||
* @return \PHPCensor\Model\ProjectGroup
|
||||
*/
|
||||
public function getGroup()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use Symfony\Component\Yaml\Parser as YamlParser;
|
|||
|
||||
/**
|
||||
* Build Model
|
||||
* @uses PHPCI\Model\Base\BuildBase
|
||||
* @uses PHPCensor\Model\Base\BuildBase
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Core
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use PHPCensor\Model\Base\BuildErrorBase;
|
|||
|
||||
/**
|
||||
* BuildError Model
|
||||
* @uses PHPCI\Model\Base\BuildErrorBase
|
||||
* @uses PHPCensor\Model\Base\BuildErrorBase
|
||||
*/
|
||||
class BuildError extends BuildErrorBase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use PHPCensor\Model\Base\BuildMetaBase;
|
|||
/**
|
||||
* BuildMeta Model
|
||||
*
|
||||
* @uses PHPCI\Model\Base\BuildMetaBase
|
||||
* @uses PHPCensor\Model\Base\BuildMetaBase
|
||||
*/
|
||||
class BuildMeta extends BuildMetaBase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ use b8\Store;
|
|||
|
||||
/**
|
||||
* Project Model
|
||||
* @uses PHPCI\Model\Base\ProjectBase
|
||||
* @uses PHPCensor\Model\Base\ProjectBase
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Core
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use PHPCensor\Model\Base\ProjectGroupBase;
|
|||
|
||||
/**
|
||||
* ProjectGroup Model
|
||||
* @uses PHPCI\Model\Base\ProjectGroupBase
|
||||
* @uses PHPCensor\Model\Base\ProjectGroupBase
|
||||
*/
|
||||
class ProjectGroup extends ProjectGroupBase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ use PHPCensor\Model\Base\UserBase;
|
|||
|
||||
/**
|
||||
* User Model
|
||||
* @uses PHPCI\Model\Base\UserBase
|
||||
* @uses PHPCensor\Model\Base\UserBase
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
* @package PHPCI
|
||||
* @subpackage Core
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use PHPCensor\Plugin;
|
|||
|
||||
/**
|
||||
* Atoum plugin, runs Atoum tests within a project.
|
||||
* @package PHPCI\Plugin
|
||||
* @package PHPCensor\Plugin
|
||||
*/
|
||||
class Atoum implements Plugin
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,12 +27,12 @@ use PHPCensor\Plugin;
|
|||
class Email implements Plugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -26,12 +26,12 @@ use b8\Database;
|
|||
class Mysql implements Plugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class Pdepend implements Plugin
|
|||
{
|
||||
protected $args;
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -23,12 +23,12 @@ use PHPCensor\Plugin;
|
|||
class Pgsql implements Plugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ class Phing implements Plugin
|
|||
}
|
||||
|
||||
/**
|
||||
* @return \PHPCI\Builder
|
||||
* @return \PHPCensor\Builder
|
||||
*/
|
||||
public function getPhpci()
|
||||
{
|
||||
|
|
@ -106,7 +106,7 @@ class Phing implements Plugin
|
|||
}
|
||||
|
||||
/**
|
||||
* @param \PHPCI\Builder $phpci
|
||||
* @param \PHPCensor\Builder $phpci
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use PHPCensor\Model\BuildError;
|
|||
class PhpCodeSniffer implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
|
|
@ -90,8 +90,8 @@ class PhpCodeSniffer implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
|||
}
|
||||
|
||||
/**
|
||||
* @param \PHPCI\Builder $phpci
|
||||
* @param \PHPCI\Model\Build $build
|
||||
* @param \PHPCensor\Builder $phpci
|
||||
* @param \PHPCensor\Model\Build $build
|
||||
* @param array $options
|
||||
*/
|
||||
public function __construct(Builder $phpci, Build $build, array $options = [])
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ use PHPCensor\Plugin;
|
|||
class PhpCsFixer implements Plugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ use PHPCensor\Model\Build;
|
|||
class PhpDocblockChecker implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class PhpLoc implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
|||
*/
|
||||
protected $directory;
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ use PHPCensor\Model\Build;
|
|||
class PhpMessDetector implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ use PHPCensor\Plugin;
|
|||
class PhpParallelLint implements Plugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ use PHPCensor\Model\Build;
|
|||
class PhpSpec implements PHPCensor\Plugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,12 +27,12 @@ class PhpTalLint implements PHPCensor\Plugin
|
|||
protected $ignore;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ use PHPCensor\Plugin;
|
|||
class Shell implements Plugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class Sqlite implements Plugin
|
|||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -77,8 +77,8 @@ class TechnicalDebt implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
|
|||
}
|
||||
|
||||
/**
|
||||
* @param \PHPCI\Builder $phpci
|
||||
* @param \PHPCI\Model\Build $build
|
||||
* @param \PHPCensor\Builder $phpci
|
||||
* @param \PHPCensor\Model\Build $build
|
||||
* @param array $options
|
||||
*/
|
||||
public function __construct(Builder $phpci, Build $build, array $options = [])
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use PHPCensor\Plugin;
|
|||
|
||||
/**
|
||||
* Class ComposerPluginInformation
|
||||
* @package PHPCI\Plugin\Util
|
||||
* @package PHPCensor\Plugin\Util
|
||||
*/
|
||||
class ComposerPluginInformation implements InstalledPluginInformation
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ use PHPCensor\Store\BuildStore;
|
|||
|
||||
/**
|
||||
* Plugin Executor - Runs the configured plugins for a given build stage.
|
||||
* @package PHPCI\Plugin\Util
|
||||
* @package PHPCensor\Plugin\Util
|
||||
*/
|
||||
class Executor
|
||||
{
|
||||
|
|
@ -77,7 +77,7 @@ class Executor
|
|||
*/
|
||||
protected function getBranchSpecificPlugins(&$config, $stage, $pluginsToExecute)
|
||||
{
|
||||
/** @var \PHPCI\Model\Build $build */
|
||||
/** @var \PHPCensor\Model\Build $build */
|
||||
$build = $this->pluginFactory->getResourceFor('PHPCensor\Model\Build');
|
||||
$branch = $build->getBranch();
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use Pimple\Container;
|
|||
|
||||
/**
|
||||
* Plugin Factory - Loads Plugins and passes required dependencies.
|
||||
* @package PHPCI\Plugin\Util
|
||||
* @package PHPCensor\Plugin\Util
|
||||
*/
|
||||
class Factory
|
||||
{
|
||||
|
|
@ -71,7 +71,7 @@ class Factory
|
|||
* @param $className
|
||||
* @param array|null $options
|
||||
* @throws \InvalidArgumentException if $className doesn't represent a valid plugin
|
||||
* @return \PHPCI\Plugin
|
||||
* @return \PHPCensor\Plugin
|
||||
*/
|
||||
public function buildPlugin($className, $options = [])
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use PHPCensor\Plugin;
|
|||
|
||||
/**
|
||||
* Class FilesPluginInformation
|
||||
* @package PHPCI\Plugin\Util
|
||||
* @package PHPCensor\Plugin\Util
|
||||
*/
|
||||
class FilesPluginInformation implements InstalledPluginInformation
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ namespace PHPCensor\Plugin\Util;
|
|||
|
||||
/**
|
||||
* Interface InstalledPluginInformation
|
||||
* @package PHPCI\Plugin\Util
|
||||
* @package PHPCensor\Plugin\Util
|
||||
*/
|
||||
interface InstalledPluginInformation
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace PHPCensor\Plugin\Util;
|
|||
|
||||
/**
|
||||
* Class PluginInformationCollection
|
||||
* @package PHPCI\Plugin\Util
|
||||
* @package PHPCensor\Plugin\Util
|
||||
*/
|
||||
class PluginInformationCollection implements InstalledPluginInformation
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use Symfony\Component\Yaml\Yaml;
|
|||
|
||||
/**
|
||||
* Processes TAP format strings into usable test result data.
|
||||
* @package PHPCI\Plugin\Util
|
||||
* @package PHPCensor\Plugin\Util
|
||||
*/
|
||||
class TapParser
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use PHPCensor\Builder;
|
|||
* Class Codeception
|
||||
*
|
||||
* @author Adam Cooper <adam@networkpie.co.uk>
|
||||
* @package PHPCI\Plugin\Util\TestResultParsers
|
||||
* @package PHPCensor\Plugin\Util\TestResultParsers
|
||||
*/
|
||||
class Codeception implements ParserInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,12 +22,12 @@ use PHPCensor\Plugin;
|
|||
class Wipe implements Plugin
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Builder
|
||||
* @var \PHPCensor\Builder
|
||||
*/
|
||||
protected $phpci;
|
||||
|
||||
/**
|
||||
* @var \PHPCI\Model\Build
|
||||
* @var \PHPCensor\Model\Build
|
||||
*/
|
||||
protected $build;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,12 +21,12 @@ use PHPCensor\Store\BuildStore;
|
|||
/**
|
||||
* The build service handles the creation, duplication and deletion of builds.
|
||||
* Class BuildService
|
||||
* @package PHPCI\Service
|
||||
* @package PHPCensor\Service
|
||||
*/
|
||||
class BuildService
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\BuildStore
|
||||
* @var \PHPCensor\Store\BuildStore
|
||||
*/
|
||||
protected $buildStore;
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ class BuildService
|
|||
* @param string|null $committerEmail
|
||||
* @param string|null $commitMessage
|
||||
* @param string|null $extra
|
||||
* @return \PHPCI\Model\Build
|
||||
* @return \PHPCensor\Model\Build
|
||||
*/
|
||||
public function createBuild(
|
||||
Project $project,
|
||||
|
|
@ -105,7 +105,7 @@ class BuildService
|
|||
|
||||
/**
|
||||
* @param Build $copyFrom
|
||||
* @return \PHPCI\Model\Build
|
||||
* @return \PHPCensor\Model\Build
|
||||
*/
|
||||
public function createDuplicateBuild(Build $copyFrom)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use PHPCensor\Model\Build;
|
|||
|
||||
/**
|
||||
* Class BuildStatusService
|
||||
* @package PHPCI\Service
|
||||
* @package PHPCensor\Service
|
||||
*/
|
||||
class BuildStatusService
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,12 +15,12 @@ use PHPCensor\Store\ProjectStore;
|
|||
/**
|
||||
* The project service handles the creation, modification and deletion of projects.
|
||||
* Class ProjectService
|
||||
* @package PHPCI\Service
|
||||
* @package PHPCensor\Service
|
||||
*/
|
||||
class ProjectService
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\ProjectStore
|
||||
* @var \PHPCensor\Store\ProjectStore
|
||||
*/
|
||||
protected $projectStore;
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ class ProjectService
|
|||
* @param string $type
|
||||
* @param string $reference
|
||||
* @param array $options
|
||||
* @return \PHPCI\Model\Project
|
||||
* @return \PHPCensor\Model\Project
|
||||
*/
|
||||
public function createProject($title, $type, $reference, $options = [])
|
||||
{
|
||||
|
|
@ -54,7 +54,7 @@ class ProjectService
|
|||
* @param string $type
|
||||
* @param string $reference
|
||||
* @param array $options
|
||||
* @return \PHPCI\Model\Project
|
||||
* @return \PHPCensor\Model\Project
|
||||
*/
|
||||
public function updateProject(Project $project, $title, $type, $reference, $options = [])
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,12 +15,12 @@ use PHPCensor\Store\UserStore;
|
|||
/**
|
||||
* The user service handles the creation, modification and deletion of users.
|
||||
* Class UserService
|
||||
* @package PHPCI\Service
|
||||
* @package PHPCensor\Service
|
||||
*/
|
||||
class UserService
|
||||
{
|
||||
/**
|
||||
* @var \PHPCI\Store\UserStore
|
||||
* @var \PHPCensor\Store\UserStore
|
||||
*/
|
||||
protected $store;
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ class UserService
|
|||
* @param $emailAddress
|
||||
* @param $password
|
||||
* @param bool $isAdmin
|
||||
* @return \PHPCI\Model\User
|
||||
* @return \PHPCensor\Model\User
|
||||
*/
|
||||
public function createUser($name, $emailAddress, $password, $isAdmin = false)
|
||||
{
|
||||
|
|
@ -58,7 +58,7 @@ class UserService
|
|||
* @param $emailAddress
|
||||
* @param null $password
|
||||
* @param null $isAdmin
|
||||
* @return \PHPCI\Model\User
|
||||
* @return \PHPCensor\Model\User
|
||||
*/
|
||||
public function updateUser(User $user, $name, $emailAddress, $password = null, $isAdmin = null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ use PHPCensor\Store\Base\BuildErrorStoreBase;
|
|||
|
||||
/**
|
||||
* BuildError Store
|
||||
* @uses PHPCI\Store\Base\BuildErrorStoreBase
|
||||
* @uses PHPCensor\Store\Base\BuildErrorStoreBase
|
||||
*/
|
||||
class BuildErrorStore extends BuildErrorStoreBase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ use PHPCensor\Model\BuildMeta;
|
|||
|
||||
/**
|
||||
* BuildMeta Store
|
||||
* @uses PHPCI\Store\Base\BuildMetaStoreBase
|
||||
* @uses PHPCensor\Store\Base\BuildMetaStoreBase
|
||||
*/
|
||||
class BuildMetaStore extends BuildMetaStoreBase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use PHPCensor\Store\Base\ProjectGroupStoreBase;
|
|||
|
||||
/**
|
||||
* ProjectGroup Store
|
||||
* @uses PHPCI\Store\Base\ProjectGroupStoreBase
|
||||
* @uses PHPCensor\Store\Base\ProjectGroupStoreBase
|
||||
*/
|
||||
class ProjectGroupStore extends ProjectGroupStoreBase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ use PHPCensor\Helper\Lang;
|
|||
|
||||
$linkTemplate = $build->getFileLinkTemplate();
|
||||
|
||||
/** @var \PHPCI\Model\BuildError $error */
|
||||
/** @var \PHPCensor\Model\BuildError $error */
|
||||
foreach ($errors as $error):
|
||||
|
||||
$link = str_replace('{FILE}', $error->getFile(), $linkTemplate);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ use PHPCensor\Model\Build;
|
|||
|
||||
/**
|
||||
* Class BuildWorker
|
||||
* @package PHPCI\Worker
|
||||
* @package PHPCensor\Worker
|
||||
*/
|
||||
class BuildWorker
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue