Fixed namespaces (PHPCI -> PHPCensor)

This commit is contained in:
Dmitry Khomutov 2016-07-20 00:28:11 +06:00
parent 60d74b0b44
commit 60a2b7282a
238 changed files with 1019 additions and 868 deletions

1
.gitignore vendored
View file

@ -5,4 +5,3 @@
/app/loggerconfig.php /app/loggerconfig.php
/app/pluginconfig.php /app/pluginconfig.php
/app/config.yml /app/config.yml
/tests/PHPCI/config.yml

View file

@ -18,7 +18,7 @@ if (!is_array($writeServers)) {
$conf = [ $conf = [
'paths' => [ 'paths' => [
'migrations' => 'src/PHPCI/Migrations', 'migrations' => 'src/PHPCensor/Migrations',
], ],
'environments' => [ 'environments' => [
'default_migration_table' => 'migration', 'default_migration_table' => 'migration',

View file

@ -1,6 +1,6 @@
<?php <?php
return function (PHPCI\Plugin\Util\Factory $factory) { return function (PHPCensor\Plugin\Util\Factory $factory) {
$factory->registerResource( $factory->registerResource(
// This function will be called when the resource is needed. // This function will be called when the resource is needed.
function() { function() {
@ -18,6 +18,6 @@ return function (PHPCI\Plugin\Util\Factory $factory) {
"ResourceArray", "ResourceArray",
// The resource will only be given when the type hint is: // The resource will only be given when the type hint is:
PHPCI\Plugin\Util\Factory::TYPE_ARRAY PHPCensor\Plugin\Util\Factory::TYPE_ARRAY
); );
}; };

View file

@ -9,17 +9,17 @@
* @link http://www.phptesting.org/ * @link http://www.phptesting.org/
*/ */
use PHPCI\Command\RunCommand; use PHPCensor\Command\RunCommand;
use PHPCI\Command\RebuildCommand; use PHPCensor\Command\RebuildCommand;
use PHPCI\Command\UpdateCommand; use PHPCensor\Command\UpdateCommand;
use PHPCI\Command\InstallCommand; use PHPCensor\Command\InstallCommand;
use PHPCI\Command\DaemonCommand; use PHPCensor\Command\DaemonCommand;
use PHPCI\Command\PollCommand; use PHPCensor\Command\PollCommand;
use PHPCI\Command\CreateAdminCommand; use PHPCensor\Command\CreateAdminCommand;
use PHPCI\Command\CreateBuildCommand; use PHPCensor\Command\CreateBuildCommand;
use PHPCI\Command\WorkerCommand; use PHPCensor\Command\WorkerCommand;
use PHPCI\Command\RebuildQueueCommand; use PHPCensor\Command\RebuildQueueCommand;
use PHPCI\Service\BuildService; use PHPCensor\Service\BuildService;
use Symfony\Component\Console\Application; use Symfony\Component\Console\Application;
use b8\Store\Factory; use b8\Store\Factory;

View file

@ -9,7 +9,7 @@
* @link http://www.phptesting.org/ * @link http://www.phptesting.org/
*/ */
use PHPCI\Command\DaemoniseCommand; use PHPCensor\Command\DaemoniseCommand;
use Symfony\Component\Console\Application; use Symfony\Component\Console\Application;
define('PHPCI_IS_CONSOLE', true); define('PHPCI_IS_CONSOLE', true);

View file

@ -7,14 +7,14 @@
* @link http://www.phptesting.org/ * @link http://www.phptesting.org/
*/ */
use PHPCI\Logging\LoggerConfig; use PHPCensor\Logging\LoggerConfig;
if (!defined('ROOT_DIR')) { if (!defined('ROOT_DIR')) {
define('ROOT_DIR', __DIR__ . DIRECTORY_SEPARATOR); define('ROOT_DIR', __DIR__ . DIRECTORY_SEPARATOR);
} }
if (!defined('PHPCI_DIR')) { if (!defined('PHPCI_DIR')) {
define('PHPCI_DIR', ROOT_DIR . 'src' . DIRECTORY_SEPARATOR . 'PHPCI' . DIRECTORY_SEPARATOR); define('PHPCI_DIR', ROOT_DIR . 'src' . DIRECTORY_SEPARATOR . 'PHPCensor' . DIRECTORY_SEPARATOR);
} }
if (!defined('PHPCI_PUBLIC_DIR')) { if (!defined('PHPCI_PUBLIC_DIR')) {
@ -43,7 +43,7 @@ if (!defined('IS_WIN')) {
require_once(ROOT_DIR . 'vendor/autoload.php'); require_once(ROOT_DIR . 'vendor/autoload.php');
\PHPCI\ErrorHandler::register(); \PHPCensor\ErrorHandler::register();
if (defined('PHPCI_IS_CONSOLE') && PHPCI_IS_CONSOLE) { if (defined('PHPCI_IS_CONSOLE') && PHPCI_IS_CONSOLE) {
$loggerConfig = LoggerConfig::newFromFile(PHPCI_APP_DIR . "loggerconfig.php"); $loggerConfig = LoggerConfig::newFromFile(PHPCI_APP_DIR . "loggerconfig.php");
@ -51,7 +51,7 @@ if (defined('PHPCI_IS_CONSOLE') && PHPCI_IS_CONSOLE) {
// Load configuration if present: // Load configuration if present:
$conf = []; $conf = [];
$conf['b8']['app']['namespace'] = 'PHPCI'; $conf['b8']['app']['namespace'] = 'PHPCensor';
$conf['b8']['app']['default_controller'] = 'Home'; $conf['b8']['app']['default_controller'] = 'Home';
$conf['b8']['view']['path'] = PHPCI_DIR . 'View' . DIRECTORY_SEPARATOR; $conf['b8']['view']['path'] = PHPCI_DIR . 'View' . DIRECTORY_SEPARATOR;
@ -70,4 +70,4 @@ if (!defined('PHPCI_IS_CONSOLE')) {
define('PHPCI_IS_CONSOLE', false); define('PHPCI_IS_CONSOLE', false);
} }
\PHPCI\Helper\Lang::init($config); \PHPCensor\Helper\Lang::init($config);

View file

@ -26,14 +26,14 @@
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"PHPCI\\": "src/PHPCI/", "PHPCensor\\": "src/PHPCensor/",
"b8\\": "src/B8Framework/" "b8\\": "src/B8Framework/"
} }
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {
"Tests\\PHPCI\\": "tests/PHPCI/", "Tests\\PHPCensor\\": "tests/PHPCensor/",
"Tests\\b8\\": "tests/B8Framework/" "Tests\\b8\\": "tests/B8Framework/"
} }
}, },
"require": { "require": {

429
composer.lock generated
View file

@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"hash": "1a7e6ffa53784a02d845d40fc34455f1", "hash": "051fd6b7588f4f8e7d0a838f6a98b892",
"content-hash": "aea45980fd51944fe67aeb4a0677ec88", "content-hash": "aadffadc413d506fc161c5486c8bd885",
"packages": [ "packages": [
{ {
"name": "ircmaxell/password-compat", "name": "ircmaxell/password-compat",
@ -262,16 +262,16 @@
}, },
{ {
"name": "robmorgan/phinx", "name": "robmorgan/phinx",
"version": "v0.5.3", "version": "v0.5.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/robmorgan/phinx.git", "url": "https://github.com/robmorgan/phinx.git",
"reference": "4e7fee7792f4bf3dbf55ee29001850ba26c86a88" "reference": "da9950a5e5b9314ebf72ddc6317ed587ce9ba8dc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/robmorgan/phinx/zipball/4e7fee7792f4bf3dbf55ee29001850ba26c86a88", "url": "https://api.github.com/repos/robmorgan/phinx/zipball/da9950a5e5b9314ebf72ddc6317ed587ce9ba8dc",
"reference": "4e7fee7792f4bf3dbf55ee29001850ba26c86a88", "reference": "da9950a5e5b9314ebf72ddc6317ed587ce9ba8dc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -297,17 +297,17 @@
"MIT" "MIT"
], ],
"authors": [ "authors": [
{
"name": "Rob Morgan",
"email": "robbym@gmail.com",
"homepage": "http://robmorgan.id.au",
"role": "Lead Developer"
},
{ {
"name": "Woody Gilk", "name": "Woody Gilk",
"email": "woody.gilk@gmail.com", "email": "woody.gilk@gmail.com",
"homepage": "http://shadowhand.me", "homepage": "http://shadowhand.me",
"role": "Developer" "role": "Developer"
},
{
"name": "Rob Morgan",
"email": "robbym@gmail.com",
"homepage": "https://robmorgan.id.au",
"role": "Lead Developer"
} }
], ],
"description": "Phinx makes it ridiculously easy to manage the database migrations for your PHP app.", "description": "Phinx makes it ridiculously easy to manage the database migrations for your PHP app.",
@ -319,7 +319,7 @@
"migrations", "migrations",
"phinx" "phinx"
], ],
"time": "2016-03-07 14:09:22" "time": "2016-06-17 15:29:02"
}, },
{ {
"name": "sensiolabs/ansi-to-html", "name": "sensiolabs/ansi-to-html",
@ -367,23 +367,23 @@
}, },
{ {
"name": "swiftmailer/swiftmailer", "name": "swiftmailer/swiftmailer",
"version": "v5.4.1", "version": "v5.4.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/swiftmailer/swiftmailer.git", "url": "https://github.com/swiftmailer/swiftmailer.git",
"reference": "0697e6aa65c83edf97bb0f23d8763f94e3f11421" "reference": "4cc92842069c2bbc1f28daaaf1d2576ec4dfe153"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/0697e6aa65c83edf97bb0f23d8763f94e3f11421", "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/4cc92842069c2bbc1f28daaaf1d2576ec4dfe153",
"reference": "0697e6aa65c83edf97bb0f23d8763f94e3f11421", "reference": "4cc92842069c2bbc1f28daaaf1d2576ec4dfe153",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.3.3"
}, },
"require-dev": { "require-dev": {
"mockery/mockery": "~0.9.1,<0.9.4" "mockery/mockery": "~0.9.1"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
@ -416,20 +416,20 @@
"mail", "mail",
"mailer" "mailer"
], ],
"time": "2015-06-06 14:19:39" "time": "2016-07-08 11:51:25"
}, },
{ {
"name": "symfony/config", "name": "symfony/config",
"version": "v3.0.4", "version": "v3.1.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/config.git", "url": "https://github.com/symfony/config.git",
"reference": "980ee40c28f00acff8906c11b778aab5f0db74c2" "reference": "bcf5aebabc95b56e370e13d78565f74c7d8726dc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/config/zipball/980ee40c28f00acff8906c11b778aab5f0db74c2", "url": "https://api.github.com/repos/symfony/config/zipball/bcf5aebabc95b56e370e13d78565f74c7d8726dc",
"reference": "980ee40c28f00acff8906c11b778aab5f0db74c2", "reference": "bcf5aebabc95b56e370e13d78565f74c7d8726dc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -442,7 +442,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "3.0-dev" "dev-master": "3.1-dev"
} }
}, },
"autoload": { "autoload": {
@ -469,20 +469,20 @@
], ],
"description": "Symfony Config Component", "description": "Symfony Config Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2016-03-04 07:55:57" "time": "2016-06-29 05:41:56"
}, },
{ {
"name": "symfony/console", "name": "symfony/console",
"version": "v2.8.4", "version": "v2.8.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/console.git", "url": "https://github.com/symfony/console.git",
"reference": "9a5aef5fc0d4eff86853d44202b02be8d5a20154" "reference": "c392a6ec72f2122748032c2ad6870420561ffcfa"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/9a5aef5fc0d4eff86853d44202b02be8d5a20154", "url": "https://api.github.com/repos/symfony/console/zipball/c392a6ec72f2122748032c2ad6870420561ffcfa",
"reference": "9a5aef5fc0d4eff86853d44202b02be8d5a20154", "reference": "c392a6ec72f2122748032c2ad6870420561ffcfa",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -529,20 +529,20 @@
], ],
"description": "Symfony Console Component", "description": "Symfony Console Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2016-03-17 09:19:04" "time": "2016-06-29 07:02:14"
}, },
{ {
"name": "symfony/filesystem", "name": "symfony/filesystem",
"version": "v3.0.4", "version": "v3.1.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/filesystem.git", "url": "https://github.com/symfony/filesystem.git",
"reference": "f82499a459dcade2ea56df94cc58b19c8bde3d20" "reference": "322da5f0910d8aa0b25fa65ffccaba68dbddb890"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/f82499a459dcade2ea56df94cc58b19c8bde3d20", "url": "https://api.github.com/repos/symfony/filesystem/zipball/322da5f0910d8aa0b25fa65ffccaba68dbddb890",
"reference": "f82499a459dcade2ea56df94cc58b19c8bde3d20", "reference": "322da5f0910d8aa0b25fa65ffccaba68dbddb890",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -551,7 +551,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "3.0-dev" "dev-master": "3.1-dev"
} }
}, },
"autoload": { "autoload": {
@ -578,20 +578,20 @@
], ],
"description": "Symfony Filesystem Component", "description": "Symfony Filesystem Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2016-03-27 10:24:39" "time": "2016-06-29 05:41:56"
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "v1.1.1", "version": "v1.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "1289d16209491b584839022f29257ad859b8532d" "reference": "dff51f72b0706335131b00a7f49606168c582594"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/1289d16209491b584839022f29257ad859b8532d", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/dff51f72b0706335131b00a7f49606168c582594",
"reference": "1289d16209491b584839022f29257ad859b8532d", "reference": "dff51f72b0706335131b00a7f49606168c582594",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -603,7 +603,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.1-dev" "dev-master": "1.2-dev"
} }
}, },
"autoload": { "autoload": {
@ -637,20 +637,20 @@
"portable", "portable",
"shim" "shim"
], ],
"time": "2016-01-20 09:13:37" "time": "2016-05-18 14:26:46"
}, },
{ {
"name": "symfony/yaml", "name": "symfony/yaml",
"version": "v2.8.4", "version": "v2.8.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/yaml.git", "url": "https://github.com/symfony/yaml.git",
"reference": "584e52cb8f788a887553ba82db6caacb1d6260bb" "reference": "dba4bb5846798cd12f32e2d8f3f35d77045773c8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/584e52cb8f788a887553ba82db6caacb1d6260bb", "url": "https://api.github.com/repos/symfony/yaml/zipball/dba4bb5846798cd12f32e2d8f3f35d77045773c8",
"reference": "584e52cb8f788a887553ba82db6caacb1d6260bb", "reference": "dba4bb5846798cd12f32e2d8f3f35d77045773c8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -686,7 +686,7 @@
], ],
"description": "Symfony Yaml Component", "description": "Symfony Yaml Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2016-03-04 07:54:35" "time": "2016-06-29 05:29:29"
} }
], ],
"packages-dev": [ "packages-dev": [
@ -885,38 +885,87 @@
"time": "2016-03-10 15:15:04" "time": "2016-03-10 15:15:04"
}, },
{ {
"name": "phpdocumentor/reflection-docblock", "name": "phpdocumentor/reflection-common",
"version": "2.0.4", "version": "1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
"reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8" "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8", "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c",
"reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8", "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.5"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "~4.0" "phpunit/phpunit": "^4.6"
},
"suggest": {
"dflydev/markdown": "~1.0",
"erusev/parsedown": "~1.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.0.x-dev" "dev-master": "1.0.x-dev"
} }
}, },
"autoload": { "autoload": {
"psr-0": { "psr-4": {
"phpDocumentor": [ "phpDocumentor\\Reflection\\": [
"src"
]
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jaap van Otterdijk",
"email": "opensource@ijaap.nl"
}
],
"description": "Common reflection classes used by phpdocumentor to reflect the code structure",
"homepage": "http://www.phpdoc.org",
"keywords": [
"FQSEN",
"phpDocumentor",
"phpdoc",
"reflection",
"static analysis"
],
"time": "2015-12-27 11:43:31"
},
{
"name": "phpdocumentor/reflection-docblock",
"version": "3.1.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
"reference": "9270140b940ff02e58ec577c237274e92cd40cdd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9270140b940ff02e58ec577c237274e92cd40cdd",
"reference": "9270140b940ff02e58ec577c237274e92cd40cdd",
"shasum": ""
},
"require": {
"php": ">=5.5",
"phpdocumentor/reflection-common": "^1.0@dev",
"phpdocumentor/type-resolver": "^0.2.0",
"webmozart/assert": "^1.0"
},
"require-dev": {
"mockery/mockery": "^0.9.4",
"phpunit/phpunit": "^4.4"
},
"type": "library",
"autoload": {
"psr-4": {
"phpDocumentor\\Reflection\\": [
"src/" "src/"
] ]
} }
@ -928,30 +977,78 @@
"authors": [ "authors": [
{ {
"name": "Mike van Riel", "name": "Mike van Riel",
"email": "mike.vanriel@naenius.com" "email": "me@mikevanriel.com"
} }
], ],
"time": "2015-02-03 12:10:50" "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
"time": "2016-06-10 09:48:41"
}, },
{ {
"name": "phploc/phploc", "name": "phpdocumentor/type-resolver",
"version": "3.0.0", "version": "0.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phploc.git", "url": "https://github.com/phpDocumentor/TypeResolver.git",
"reference": "2917d010fbfd503d9e836cefff249cb3c1b3f17a" "reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phploc/zipball/2917d010fbfd503d9e836cefff249cb3c1b3f17a", "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/b39c7a5b194f9ed7bd0dd345c751007a41862443",
"reference": "2917d010fbfd503d9e836cefff249cb3c1b3f17a", "reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443",
"shasum": ""
},
"require": {
"php": ">=5.5",
"phpdocumentor/reflection-common": "^1.0"
},
"require-dev": {
"mockery/mockery": "^0.9.4",
"phpunit/phpunit": "^5.2||^4.8.24"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"phpDocumentor\\Reflection\\": [
"src/"
]
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Mike van Riel",
"email": "me@mikevanriel.com"
}
],
"time": "2016-06-10 07:14:17"
},
{
"name": "phploc/phploc",
"version": "3.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phploc.git",
"reference": "74f917e6f80f291856989960d31afa44a4196859"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phploc/zipball/74f917e6f80f291856989960d31afa44a4196859",
"reference": "74f917e6f80f291856989960d31afa44a4196859",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.6", "php": ">=5.6",
"sebastian/finder-facade": "~1.1", "sebastian/finder-facade": "~1.1",
"sebastian/git": "~2.0", "sebastian/git": "~2.1",
"sebastian/version": "~1.0.3", "sebastian/version": "~1.0.3|~2.0",
"symfony/console": "~2.5|~3.0" "symfony/console": "~2.5|~3.0"
}, },
"require-dev": { "require-dev": {
@ -984,24 +1081,24 @@
], ],
"description": "A tool for quickly measuring the size of a PHP project.", "description": "A tool for quickly measuring the size of a PHP project.",
"homepage": "https://github.com/sebastianbergmann/phploc", "homepage": "https://github.com/sebastianbergmann/phploc",
"time": "2016-01-13 10:20:53" "time": "2016-04-25 08:11:21"
}, },
{ {
"name": "phpmd/phpmd", "name": "phpmd/phpmd",
"version": "2.4.2", "version": "2.4.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpmd/phpmd.git", "url": "https://github.com/phpmd/phpmd.git",
"reference": "fccbdb6b222f6d7a6d35af1c396ba5435cec76a9" "reference": "2b9c2417a18696dfb578b38c116cd0ddc19b256e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpmd/phpmd/zipball/fccbdb6b222f6d7a6d35af1c396ba5435cec76a9", "url": "https://api.github.com/repos/phpmd/phpmd/zipball/2b9c2417a18696dfb578b38c116cd0ddc19b256e",
"reference": "fccbdb6b222f6d7a6d35af1c396ba5435cec76a9", "reference": "2b9c2417a18696dfb578b38c116cd0ddc19b256e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"pdepend/pdepend": "~2.0", "pdepend/pdepend": "^2.0.4",
"php": ">=5.3.0" "php": ">=5.3.0"
}, },
"require-dev": { "require-dev": {
@ -1049,36 +1146,36 @@
"phpmd", "phpmd",
"pmd" "pmd"
], ],
"time": "2016-03-10 17:17:44" "time": "2016-04-04 11:52:04"
}, },
{ {
"name": "phpspec/prophecy", "name": "phpspec/prophecy",
"version": "v1.6.0", "version": "v1.6.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpspec/prophecy.git", "url": "https://github.com/phpspec/prophecy.git",
"reference": "3c91bdf81797d725b14cb62906f9a4ce44235972" "reference": "58a8137754bc24b25740d4281399a4a3596058e0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/3c91bdf81797d725b14cb62906f9a4ce44235972", "url": "https://api.github.com/repos/phpspec/prophecy/zipball/58a8137754bc24b25740d4281399a4a3596058e0",
"reference": "3c91bdf81797d725b14cb62906f9a4ce44235972", "reference": "58a8137754bc24b25740d4281399a4a3596058e0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"doctrine/instantiator": "^1.0.2", "doctrine/instantiator": "^1.0.2",
"php": "^5.3|^7.0", "php": "^5.3|^7.0",
"phpdocumentor/reflection-docblock": "~2.0", "phpdocumentor/reflection-docblock": "^2.0|^3.0.2",
"sebastian/comparator": "~1.1", "sebastian/comparator": "^1.1",
"sebastian/recursion-context": "~1.0" "sebastian/recursion-context": "^1.0"
}, },
"require-dev": { "require-dev": {
"phpspec/phpspec": "~2.0" "phpspec/phpspec": "^2.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.5.x-dev" "dev-master": "1.6.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -1111,7 +1208,7 @@
"spy", "spy",
"stub" "stub"
], ],
"time": "2016-02-15 07:46:21" "time": "2016-06-07 08:13:47"
}, },
{ {
"name": "phpunit/php-code-coverage", "name": "phpunit/php-code-coverage",
@ -1265,21 +1362,24 @@
}, },
{ {
"name": "phpunit/php-timer", "name": "phpunit/php-timer",
"version": "1.0.7", "version": "1.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/php-timer.git", "url": "https://github.com/sebastianbergmann/php-timer.git",
"reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b" "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b", "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/38e9124049cf1a164f1e4537caf19c99bf1eb260",
"reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b", "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.3.3"
}, },
"require-dev": {
"phpunit/phpunit": "~4|~5"
},
"type": "library", "type": "library",
"autoload": { "autoload": {
"classmap": [ "classmap": [
@ -1302,7 +1402,7 @@
"keywords": [ "keywords": [
"timer" "timer"
], ],
"time": "2015-06-21 08:01:12" "time": "2016-05-12 18:03:57"
}, },
{ {
"name": "phpunit/php-token-stream", "name": "phpunit/php-token-stream",
@ -1355,16 +1455,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "4.8.24", "version": "4.8.26",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "a1066c562c52900a142a0e2bbf0582994671385e" "reference": "fc1d8cd5b5de11625979125c5639347896ac2c74"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a1066c562c52900a142a0e2bbf0582994671385e", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fc1d8cd5b5de11625979125c5639347896ac2c74",
"reference": "a1066c562c52900a142a0e2bbf0582994671385e", "reference": "fc1d8cd5b5de11625979125c5639347896ac2c74",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1378,7 +1478,7 @@
"phpunit/php-code-coverage": "~2.1", "phpunit/php-code-coverage": "~2.1",
"phpunit/php-file-iterator": "~1.4", "phpunit/php-file-iterator": "~1.4",
"phpunit/php-text-template": "~1.2", "phpunit/php-text-template": "~1.2",
"phpunit/php-timer": ">=1.0.6", "phpunit/php-timer": "^1.0.6",
"phpunit/phpunit-mock-objects": "~2.3", "phpunit/phpunit-mock-objects": "~2.3",
"sebastian/comparator": "~1.1", "sebastian/comparator": "~1.1",
"sebastian/diff": "~1.2", "sebastian/diff": "~1.2",
@ -1423,7 +1523,7 @@
"testing", "testing",
"xunit" "xunit"
], ],
"time": "2016-03-14 06:16:08" "time": "2016-05-17 03:09:28"
}, },
{ {
"name": "phpunit/phpunit-mock-objects", "name": "phpunit/phpunit-mock-objects",
@ -1599,16 +1699,16 @@
}, },
{ {
"name": "sebastian/environment", "name": "sebastian/environment",
"version": "1.3.5", "version": "1.3.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/environment.git", "url": "https://github.com/sebastianbergmann/environment.git",
"reference": "dc7a29032cf72b54f36dac15a1ca5b3a1b6029bf" "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/dc7a29032cf72b54f36dac15a1ca5b3a1b6029bf", "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/4e8f0da10ac5802913afc151413bc8c53b6c2716",
"reference": "dc7a29032cf72b54f36dac15a1ca5b3a1b6029bf", "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1645,20 +1745,20 @@
"environment", "environment",
"hhvm" "hhvm"
], ],
"time": "2016-02-26 18:40:46" "time": "2016-05-17 03:18:57"
}, },
{ {
"name": "sebastian/exporter", "name": "sebastian/exporter",
"version": "1.2.1", "version": "1.2.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git", "url": "https://github.com/sebastianbergmann/exporter.git",
"reference": "7ae5513327cb536431847bcc0c10edba2701064e" "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/7ae5513327cb536431847bcc0c10edba2701064e", "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4",
"reference": "7ae5513327cb536431847bcc0c10edba2701064e", "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1666,12 +1766,13 @@
"sebastian/recursion-context": "~1.0" "sebastian/recursion-context": "~1.0"
}, },
"require-dev": { "require-dev": {
"ext-mbstring": "*",
"phpunit/phpunit": "~4.4" "phpunit/phpunit": "~4.4"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.2.x-dev" "dev-master": "1.3.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -1711,7 +1812,7 @@
"export", "export",
"exporter" "exporter"
], ],
"time": "2015-06-21 07:55:53" "time": "2016-06-17 09:04:28"
}, },
{ {
"name": "sebastian/finder-facade", "name": "sebastian/finder-facade",
@ -1754,16 +1855,16 @@
}, },
{ {
"name": "sebastian/git", "name": "sebastian/git",
"version": "2.1.1", "version": "2.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/git.git", "url": "https://github.com/sebastianbergmann/git.git",
"reference": "38638de3e94830a5cd7a5956135589b967609cd5" "reference": "5100bc50cd9e70f424c643618e142214225024f3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/git/zipball/38638de3e94830a5cd7a5956135589b967609cd5", "url": "https://api.github.com/repos/sebastianbergmann/git/zipball/5100bc50cd9e70f424c643618e142214225024f3",
"reference": "38638de3e94830a5cd7a5956135589b967609cd5", "reference": "5100bc50cd9e70f424c643618e142214225024f3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1795,7 +1896,7 @@
"keywords": [ "keywords": [
"git" "git"
], ],
"time": "2016-02-21 15:02:23" "time": "2016-06-15 09:30:19"
}, },
{ {
"name": "sebastian/global-state", "name": "sebastian/global-state",
@ -1850,23 +1951,23 @@
}, },
{ {
"name": "sebastian/phpcpd", "name": "sebastian/phpcpd",
"version": "2.0.3", "version": "2.0.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpcpd.git", "url": "https://github.com/sebastianbergmann/phpcpd.git",
"reference": "6f868833a18de143d5733eafb5078b9801f8052b" "reference": "24d9a880deadb0b8c9680e9cfe78e30b704225db"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpcpd/zipball/6f868833a18de143d5733eafb5078b9801f8052b", "url": "https://api.github.com/repos/sebastianbergmann/phpcpd/zipball/24d9a880deadb0b8c9680e9cfe78e30b704225db",
"reference": "6f868833a18de143d5733eafb5078b9801f8052b", "reference": "24d9a880deadb0b8c9680e9cfe78e30b704225db",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3", "php": ">=5.3.3",
"phpunit/php-timer": ">=1.0.6", "phpunit/php-timer": ">=1.0.6",
"sebastian/finder-facade": "~1.1", "sebastian/finder-facade": "~1.1",
"sebastian/version": "~1.0", "sebastian/version": "~1.0|~2.0",
"symfony/console": "~2.7|^3.0", "symfony/console": "~2.7|^3.0",
"theseer/fdomdocument": "~1.4" "theseer/fdomdocument": "~1.4"
}, },
@ -1897,7 +1998,7 @@
], ],
"description": "Copy/Paste Detector (CPD) for PHP code.", "description": "Copy/Paste Detector (CPD) for PHP code.",
"homepage": "https://github.com/sebastianbergmann/phpcpd", "homepage": "https://github.com/sebastianbergmann/phpcpd",
"time": "2016-04-17 13:55:09" "time": "2016-04-17 19:32:49"
}, },
{ {
"name": "sebastian/recursion-context", "name": "sebastian/recursion-context",
@ -1989,16 +2090,16 @@
}, },
{ {
"name": "squizlabs/php_codesniffer", "name": "squizlabs/php_codesniffer",
"version": "2.6.0", "version": "2.6.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "1bcdf03b068a530ac1962ce671dead356eeba43b" "reference": "4edb770cb853def6e60c93abb088ad5ac2010c83"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1bcdf03b068a530ac1962ce671dead356eeba43b", "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/4edb770cb853def6e60c93abb088ad5ac2010c83",
"reference": "1bcdf03b068a530ac1962ce671dead356eeba43b", "reference": "4edb770cb853def6e60c93abb088ad5ac2010c83",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2063,20 +2164,20 @@
"phpcs", "phpcs",
"standards" "standards"
], ],
"time": "2016-04-03 22:58:34" "time": "2016-07-13 23:29:13"
}, },
{ {
"name": "symfony/dependency-injection", "name": "symfony/dependency-injection",
"version": "v3.0.4", "version": "v3.1.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/dependency-injection.git", "url": "https://github.com/symfony/dependency-injection.git",
"reference": "6a9058101b591edced21ca3c83c80a3978f5c6b0" "reference": "b7272b65f2f46cbe77def7d33916f2613669c508"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/dependency-injection/zipball/6a9058101b591edced21ca3c83c80a3978f5c6b0", "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/b7272b65f2f46cbe77def7d33916f2613669c508",
"reference": "6a9058101b591edced21ca3c83c80a3978f5c6b0", "reference": "b7272b65f2f46cbe77def7d33916f2613669c508",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2089,13 +2190,14 @@
}, },
"suggest": { "suggest": {
"symfony/config": "", "symfony/config": "",
"symfony/expression-language": "For using expressions in service container configuration",
"symfony/proxy-manager-bridge": "Generate service proxies to lazy load them", "symfony/proxy-manager-bridge": "Generate service proxies to lazy load them",
"symfony/yaml": "" "symfony/yaml": ""
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "3.0-dev" "dev-master": "3.1-dev"
} }
}, },
"autoload": { "autoload": {
@ -2122,20 +2224,20 @@
], ],
"description": "Symfony DependencyInjection Component", "description": "Symfony DependencyInjection Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2016-03-30 10:41:14" "time": "2016-06-29 05:42:25"
}, },
{ {
"name": "symfony/finder", "name": "symfony/finder",
"version": "v3.0.4", "version": "v3.1.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/finder.git", "url": "https://github.com/symfony/finder.git",
"reference": "c54e407b35bc098916704e9fd090da21da4c4f52" "reference": "8201978de88a9fa0923e18601bb17f1df9c721e7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/c54e407b35bc098916704e9fd090da21da4c4f52", "url": "https://api.github.com/repos/symfony/finder/zipball/8201978de88a9fa0923e18601bb17f1df9c721e7",
"reference": "c54e407b35bc098916704e9fd090da21da4c4f52", "reference": "8201978de88a9fa0923e18601bb17f1df9c721e7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2144,7 +2246,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "3.0-dev" "dev-master": "3.1-dev"
} }
}, },
"autoload": { "autoload": {
@ -2171,7 +2273,7 @@
], ],
"description": "Symfony Finder Component", "description": "Symfony Finder Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2016-03-10 11:13:05" "time": "2016-06-29 05:41:56"
}, },
{ {
"name": "theseer/fdomdocument", "name": "theseer/fdomdocument",
@ -2212,6 +2314,55 @@
"description": "The classes contained within this repository extend the standard DOM to use exceptions at all occasions of errors instead of PHP warnings or notices. They also add various custom methods and shortcuts for convenience and to simplify the usage of DOM.", "description": "The classes contained within this repository extend the standard DOM to use exceptions at all occasions of errors instead of PHP warnings or notices. They also add various custom methods and shortcuts for convenience and to simplify the usage of DOM.",
"homepage": "https://github.com/theseer/fDOMDocument", "homepage": "https://github.com/theseer/fDOMDocument",
"time": "2015-05-27 22:58:02" "time": "2015-05-27 22:58:02"
},
{
"name": "webmozart/assert",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/webmozart/assert.git",
"reference": "30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webmozart/assert/zipball/30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde",
"reference": "30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"phpunit/phpunit": "^4.6"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"autoload": {
"psr-4": {
"Webmozart\\Assert\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bernhard Schussek",
"email": "bschussek@gmail.com"
}
],
"description": "Assertions to validate method input/output with nice error messages.",
"keywords": [
"assert",
"check",
"validate"
],
"time": "2015-08-24 13:29:44"
} }
], ],
"aliases": [], "aliases": [],

View file

@ -10,9 +10,9 @@
<arg name="encoding" value="UTF-8"/> <arg name="encoding" value="UTF-8"/>
<arg name="extensions" value="php"/> <arg name="extensions" value="php"/>
<exclude-pattern>src/PHPCI/Migrations/*</exclude-pattern> <exclude-pattern>src/PHPCensor/Migrations/*</exclude-pattern>
<exclude-pattern>src/PHPCI/Model/Base/*</exclude-pattern> <exclude-pattern>src/PHPCensor/Model/Base/*</exclude-pattern>
<exclude-pattern>src/PHPCI/Languages/*</exclude-pattern> <exclude-pattern>src/PHPCensor/Languages/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern> <exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern> <exclude-pattern>vendor/*</exclude-pattern>

View file

@ -13,28 +13,28 @@
> >
<testsuites> <testsuites>
<!--<testsuite name="PHP Censor Command Test Suite"> <!--<testsuite name="PHP Censor Command Test Suite">
<directory suffix="Test.php">./tests/PHPCI/Command</directory> <directory suffix="Test.php">./tests/PHPCensor/Command</directory>
</testsuite>--> </testsuite>-->
<testsuite name="PHP Censor Controller Test Suite"> <testsuite name="PHP Censor Controller Test Suite">
<directory suffix="Test.php">./tests/PHPCI/Controller</directory> <directory suffix="Test.php">./tests/PHPCensor/Controller</directory>
</testsuite> </testsuite>
<testsuite name="PHP Censor Helper Test Suite"> <testsuite name="PHP Censor Helper Test Suite">
<directory suffix="Test.php">./tests/PHPCI/Helper</directory> <directory suffix="Test.php">./tests/PHPCensor/Helper</directory>
</testsuite> </testsuite>
<testsuite name="PHP Censor Logging Test Suite"> <testsuite name="PHP Censor Logging Test Suite">
<directory suffix="Test.php">./tests/PHPCI/Logging</directory> <directory suffix="Test.php">./tests/PHPCensor/Logging</directory>
</testsuite> </testsuite>
<testsuite name="PHP Censor Model Test Suite"> <testsuite name="PHP Censor Model Test Suite">
<directory suffix="Test.php">./tests/PHPCI/Model</directory> <directory suffix="Test.php">./tests/PHPCensor/Model</directory>
</testsuite> </testsuite>
<testsuite name="PHP Censor Plugin Test Suite"> <testsuite name="PHP Censor Plugin Test Suite">
<directory suffix="Test.php">./tests/PHPCI/Plugin</directory> <directory suffix="Test.php">./tests/PHPCensor/Plugin</directory>
</testsuite> </testsuite>
<!--<testsuite name="PHP Censor ProcessControl Test Suite"> <!--<testsuite name="PHP Censor ProcessControl Test Suite">
<directory suffix="Test.php">./tests/PHPCI/ProcessControl</directory> <directory suffix="Test.php">./tests/PHPCensor/ProcessControl</directory>
</testsuite>--> </testsuite>-->
<testsuite name="PHP Censor Service Test Suite"> <testsuite name="PHP Censor Service Test Suite">
<directory suffix="Test.php">./tests/PHPCI/Service</directory> <directory suffix="Test.php">./tests/PHPCensor/Service</directory>
</testsuite> </testsuite>
<!--<testsuite name="B8Framework Test Suite"> <!--<testsuite name="B8Framework Test Suite">
<directory suffix="Test.php">./tests/B8Framework</directory> <directory suffix="Test.php">./tests/B8Framework</directory>

View file

@ -66,7 +66,7 @@ var Build = Class.extend({
} }
} }
PHPCI.uiUpdated(); PHPCensor.uiUpdated();
}); });
}, },

View file

@ -7,7 +7,7 @@
* @time 3:44 AM * @time 3:44 AM
* @license LICENSE.md * @license LICENSE.md
* *
* @package PHPCI * @package PHPCensor
*/ */
$(function () { $(function () {

View file

@ -1,5 +1,5 @@
var PHPCI = { var PHPCensor = {
intervals: {}, intervals: {},
init: function () { init: function () {
@ -15,19 +15,19 @@ var PHPCI = {
}); });
// Update latest builds every 5 seconds: // Update latest builds every 5 seconds:
PHPCI.getBuilds(); PHPCensor.getBuilds();
PHPCI.intervals.getBuilds = setInterval(PHPCI.getBuilds, 5000); PHPCensor.intervals.getBuilds = setInterval(PHPCensor.getBuilds, 5000);
// Update latest project builds every 10 seconds: // Update latest project builds every 10 seconds:
if (typeof PHPCI_PROJECT_ID != 'undefined') { if (typeof PHPCI_PROJECT_ID != 'undefined') {
PHPCI.intervals.getProjectBuilds = setInterval(PHPCI.getProjectBuilds, 10000); PHPCensor.intervals.getProjectBuilds = setInterval(PHPCensor.getProjectBuilds, 10000);
} }
PHPCI.uiUpdated(); PHPCensor.uiUpdated();
}); });
$(window).on('builds-updated', function (e, data) { $(window).on('builds-updated', function (e, data) {
PHPCI.updateHeaderBuilds(data); PHPCensor.updateHeaderBuilds(data);
}); });
}, },
@ -39,7 +39,7 @@ var PHPCI = {
$(window).trigger('builds-updated', [data]); $(window).trigger('builds-updated', [data]);
}, },
error: PHPCI.handleFailedAjax error: PHPCensor.handleFailedAjax
}); });
}, },
@ -51,7 +51,7 @@ var PHPCI = {
$('#latest-builds').html(data); $('#latest-builds').html(data);
}, },
error: PHPCI.handleFailedAjax error: PHPCensor.handleFailedAjax
}); });
}, },
@ -90,10 +90,10 @@ var PHPCI = {
success: function (data) { success: function (data) {
success(); success();
PHPCI.uiUpdated(); PHPCensor.uiUpdated();
}, },
error: PHPCI.handleFailedAjax error: PHPCensor.handleFailedAjax
}); });
}, },
@ -126,10 +126,10 @@ var PHPCI = {
} }
}; };
PHPCI.init(); PHPCensor.init();
function handleFailedAjax(xhr) { function handleFailedAjax(xhr) {
PHPCI.handleFailedAjax(xhr); PHPCensor.handleFailedAjax(xhr);
} }
/** /**
@ -166,7 +166,7 @@ if (!Function.prototype.bind) {
*/ */
function confirmDelete(url, subject, reloadAfter) { function confirmDelete(url, subject, reloadAfter) {
var dialog = new PHPCIConfirmDialog({ var dialog = new PHPCensorConfirmDialog({
message: subject + ' will be permanently deleted. Are you sure?', message: subject + ' will be permanently deleted. Are you sure?',
confirmBtnCaption: 'Delete', confirmBtnCaption: 'Delete',
/* /*
@ -206,10 +206,10 @@ function confirmDelete(url, subject, reloadAfter) {
} }
/** /**
* PHPCIConfirmDialog constructor options object * PHPCensorConfirmDialog constructor options object
* @type {{message: string, title: string, confirmBtnCaption: string, cancelBtnCaption: string, confirmed: Function}} * @type {{message: string, title: string, confirmBtnCaption: string, cancelBtnCaption: string, confirmed: Function}}
*/ */
var PHPCIConfirmDialogOptions = { var PHPCensorConfirmDialogOptions = {
message: 'The action will be performed and cannot be undone. Are you sure?', message: 'The action will be performed and cannot be undone. Are you sure?',
title: 'Confirmation Dialog', title: 'Confirmation Dialog',
confirmBtnCaption: 'Ok', confirmBtnCaption: 'Ok',
@ -219,7 +219,7 @@ var PHPCIConfirmDialogOptions = {
} }
}; };
var PHPCIConfirmDialog = Class.extend({ var PHPCensorConfirmDialog = Class.extend({
/** /**
* @private * @private
* @var {bool} Determines whether the dialog has been confirmed * @var {bool} Determines whether the dialog has been confirmed
@ -227,11 +227,11 @@ var PHPCIConfirmDialog = Class.extend({
confirmed: false, confirmed: false,
/** /**
* @param {PHPCIConfirmDialogOptions} options * @param {PHPCensorConfirmDialogOptions} options
*/ */
init: function (options) { init: function (options) {
options = options ? $.extend(PHPCIConfirmDialogOptions, options) : PHPCIConfirmDialogOptions; options = options ? $.extend(PHPCensorConfirmDialogOptions, options) : PHPCensorConfirmDialogOptions;
if (!$('#confirm-dialog').length) { if (!$('#confirm-dialog').length) {
/* /*
@ -270,14 +270,14 @@ var PHPCIConfirmDialog = Class.extend({
/* /*
Initialize its values Initialize its values
*/ */
this.$title.html(options.title ? options.title : PHPCIConfirmDialogOptions.title); this.$title.html(options.title ? options.title : PHPCensorConfirmDialogOptions.title);
this.$body.html(options.message ? options.message : PHPCIConfirmDialogOptions.message); this.$body.html(options.message ? options.message : PHPCensorConfirmDialogOptions.message);
this.$confirmBtn.html( this.$confirmBtn.html(
options.confirmBtnCaption ? options.confirmBtnCaption : PHPCIConfirmDialogOptions.confirmBtnCaption options.confirmBtnCaption ? options.confirmBtnCaption : PHPCensorConfirmDialogOptions.confirmBtnCaption
); );
this.$cancelBtn.html( this.$cancelBtn.html(
options.cancelBtnCaption ? options.cancelBtnCaption : PHPCIConfirmDialogOptions.cancelBtnCaption options.cancelBtnCaption ? options.cancelBtnCaption : PHPCensorConfirmDialogOptions.cancelBtnCaption
); );
/* /*

View file

@ -13,5 +13,5 @@ session_start();
require_once(dirname(__DIR__) . '/bootstrap.php'); require_once(dirname(__DIR__) . '/bootstrap.php');
$fc = new PHPCI\Application($config, new b8\Http\Request()); $fc = new PHPCensor\Application($config, new b8\Http\Request());
print $fc->handleRequest(); print $fc->handleRequest();

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI; namespace PHPCensor;
use b8; use b8;
use b8\Exception\HttpException; use b8\Exception\HttpException;

View file

@ -7,10 +7,10 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI; namespace PHPCensor;
use b8\Store\Factory; use b8\Store\Factory;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
/** /**
* PHPCI Build Factory - Takes in a generic "Build" and returns a type-specific build model. * PHPCI Build Factory - Takes in a generic "Build" and returns a type-specific build model.
@ -70,7 +70,7 @@ class BuildFactory
return $build; return $build;
} }
$class = '\\PHPCI\\Model\\Build\\' . $type; $class = '\\PHPCensor\\Model\\Build\\' . $type;
$build = new $class($build->getDataArray()); $build = new $class($build->getDataArray());
} }

View file

@ -7,19 +7,19 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI; namespace PHPCensor;
use PHPCI\Helper\BuildInterpolator; use PHPCensor\Helper\BuildInterpolator;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Helper\MailerFactory; use PHPCensor\Helper\MailerFactory;
use PHPCI\Logging\BuildLogger; use PHPCensor\Logging\BuildLogger;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
use b8\Config; use b8\Config;
use b8\Store\Factory; use b8\Store\Factory;
use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;
use PHPCI\Plugin\Util\Factory as PluginFactory; use PHPCensor\Plugin\Util\Factory as PluginFactory;
/** /**
* PHPCI Build Runner * PHPCI Build Runner
@ -113,9 +113,9 @@ class Builder implements LoggerAwareInterface
$pluginFactory->addConfigFromFile(PHPCI_APP_DIR . "pluginconfig.php"); $pluginFactory->addConfigFromFile(PHPCI_APP_DIR . "pluginconfig.php");
$this->pluginExecutor = new Plugin\Util\Executor($pluginFactory, $this->buildLogger); $this->pluginExecutor = new Plugin\Util\Executor($pluginFactory, $this->buildLogger);
$executorClass = 'PHPCI\Helper\UnixCommandExecutor'; $executorClass = 'PHPCensor\Helper\UnixCommandExecutor';
if (IS_WIN) { if (IS_WIN) {
$executorClass = 'PHPCI\Helper\WindowsCommandExecutor'; $executorClass = 'PHPCensor\Helper\WindowsCommandExecutor';
} }
$this->commandExecutor = new $executorClass( $this->commandExecutor = new $executorClass(
@ -407,7 +407,7 @@ class Builder implements LoggerAwareInterface
return $self; return $self;
}, },
null, null,
'PHPCI\Builder' 'PHPCensor\Builder'
); );
$pluginFactory->registerResource( $pluginFactory->registerResource(
@ -415,7 +415,7 @@ class Builder implements LoggerAwareInterface
return $build; return $build;
}, },
null, null,
'PHPCI\Model\Build' 'PHPCensor\Model\Build'
); );
$logger = $this->logger; $logger = $this->logger;

View file

@ -7,11 +7,11 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use PHPCI\Service\UserService; use PHPCensor\Service\UserService;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Store\UserStore; use PHPCensor\Store\UserStore;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;

View file

@ -7,11 +7,11 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Service\BuildService; use PHPCensor\Service\BuildService;
use PHPCI\Store\ProjectStore; use PHPCensor\Store\ProjectStore;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;

View file

@ -8,11 +8,11 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use Monolog\Logger; use Monolog\Logger;
use PHPCI\ProcessControl\Factory; use PHPCensor\ProcessControl\Factory;
use PHPCI\ProcessControl\ProcessControlInterface; use PHPCensor\ProcessControl\ProcessControlInterface;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use Monolog\Logger; use Monolog\Logger;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;

View file

@ -7,20 +7,20 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use Exception; use Exception;
use PDO; use PDO;
use b8\Config; use b8\Config;
use b8\Store\Factory; use b8\Store\Factory;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\QuestionHelper; use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use PHPCI\Service\UserService; use PHPCensor\Service\UserService;
use Symfony\Component\Console\Question\Question; use Symfony\Component\Console\Question\Question;
use Symfony\Component\Console\Question\ConfirmationQuestion; use Symfony\Component\Console\Question\ConfirmationQuestion;
use Symfony\Component\Yaml\Dumper; use Symfony\Component\Yaml\Dumper;

View file

@ -7,17 +7,17 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use b8\Store\Factory; use b8\Store\Factory;
use b8\HttpClient; use b8\HttpClient;
use Monolog\Logger; use Monolog\Logger;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Yaml\Parser; use Symfony\Component\Yaml\Parser;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
/** /**
* Run console command - Poll github for latest commit id * Run console command - Poll github for latest commit id

View file

@ -7,11 +7,11 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use b8\Store\Factory; use b8\Store\Factory;
use Monolog\Logger; use Monolog\Logger;
use PHPCI\Service\BuildService; use PHPCensor\Service\BuildService;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;

View file

@ -7,14 +7,14 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use b8\Store\Factory; use b8\Store\Factory;
use Monolog\Logger; use Monolog\Logger;
use PHPCI\BuildFactory; use PHPCensor\BuildFactory;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Logging\OutputLogHandler; use PHPCensor\Logging\OutputLogHandler;
use PHPCI\Service\BuildService; use PHPCensor\Service\BuildService;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;

View file

@ -7,21 +7,21 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use b8\Config; use b8\Config;
use Monolog\Logger; use Monolog\Logger;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Logging\BuildDBLogHandler; use PHPCensor\Logging\BuildDBLogHandler;
use PHPCI\Logging\LoggedBuildContextTidier; use PHPCensor\Logging\LoggedBuildContextTidier;
use PHPCI\Logging\OutputLogHandler; use PHPCensor\Logging\OutputLogHandler;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use b8\Store\Factory; use b8\Store\Factory;
use PHPCI\Builder; use PHPCensor\Builder;
use PHPCI\BuildFactory; use PHPCensor\BuildFactory;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
/** /**
* Run console command - Runs any pending builds. * Run console command - Runs any pending builds.

View file

@ -7,11 +7,11 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use b8\Config; use b8\Config;
use Monolog\Logger; use Monolog\Logger;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;

View file

@ -7,12 +7,12 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Command; namespace PHPCensor\Command;
use b8\Config; use b8\Config;
use Monolog\Logger; use Monolog\Logger;
use PHPCI\Logging\OutputLogHandler; use PHPCensor\Logging\OutputLogHandler;
use PHPCI\Worker\BuildWorker; use PHPCensor\Worker\BuildWorker;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI; namespace PHPCensor;
use b8\Config; use b8\Config;
use b8\Exception\HttpException\ForbiddenException; use b8\Exception\HttpException\ForbiddenException;

View file

@ -7,18 +7,18 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Controller; namespace PHPCensor\Controller;
use b8; use b8;
use b8\Exception\HttpException\NotFoundException; use b8\Exception\HttpException\NotFoundException;
use b8\Http\Response\JsonResponse; use b8\Http\Response\JsonResponse;
use PHPCI\BuildFactory; use PHPCensor\BuildFactory;
use PHPCI\Helper\AnsiConverter; use PHPCensor\Helper\AnsiConverter;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
use PHPCI\Model\Project; use PHPCensor\Model\Project;
use PHPCI\Service\BuildService; use PHPCensor\Service\BuildService;
use PHPCI\Controller; use PHPCensor\Controller;
/** /**
* Build Controller - Allows users to run and view builds. * Build Controller - Allows users to run and view builds.

View file

@ -7,16 +7,16 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Controller; namespace PHPCensor\Controller;
use b8; use b8;
use b8\Exception\HttpException\NotFoundException; use b8\Exception\HttpException\NotFoundException;
use b8\Store; use b8\Store;
use PHPCI\BuildFactory; use PHPCensor\BuildFactory;
use PHPCI\Model\Project; use PHPCensor\Model\Project;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
use PHPCI\Service\BuildStatusService; use PHPCensor\Service\BuildStatusService;
use PHPCI\Controller; use PHPCensor\Controller;
/** /**
* Build Status Controller - Allows external access to build status information / images. * Build Status Controller - Allows external access to build status information / images.

View file

@ -7,14 +7,14 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Controller; namespace PHPCensor\Controller;
use b8; use b8;
use b8\Form; use b8\Form;
use b8\Store; use b8\Store;
use PHPCI\Controller; use PHPCensor\Controller;
use PHPCI\Model\ProjectGroup; use PHPCensor\Model\ProjectGroup;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
/** /**
* Project Controller - Allows users to create, edit and view projects. * Project Controller - Allows users to create, edit and view projects.

View file

@ -7,13 +7,13 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Controller; namespace PHPCensor\Controller;
use b8; use b8;
use PHPCI\BuildFactory; use PHPCensor\BuildFactory;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
use PHPCI\Controller; use PHPCensor\Controller;
/** /**
* Home Controller - Displays the PHPCI Dashboard. * Home Controller - Displays the PHPCI Dashboard.

View file

@ -7,14 +7,14 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Controller; namespace PHPCensor\Controller;
use b8; use b8;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Plugin\Util\ComposerPluginInformation; use PHPCensor\Plugin\Util\ComposerPluginInformation;
use PHPCI\Plugin\Util\FilesPluginInformation; use PHPCensor\Plugin\Util\FilesPluginInformation;
use PHPCI\Plugin\Util\PluginInformationCollection; use PHPCensor\Plugin\Util\PluginInformationCollection;
use PHPCI\Controller; use PHPCensor\Controller;
/** /**
* Plugin Controller - Provides support for installing Composer packages. * Plugin Controller - Provides support for installing Composer packages.

View file

@ -7,19 +7,19 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Controller; namespace PHPCensor\Controller;
use b8; use b8;
use b8\Form; use b8\Form;
use b8\Exception\HttpException\NotFoundException; use b8\Exception\HttpException\NotFoundException;
use b8\Store; use b8\Store;
use PHPCI; use PHPCensor;
use PHPCI\BuildFactory; use PHPCensor\BuildFactory;
use PHPCI\Helper\Github; use PHPCensor\Helper\Github;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Helper\SshKey; use PHPCensor\Helper\SshKey;
use PHPCI\Service\BuildService; use PHPCensor\Service\BuildService;
use PHPCI\Service\ProjectService; use PHPCensor\Service\ProjectService;
/** /**
* Project Controller - Allows users to create, edit and view projects. * Project Controller - Allows users to create, edit and view projects.
@ -27,7 +27,7 @@ use PHPCI\Service\ProjectService;
* @package PHPCI * @package PHPCI
* @subpackage Web * @subpackage Web
*/ */
class ProjectController extends PHPCI\Controller class ProjectController extends PHPCensor\Controller
{ {
/** /**
* @var \PHPCI\Store\ProjectStore * @var \PHPCI\Store\ProjectStore

View file

@ -7,12 +7,12 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Controller; namespace PHPCensor\Controller;
use b8; use b8;
use PHPCI\Helper\Email; use PHPCensor\Helper\Email;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Controller; use PHPCensor\Controller;
/** /**
* Session Controller - Handles user login / logout. * Session Controller - Handles user login / logout.

View file

@ -7,13 +7,13 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Controller; namespace PHPCensor\Controller;
use b8; use b8;
use b8\Form; use b8\Form;
use b8\HttpClient; use b8\HttpClient;
use PHPCI\Controller; use PHPCensor\Controller;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use Symfony\Component\Yaml\Dumper; use Symfony\Component\Yaml\Dumper;
use Symfony\Component\Yaml\Parser; use Symfony\Component\Yaml\Parser;

View file

@ -7,14 +7,14 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Controller; namespace PHPCensor\Controller;
use b8; use b8;
use b8\Exception\HttpException\NotFoundException; use b8\Exception\HttpException\NotFoundException;
use b8\Form; use b8\Form;
use PHPCI\Controller; use PHPCensor\Controller;
use PHPCI\Helper\Lang; use PHPCensor\Helper\Lang;
use PHPCI\Service\UserService; use PHPCensor\Service\UserService;
/** /**
* User Controller - Allows an administrator to view, add, edit and delete users. * User Controller - Allows an administrator to view, add, edit and delete users.

View file

@ -7,15 +7,15 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Controller; namespace PHPCensor\Controller;
use b8; use b8;
use b8\Store; use b8\Store;
use Exception; use Exception;
use PHPCI\Model\Project; use PHPCensor\Model\Project;
use PHPCI\Service\BuildService; use PHPCensor\Service\BuildService;
use PHPCI\Store\BuildStore; use PHPCensor\Store\BuildStore;
use PHPCI\Store\ProjectStore; use PHPCensor\Store\ProjectStore;
use b8\Controller; use b8\Controller;
use b8\Config; use b8\Config;
use b8\HttpClient; use b8\HttpClient;

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI; namespace PHPCensor;
/** /**
* Error Handler * Error Handler

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
use SensioLabs\AnsiConverter\AnsiToHtmlConverter; use SensioLabs\AnsiConverter\AnsiToHtmlConverter;

View file

@ -7,10 +7,10 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
use Exception; use Exception;
use PHPCI\Logging\BuildLogger; use PHPCensor\Logging\BuildLogger;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;
/** /**

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
/** /**
* User Helper - Provides access to logged in user information in views. * User Helper - Provides access to logged in user information in views.

View file

@ -7,9 +7,9 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
/** /**
* The BuildInterpolator class replaces variables in a string with build-specific information. * The BuildInterpolator class replaces variables in a string with build-specific information.

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
interface CommandExecutor interface CommandExecutor
{ {

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
/** /**
* Provides some basic diff processing functionality. * Provides some basic diff processing functionality.

View file

@ -7,10 +7,10 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
use b8\Config; use b8\Config;
use PHPCI\Builder; use PHPCensor\Builder;
/** /**
* Helper class for sending emails using PHPCI's email configuration. * Helper class for sending emails using PHPCI's email configuration.

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
use b8\Cache; use b8\Cache;
use b8\Config; use b8\Config;

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
use b8\Config; use b8\Config;
@ -64,7 +64,7 @@ class Lang
*/ */
public static function out() public static function out()
{ {
print call_user_func_array(['PHPCI\Helper\Lang', 'get'], func_get_args()); print call_user_func_array(['PHPCensor\Helper\Lang', 'get'], func_get_args());
} }
/** /**

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
use b8\Config; use b8\Config;

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
/** /**
* Class MailerFactory helps to set up and configure a SwiftMailer object. * Class MailerFactory helps to set up and configure a SwiftMailer object.

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
/** /**
* Helper class for dealing with SSH keys. * Helper class for dealing with SSH keys.

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
/** /**
* Unix/Linux specific extension of the CommandExecutor class. * Unix/Linux specific extension of the CommandExecutor class.

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
/** /**
* User Helper - Provides access to logged in user information in views. * User Helper - Provides access to logged in user information in views.

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Helper; namespace PHPCensor\Helper;
/** /**
* Windows-specific extension of the CommandExecutor class. * Windows-specific extension of the CommandExecutor class.

View file

@ -7,11 +7,11 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Logging; namespace PHPCensor\Logging;
use b8\Store\Factory; use b8\Store\Factory;
use Monolog\Handler\AbstractProcessingHandler; use Monolog\Handler\AbstractProcessingHandler;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;
/** /**

View file

@ -7,9 +7,9 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Logging; namespace PHPCensor\Logging;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Logging; namespace PHPCensor\Logging;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;

View file

@ -7,9 +7,9 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Logging; namespace PHPCensor\Logging;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
/** /**
* Class LoggedBuildContextTidier cleans up build log entries. * Class LoggedBuildContextTidier cleans up build log entries.

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Logging; namespace PHPCensor\Logging;
use Monolog\ErrorHandler; use Monolog\ErrorHandler;
use Monolog\Logger; use Monolog\Logger;

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Logging; namespace PHPCensor\Logging;
use Monolog\Handler\AbstractProcessingHandler; use Monolog\Handler\AbstractProcessingHandler;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;

View file

@ -15,7 +15,7 @@ class AddProjectGroups extends AbstractMigration
if (!$table->hasColumn('title')) { if (!$table->hasColumn('title')) {
$table->addColumn('title', 'string', ['limit' => 100, 'null' => false])->save(); $table->addColumn('title', 'string', ['limit' => 100, 'null' => false])->save();
$group = new \PHPCI\Model\ProjectGroup(); $group = new \PHPCensor\Model\ProjectGroup();
$group->setTitle('Projects'); $group->setTitle('Projects');
\b8\Store\Factory::getStore('ProjectGroup')->save($group); \b8\Store\Factory::getStore('ProjectGroup')->save($group);

View file

@ -1,8 +1,8 @@
<?php <?php
use Phinx\Migration\AbstractMigration; use Phinx\Migration\AbstractMigration;
use PHPCI\Model\BuildMeta; use PHPCensor\Model\BuildMeta;
use PHPCI\Model\BuildError; use PHPCensor\Model\BuildError;
class ConvertErrors extends AbstractMigration class ConvertErrors extends AbstractMigration
{ {

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI; namespace PHPCensor;
/** /**
* PHPCI Base Model. * PHPCI Base Model.

View file

@ -4,11 +4,11 @@
* Build base model for table: build * Build base model for table: build
*/ */
namespace PHPCI\Model\Base; namespace PHPCensor\Model\Base;
use PHPCI\Model; use PHPCensor\Model;
use b8\Store\Factory; use b8\Store\Factory;
use PHPCI\Model\Project; use PHPCensor\Model\Project;
/** /**
* Build Base Model * Build Base Model
@ -584,7 +584,7 @@ class BuildBase extends Model
$rtn = $this->cache->get($cacheKey, null); $rtn = $this->cache->get($cacheKey, null);
if (empty($rtn)) { if (empty($rtn)) {
$rtn = Factory::getStore('Project', 'PHPCI')->getById($key); $rtn = Factory::getStore('Project', 'PHPCensor')->getById($key);
$this->cache->set($cacheKey, $rtn); $this->cache->set($cacheKey, $rtn);
} }
@ -625,24 +625,24 @@ class BuildBase extends Model
/** /**
* Get BuildError models by BuildId for this Build. * Get BuildError models by BuildId for this Build.
* *
* @uses \PHPCI\Store\BuildErrorStore::getByBuildId() * @uses \PHPCensor\Store\BuildErrorStore::getByBuildId()
* @uses \PHPCI\Model\BuildError * @uses \PHPCensor\Model\BuildError
* @return \PHPCI\Model\BuildError[] * @return \PHPCensor\Model\BuildError[]
*/ */
public function getBuildBuildErrors() public function getBuildBuildErrors()
{ {
return Factory::getStore('BuildError', 'PHPCI')->getByBuildId($this->getId()); return Factory::getStore('BuildError', 'PHPCensor')->getByBuildId($this->getId());
} }
/** /**
* Get BuildMeta models by BuildId for this Build. * Get BuildMeta models by BuildId for this Build.
* *
* @uses \PHPCI\Store\BuildMetaStore::getByBuildId() * @uses \PHPCensor\Store\BuildMetaStore::getByBuildId()
* @uses \PHPCI\Model\BuildMeta * @uses \PHPCensor\Model\BuildMeta
* @return \PHPCI\Model\BuildMeta[] * @return \PHPCensor\Model\BuildMeta[]
*/ */
public function getBuildBuildMetas() public function getBuildBuildMetas()
{ {
return Factory::getStore('BuildMeta', 'PHPCI')->getByBuildId($this->getId()); return Factory::getStore('BuildMeta', 'PHPCensor')->getByBuildId($this->getId());
} }
} }

View file

@ -4,11 +4,11 @@
* BuildError base model for table: build_error * BuildError base model for table: build_error
*/ */
namespace PHPCI\Model\Base; namespace PHPCensor\Model\Base;
use PHPCI\Model; use PHPCensor\Model;
use b8\Store\Factory; use b8\Store\Factory;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
/** /**
* BuildError Base Model * BuildError Base Model
@ -464,7 +464,7 @@ class BuildErrorBase extends Model
$rtn = $this->cache->get($cacheKey, null); $rtn = $this->cache->get($cacheKey, null);
if (empty($rtn)) { if (empty($rtn)) {
$rtn = Factory::getStore('Build', 'PHPCI')->getById($key); $rtn = Factory::getStore('Build', 'PHPCensor')->getById($key);
$this->cache->set($cacheKey, $rtn); $this->cache->set($cacheKey, $rtn);
} }

View file

@ -4,12 +4,12 @@
* BuildMeta base model for table: build_meta * BuildMeta base model for table: build_meta
*/ */
namespace PHPCI\Model\Base; namespace PHPCensor\Model\Base;
use PHPCI\Model; use PHPCensor\Model;
use b8\Store\Factory; use b8\Store\Factory;
use PHPCI\Model\Project; use PHPCensor\Model\Project;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
/** /**
* BuildMeta Base Model * BuildMeta Base Model
@ -312,7 +312,7 @@ class BuildMetaBase extends Model
$rtn = $this->cache->get($cacheKey, null); $rtn = $this->cache->get($cacheKey, null);
if (empty($rtn)) { if (empty($rtn)) {
$rtn = Factory::getStore('Project', 'PHPCI')->getById($key); $rtn = Factory::getStore('Project', 'PHPCensor')->getById($key);
$this->cache->set($cacheKey, $rtn); $this->cache->set($cacheKey, $rtn);
} }
@ -369,7 +369,7 @@ class BuildMetaBase extends Model
$rtn = $this->cache->get($cacheKey, null); $rtn = $this->cache->get($cacheKey, null);
if (empty($rtn)) { if (empty($rtn)) {
$rtn = Factory::getStore('Build', 'PHPCI')->getById($key); $rtn = Factory::getStore('Build', 'PHPCensor')->getById($key);
$this->cache->set($cacheKey, $rtn); $this->cache->set($cacheKey, $rtn);
} }

View file

@ -4,11 +4,11 @@
* Project base model for table: project * Project base model for table: project
*/ */
namespace PHPCI\Model\Base; namespace PHPCensor\Model\Base;
use PHPCI\Model; use PHPCensor\Model;
use b8\Store\Factory; use b8\Store\Factory;
use PHPCI\Model\ProjectGroup; use PHPCensor\Model\ProjectGroup;
/** /**
* Project Base Model * Project Base Model
@ -614,7 +614,7 @@ class ProjectBase extends Model
$rtn = $this->cache->get($cacheKey, null); $rtn = $this->cache->get($cacheKey, null);
if (empty($rtn)) { if (empty($rtn)) {
$rtn = Factory::getStore('ProjectGroup', 'PHPCI')->getById($key); $rtn = Factory::getStore('ProjectGroup', 'PHPCensor')->getById($key);
$this->cache->set($cacheKey, $rtn); $this->cache->set($cacheKey, $rtn);
} }
@ -655,24 +655,24 @@ class ProjectBase extends Model
/** /**
* Get Build models by ProjectId for this Project. * Get Build models by ProjectId for this Project.
* *
* @uses \PHPCI\Store\BuildStore::getByProjectId() * @uses \PHPCensor\Store\BuildStore::getByProjectId()
* @uses \PHPCI\Model\Build * @uses \PHPCensor\Model\Build
* @return \PHPCI\Model\Build[] * @return \PHPCensor\Model\Build[]
*/ */
public function getProjectBuilds() public function getProjectBuilds()
{ {
return Factory::getStore('Build', 'PHPCI')->getByProjectId($this->getId()); return Factory::getStore('Build', 'PHPCensor')->getByProjectId($this->getId());
} }
/** /**
* Get BuildMeta models by ProjectId for this Project. * Get BuildMeta models by ProjectId for this Project.
* *
* @uses \PHPCI\Store\BuildMetaStore::getByProjectId() * @uses \PHPCensor\Store\BuildMetaStore::getByProjectId()
* @uses \PHPCI\Model\BuildMeta * @uses \PHPCensor\Model\BuildMeta
* @return \PHPCI\Model\BuildMeta[] * @return \PHPCensor\Model\BuildMeta[]
*/ */
public function getProjectBuildMetas() public function getProjectBuildMetas()
{ {
return Factory::getStore('BuildMeta', 'PHPCI')->getByProjectId($this->getId()); return Factory::getStore('BuildMeta', 'PHPCensor')->getByProjectId($this->getId());
} }
} }

View file

@ -4,9 +4,9 @@
* ProjectGroup base model for table: project_group * ProjectGroup base model for table: project_group
*/ */
namespace PHPCI\Model\Base; namespace PHPCensor\Model\Base;
use PHPCI\Model; use PHPCensor\Model;
use b8\Store\Factory; use b8\Store\Factory;
/** /**
@ -154,12 +154,12 @@ class ProjectGroupBase extends Model
/** /**
* Get Project models by GroupId for this ProjectGroup. * Get Project models by GroupId for this ProjectGroup.
* *
* @uses \PHPCI\Store\ProjectStore::getByGroupId() * @uses \PHPCensor\Store\ProjectStore::getByGroupId()
* @uses \PHPCI\Model\Project * @uses \PHPCensor\Model\Project
* @return \PHPCI\Model\Project[] * @return \PHPCensor\Model\Project[]
*/ */
public function getGroupProjects() public function getGroupProjects()
{ {
return Factory::getStore('Project', 'PHPCI')->getByGroupId($this->getId()); return Factory::getStore('Project', 'PHPCensor')->getByGroupId($this->getId());
} }
} }

View file

@ -4,9 +4,9 @@
* User base model for table: user * User base model for table: user
*/ */
namespace PHPCI\Model\Base; namespace PHPCensor\Model\Base;
use PHPCI\Model; use PHPCensor\Model;
/** /**
* User Base Model * User Base Model

View file

@ -7,11 +7,11 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Model; namespace PHPCensor\Model;
use b8\Store\Factory; use b8\Store\Factory;
use PHPCI\Model\Base\BuildBase; use PHPCensor\Model\Base\BuildBase;
use PHPCI\Builder; use PHPCensor\Builder;
use Symfony\Component\Yaml\Parser as YamlParser; use Symfony\Component\Yaml\Parser as YamlParser;
/** /**
@ -159,11 +159,11 @@ class Build extends BuildBase
continue; continue;
} }
$className = '\PHPCI\Plugin\\'.$item->getBasename('.php'); $className = '\PHPCensor\Plugin\\'.$item->getBasename('.php');
$reflectedPlugin = new \ReflectionClass($className); $reflectedPlugin = new \ReflectionClass($className);
if (!$reflectedPlugin->implementsInterface('\PHPCI\ZeroConfigPlugin')) { if (!$reflectedPlugin->implementsInterface('\PHPCensor\ZeroConfigPlugin')) {
continue; continue;
} }

View file

@ -7,9 +7,9 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Model\Build; namespace PHPCensor\Model\Build;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
/** /**
* BitBucket Build Model * BitBucket Build Model

View file

@ -7,14 +7,14 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Model\Build; namespace PHPCensor\Model\Build;
use PHPCI\Builder; use PHPCensor\Builder;
use PHPCI\Helper\Diff; use PHPCensor\Helper\Diff;
use PHPCI\Helper\Github; use PHPCensor\Helper\Github;
use b8\Config; use b8\Config;
use b8\HttpClient; use b8\HttpClient;
use PHPCI\Model\BuildError; use PHPCensor\Model\BuildError;
/** /**
* Github Build Model * Github Build Model

View file

@ -7,7 +7,7 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Model\Build; namespace PHPCensor\Model\Build;
/** /**
* Gitlab Build Model * Gitlab Build Model

View file

@ -7,10 +7,10 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Model\Build; namespace PHPCensor\Model\Build;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
use PHPCI\Builder; use PHPCensor\Builder;
/** /**
* Local Build Model * Local Build Model

View file

@ -7,10 +7,10 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Model\Build; namespace PHPCensor\Model\Build;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
use PHPCI\Builder; use PHPCensor\Builder;
/** /**
* Mercurial Build Model * Mercurial Build Model

View file

@ -7,10 +7,10 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Model\Build; namespace PHPCensor\Model\Build;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
use PHPCI\Builder; use PHPCensor\Builder;
/** /**
* Remote Git Build Model * Remote Git Build Model

View file

@ -7,10 +7,10 @@
* @link https://www.phptesting.org/ * @link https://www.phptesting.org/
*/ */
namespace PHPCI\Model\Build; namespace PHPCensor\Model\Build;
use PHPCI\Model\Build; use PHPCensor\Model\Build;
use PHPCI\Builder; use PHPCensor\Builder;
/** /**
* Remote Subversion Build Model * Remote Subversion Build Model

Some files were not shown because too many files have changed in this diff Show more