Permalink
Browse files

Code style fixes

  • Loading branch information...
corpsee committed Mar 4, 2017
1 parent cbb0f1d commit a2fbd9b7751d42a112f86e8840d9255a88bff67e
Showing with 132 additions and 1,270 deletions.
  1. +0 −8 app/loggerconfig.example.php
  2. +0 −8 bin/console
  3. +0 −7 bootstrap.php
  4. +0 −8 public/index.php
  5. +4 −10 src/PHPCensor/Application.php
  6. +4 −10 src/PHPCensor/BuildFactory.php
  7. +2 −10 src/PHPCensor/Builder.php
  8. +0 −8 src/PHPCensor/Controller.php
  9. +4 −13 src/PHPCensor/Controller/BuildController.php
  10. +5 −13 src/PHPCensor/Controller/BuildStatusController.php
  11. +2 −12 src/PHPCensor/Controller/GroupController.php
  12. +4 −13 src/PHPCensor/Controller/HomeController.php
  13. +4 −13 src/PHPCensor/Controller/ProjectController.php
  14. +3 −13 src/PHPCensor/Controller/SessionController.php
  15. +4 −12 src/PHPCensor/Controller/UserController.php
  16. +0 −9 src/PHPCensor/Helper/AnsiConverter.php
  17. +0 −8 src/PHPCensor/Helper/BaseCommandExecutor.php
  18. +2 −10 src/PHPCensor/Helper/Build.php
  19. +1 −7 src/PHPCensor/Helper/BuildInterpolator.php
  20. +0 −7 src/PHPCensor/Helper/CommandExecutorInterface.php
  21. +0 −8 src/PHPCensor/Helper/Diff.php
  22. +0 −8 src/PHPCensor/Helper/Email.php
  23. +0 −8 src/PHPCensor/Helper/Github.php
  24. +0 −9 src/PHPCensor/Helper/Lang.php
  25. +4 −12 src/PHPCensor/Helper/LoginIsDisabled.php
  26. +0 −8 src/PHPCensor/Helper/MailerFactory.php
  27. +0 −8 src/PHPCensor/Helper/SshKey.php
  28. +0 −8 src/PHPCensor/Helper/UnixCommandExecutor.php
  29. +4 −12 src/PHPCensor/Helper/User.php
  30. +0 −7 src/PHPCensor/Languages/lang.da.php
  31. +0 −7 src/PHPCensor/Languages/lang.de.php
  32. +0 −7 src/PHPCensor/Languages/lang.el.php
  33. +0 −7 src/PHPCensor/Languages/lang.en.php
  34. +0 −7 src/PHPCensor/Languages/lang.es.php
  35. +0 −7 src/PHPCensor/Languages/lang.fr.php
  36. +0 −7 src/PHPCensor/Languages/lang.it.php
  37. +0 −7 src/PHPCensor/Languages/lang.nl.php
  38. +0 −7 src/PHPCensor/Languages/lang.pl.php
  39. +0 −7 src/PHPCensor/Languages/lang.pt-br.php
  40. +0 −7 src/PHPCensor/Languages/lang.ru.php
  41. +0 −7 src/PHPCensor/Languages/lang.uk.php
  42. +0 −7 src/PHPCensor/Languages/lang.zh.php
  43. +0 −8 src/PHPCensor/Logging/BuildDBLogHandler.php
  44. +0 −8 src/PHPCensor/Logging/BuildLogger.php
  45. +0 −8 src/PHPCensor/Logging/Handler.php
  46. +0 −8 src/PHPCensor/Logging/LoggedBuildContextTidier.php
  47. +0 −8 src/PHPCensor/Logging/LoggerConfig.php
  48. +0 −8 src/PHPCensor/Logging/OutputLogHandler.php
  49. +0 −11 src/PHPCensor/Model.php
  50. +9 −4 src/PHPCensor/Model/Build.php
  51. +3 −10 src/PHPCensor/Plugin.php
  52. +23 −11 src/PHPCensor/Plugin/Atoum.php
  53. +1 −11 src/PHPCensor/Plugin/Behat.php
  54. +2 −13 src/PHPCensor/Plugin/Campfire.php
  55. +1 −10 src/PHPCensor/Plugin/CleanBuild.php
  56. +3 −12 src/PHPCensor/Plugin/Codeception.php
  57. +1 −10 src/PHPCensor/Plugin/Composer.php
  58. +1 −11 src/PHPCensor/Plugin/CopyBuild.php
  59. +1 −10 src/PHPCensor/Plugin/Deployer.php
  60. +1 −11 src/PHPCensor/Plugin/Email.php
  61. +1 −11 src/PHPCensor/Plugin/Env.php
  62. +0 −6 src/PHPCensor/Plugin/FlowdockNotify.php
  63. +1 −11 src/PHPCensor/Plugin/Git.php
  64. +1 −10 src/PHPCensor/Plugin/Grunt.php
  65. +1 −10 src/PHPCensor/Plugin/Gulp.php
  66. +1 −10 src/PHPCensor/Plugin/HipchatNotify.php
  67. +1 −11 src/PHPCensor/Plugin/Irc.php
  68. +1 −10 src/PHPCensor/Plugin/Lint.php
  69. +2 −12 src/PHPCensor/Plugin/Mysql.php
  70. +1 −11 src/PHPCensor/Plugin/Option/PhpUnitOptions.php
  71. +1 −10 src/PHPCensor/Plugin/PackageBuild.php
  72. +1 −10 src/PHPCensor/Plugin/Pdepend.php
  73. +1 −10 src/PHPCensor/Plugin/Pgsql.php
  74. +0 −1 src/PHPCensor/Plugin/Phar.php
  75. +1 −11 src/PHPCensor/Plugin/Phing.php
  76. +1 −10 src/PHPCensor/Plugin/PhpCodeSniffer.php
  77. +1 −10 src/PHPCensor/Plugin/PhpCsFixer.php
  78. +1 −10 src/PHPCensor/Plugin/PhpDocblockChecker.php
  79. +1 −10 src/PHPCensor/Plugin/PhpLoc.php
  80. +1 −10 src/PHPCensor/Plugin/PhpMessDetector.php
  81. +1 −10 src/PHPCensor/Plugin/PhpParallelLint.php
  82. +1 −10 src/PHPCensor/Plugin/PhpSpec.php
  83. +1 −10 src/PHPCensor/Plugin/PhpTalLint.php
  84. +2 −12 src/PHPCensor/Plugin/PhpUnit.php
  85. +1 −9 src/PHPCensor/Plugin/SlackNotify.php
  86. +1 −10 src/PHPCensor/Plugin/Sqlite.php
  87. +1 −10 src/PHPCensor/Plugin/TechnicalDebt.php
  88. +0 −1 src/PHPCensor/Plugin/Util/Executor.php
  89. +0 −1 src/PHPCensor/Plugin/Util/Factory.php
  90. +1 −11 src/PHPCensor/Plugin/Util/PhpUnitResult.php
  91. +0 −1 src/PHPCensor/Plugin/Util/TestResultParsers/Codeception.php
  92. +0 −1 src/PHPCensor/Plugin/Util/TestResultParsers/ParserInterface.php
  93. +1 −10 src/PHPCensor/Plugin/Wipe.php
  94. +1 −10 src/PHPCensor/Plugin/Xmpp.php
  95. +0 −7 src/PHPCensor/ProcessControl/Factory.php
  96. +0 −7 src/PHPCensor/ProcessControl/PosixProcessControl.php
  97. +0 −7 src/PHPCensor/ProcessControl/ProcessControlInterface.php
  98. +0 −7 src/PHPCensor/ProcessControl/UnixProcessControl.php
  99. +0 −8 src/PHPCensor/Security/Authentication/LoginPasswordProviderInterface.php
  100. +0 −8 src/PHPCensor/Security/Authentication/Service.php
  101. +0 −8 src/PHPCensor/Security/Authentication/UserProvider/AbstractProvider.php
  102. +0 −8 src/PHPCensor/Security/Authentication/UserProvider/Internal.php
  103. +0 −8 src/PHPCensor/Security/Authentication/UserProvider/Ldap.php
  104. +0 −8 src/PHPCensor/Security/Authentication/UserProviderInterface.php
  105. +0 −10 src/PHPCensor/Service/BuildService.php
  106. +0 −8 src/PHPCensor/Service/BuildStatusService.php
  107. +0 −9 src/PHPCensor/Service/ProjectService.php
  108. +0 −9 src/PHPCensor/Service/UserService.php
  109. +0 −11 src/PHPCensor/Store.php
  110. +2 −8 src/PHPCensor/ZeroConfigPluginInterface.php
  111. +0 −9 tests/PHPCensor/Command/CreateAdminCommandTest.php
  112. +0 −7 tests/PHPCensor/Command/CreateBuildCommandTest.php
  113. +0 −8 tests/PHPCensor/Controller/WebhookControllerTest.php
  114. +0 −8 tests/PHPCensor/Helper/AnsiConverterTest.php
  115. +0 −8 tests/PHPCensor/Helper/BuildInterpolatorTest.php
  116. +0 −8 tests/PHPCensor/Helper/CommandExecutorTest.php
  117. +0 −8 tests/PHPCensor/Helper/LangTest.php
  118. +0 −8 tests/PHPCensor/Helper/MailerFactoryTest.php
  119. +0 −8 tests/PHPCensor/Logging/BuildLoggerTest.php
  120. +0 −8 tests/PHPCensor/Logging/LoggerConfigTest.php
  121. +1 −9 tests/PHPCensor/Model/BuildTest.php
  122. +1 −9 tests/PHPCensor/Model/ProjectTest.php
  123. +1 −8 tests/PHPCensor/Plugin/EmailTest.php
  124. +0 −8 tests/PHPCensor/Plugin/Option/PhpUnitOptionsTest.php
  125. +0 −8 tests/PHPCensor/Plugin/PharTest.php
  126. +0 −8 tests/PHPCensor/Plugin/PhpUnitTest.php
  127. +0 −22 tests/PHPCensor/Plugin/Util/ExamplePluginConfig.php
  128. +0 −8 tests/PHPCensor/Plugin/Util/ExecutorTest.php
  129. +0 −33 tests/PHPCensor/Plugin/Util/FactoryTest.php
  130. +0 −8 tests/PHPCensor/Plugin/Util/Fake/ExamplePluginFull.php
  131. +0 −8 tests/PHPCensor/Plugin/Util/Fake/ExamplePluginWithNoConstructorArgs.php
  132. +0 −8 tests/PHPCensor/Plugin/Util/Fake/ExamplePluginWithSingleOptionalArg.php
  133. +0 −8 tests/PHPCensor/Plugin/Util/Fake/ExamplePluginWithSingleRequiredArg.php
  134. +0 −8 tests/PHPCensor/Plugin/Util/Fake/ExamplePluginWithSingleTypedRequiredArg.php
  135. +0 −8 tests/PHPCensor/Plugin/Util/PhpUnitResultTest.php
  136. +0 −8 tests/PHPCensor/Security/Authentication/ServiceTest.php
  137. +0 −8 tests/PHPCensor/Security/Authentication/UserProvider/InternalTest.php
  138. +1 −8 tests/PHPCensor/Service/BuildServiceTest.php
  139. +1 −7 tests/PHPCensor/Service/BuiltStatusServiceTest.php
  140. +1 −9 tests/PHPCensor/Service/ProjectServiceTest.php
  141. +1 −8 tests/PHPCensor/Service/UserServiceTest.php
  142. +0 −7 tests/bootstrap.php
@@ -1,13 +1,5 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
return [
/** Loggers attached to every command */
"_" => function() {
View
@@ -1,14 +1,6 @@
#!/usr/bin/env php
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2013, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link http://www.phptesting.org/
*/
use PHPCensor\Console\Application;
error_reporting(-1);
View
@@ -1,11 +1,4 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2013, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link http://www.phptesting.org/
*/
if (!defined('ROOT_DIR')) {
define('ROOT_DIR', __DIR__ . DIRECTORY_SEPARATOR);
View
@@ -1,13 +1,5 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
session_set_cookie_params(43200); // Set session cookie to last 12 hours.
session_start();
@@ -1,11 +1,4 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor;
@@ -16,9 +9,10 @@
use b8\View;
/**
* PHPCI Front Controller
* @author Dan Cryer <dan@block8.co.uk>
*/
* PHPCI Front Controller
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class Application extends b8\Application
{
/**
@@ -1,21 +1,15 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor;
use b8\Store\Factory;
use PHPCensor\Model\Build;
/**
* PHPCI Build Factory - Takes in a generic "Build" and returns a type-specific build model.
* @author Dan Cryer <dan@block8.co.uk>
*/
* PHPCI Build Factory - Takes in a generic "Build" and returns a type-specific build model.
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class BuildFactory
{
/**
View
@@ -1,17 +1,8 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor;
use PHPCensor\Helper\BuildInterpolator;
use PHPCensor\Helper\Lang;
use PHPCensor\Helper\MailerFactory;
use PHPCensor\Logging\BuildLogger;
use PHPCensor\Model\Build;
@@ -24,7 +15,8 @@
/**
* PHPCI Build Runner
* @author Dan Cryer <dan@block8.co.uk>
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class Builder implements LoggerAwareInterface
{
@@ -1,11 +1,4 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor;
@@ -17,7 +10,6 @@
/**
* PHPCI Base Controller
* @package PHPCI
*/
class Controller extends \b8\Controller
{
@@ -1,13 +1,5 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor\Controller;
use b8;
@@ -22,11 +14,10 @@
use PHPCensor\Controller;
/**
* Build Controller - Allows users to run and view builds.
* @author Dan Cryer <dan@block8.co.uk>
* @package PHPCI
* @subpackage Web
*/
* Build Controller - Allows users to run and view builds.
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class BuildController extends Controller
{
/**
@@ -1,13 +1,5 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor\Controller;
use b8;
@@ -20,15 +12,15 @@
use PHPCensor\Controller;
/**
* Build Status Controller - Allows external access to build status information / images.
* @author Dan Cryer <dan@block8.co.uk>
* @package PHPCI
* @subpackage Web
*/
* Build Status Controller - Allows external access to build status information / images.
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class BuildStatusController extends Controller
{
/* @var \PHPCensor\Store\ProjectStore */
protected $projectStore;
/* @var \PHPCensor\Store\BuildStore */
protected $buildStore;
@@ -1,27 +1,17 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2015, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor\Controller;
use b8;
use b8\Form;
use b8\Store;
use PHPCensor\Controller;
use PHPCensor\Model\ProjectGroup;
use PHPCensor\Helper\Lang;
/**
* Project Controller - Allows users to create, edit and view projects.
* @author Dan Cryer <dan@block8.co.uk>
* @package PHPCI
* @subpackage Web
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class GroupController extends Controller
{
@@ -1,13 +1,5 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor\Controller;
use b8;
@@ -17,11 +9,10 @@
use PHPCensor\Controller;
/**
* Home Controller - Displays the PHPCI Dashboard.
* @author Dan Cryer <dan@block8.co.uk>
* @package PHPCI
* @subpackage Web
*/
* Home Controller - Displays the PHPCI Dashboard.
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class HomeController extends Controller
{
/**
@@ -1,13 +1,5 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor\Controller;
use b8;
@@ -23,11 +15,10 @@
use PHPCensor\Service\ProjectService;
/**
* Project Controller - Allows users to create, edit and view projects.
* @author Dan Cryer <dan@block8.co.uk>
* @package PHPCI
* @subpackage Web
*/
* Project Controller - Allows users to create, edit and view projects.
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class ProjectController extends PHPCensor\Controller
{
/**
@@ -1,13 +1,5 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2015, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor\Controller;
use b8;
@@ -18,12 +10,10 @@
use PHPCensor\Store\UserStore;
/**
* Session Controller - Handles user login / logout.
* Session Controller - Handles user login / logout.
*
* @author Dan Cryer <dan@block8.co.uk>
* @package PHPCI
* @subpackage Web
*/
* @author Dan Cryer <dan@block8.co.uk>
*/
class SessionController extends Controller
{
/**
@@ -1,11 +1,4 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor\Controller;
@@ -18,11 +11,10 @@
use PHPCensor\Service\UserService;
/**
* User Controller - Allows an administrator to view, add, edit and delete users.
* @author Dan Cryer <dan@block8.co.uk>
* @package PHPCI
* @subpackage Web
*/
* User Controller - Allows an administrator to view, add, edit and delete users.
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class UserController extends Controller
{
/**
@@ -1,20 +1,11 @@
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCensor\Helper;
use SensioLabs\AnsiConverter\AnsiToHtmlConverter;
/**
* Converts ANSI output to HTML.
*
* @package PHPCensor\Helper
*/
final class AnsiConverter
{
Oops, something went wrong.

0 comments on commit a2fbd9b

Please sign in to comment.