CS fixes
parent
4d36622ada
commit
6a64041055
|
@ -60,6 +60,7 @@ class HtmlOutputFormatter extends OutputFormatter
|
|||
$formatted = parent::format($message);
|
||||
|
||||
$clearEscapeCodes = '(?:39|49|0|22|24|25|27|28)';
|
||||
|
||||
return preg_replace_callback("{\033\[([0-9;]+)m(.*?)\033\[(?:".$clearEscapeCodes.";)*?".$clearEscapeCodes."m}s", array($this, 'formatHtml'), $formatted);
|
||||
}
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ class ErrorHandler
|
|||
if (isset($a['line'], $a['file'])) {
|
||||
return '<warning> '.$a['file'].':'.$a['line'].'</warning>';
|
||||
}
|
||||
|
||||
return null;
|
||||
}, array_slice(debug_backtrace(), 2))));
|
||||
}
|
||||
|
|
|
@ -94,6 +94,7 @@ class GitHub
|
|||
if (!$token) {
|
||||
$this->io->writeError('<warning>No token given, aborting.</warning>');
|
||||
$this->io->writeError('You can also add it manually later by using "composer config github-oauth.github.com <token>"');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
namespace Composer\Test\EventDispatcher;
|
||||
|
||||
use Composer\EventDispatcher\Event;
|
||||
use Composer\EventDispatcher\EventDispatcher;
|
||||
use Composer\Installer\InstallerEvents;
|
||||
use Composer\TestCase;
|
||||
use Composer\Script\ScriptEvents;
|
||||
|
|
|
@ -14,7 +14,6 @@ namespace Composer\Test;
|
|||
|
||||
use Composer\Installer;
|
||||
use Composer\Console\Application;
|
||||
use Composer\Config;
|
||||
use Composer\Json\JsonFile;
|
||||
use Composer\Repository\ArrayRepository;
|
||||
use Composer\Repository\RepositoryManager;
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
namespace Composer\Test\Package;
|
||||
|
||||
use Composer\Package\BasePackage;
|
||||
|
||||
class BasePackageTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testSetSameRepository()
|
||||
|
|
|
@ -16,7 +16,6 @@ use Composer\Config;
|
|||
use Composer\Package\Loader\RootPackageLoader;
|
||||
use Composer\Package\BasePackage;
|
||||
use Composer\Test\Mock\ProcessExecutorMock;
|
||||
use Composer\Repository\RepositoryManager;
|
||||
|
||||
class RootPackageLoaderTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
namespace Composer\Test\Package\Loader;
|
||||
|
||||
use Composer\Package;
|
||||
use Composer\Package\Loader\ValidatingArrayLoader;
|
||||
use Composer\Package\Loader\InvalidPackageException;
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
namespace Composer\Test\Repository;
|
||||
|
||||
use Composer\Repository\ComposerRepository;
|
||||
use Composer\IO\NullIO;
|
||||
use Composer\Test\Mock\FactoryMock;
|
||||
use Composer\TestCase;
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
namespace Composer\Test\Util;
|
||||
|
||||
use Composer\Util\RemoteFilesystem;
|
||||
use Installer\Exception;
|
||||
|
||||
class RemoteFilesystemTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
namespace Composer;
|
||||
|
||||
use Composer\Package\Version\VersionParser;
|
||||
use Composer\Package\Package;
|
||||
use Composer\Package\AliasPackage;
|
||||
use Composer\Package\LinkConstraint\VersionConstraint;
|
||||
use Composer\Util\Filesystem;
|
||||
|
|
Loading…
Reference in New Issue