Skip to content

Commit

Permalink
Enable native_constant_invocation CS fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 26, 2018
1 parent 915e8a6 commit 4f935cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dumper/CliDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct($output = null, $charset = null)
{
parent::__construct($output, $charset);

if ('\\' === DIRECTORY_SEPARATOR && !$this->isWindowsTrueColor()) {
if ('\\' === \DIRECTORY_SEPARATOR && !$this->isWindowsTrueColor()) {
// Use only the base 16 xterm colors when using ANSICON or standard Windows 10 CLI
$this->setStyles(array(
'default' => '31',
Expand Down Expand Up @@ -483,7 +483,7 @@ private function hasColorSupport($stream)
return true;
}

if (DIRECTORY_SEPARATOR === '\\') {
if (\DIRECTORY_SEPARATOR === '\\') {
return (\function_exists('sapi_windows_vt100_support')
&& @sapi_windows_vt100_support($stream))
|| false !== getenv('ANSICON')
Expand Down Expand Up @@ -520,7 +520,7 @@ private function isWindowsTrueColor()
|| 'xterm' === getenv('TERM')
|| 'Hyper' === getenv('TERM_PROGRAM');

if (!$result && PHP_VERSION_ID >= 70200) {
if (!$result && \PHP_VERSION_ID >= 70200) {
$version = sprintf(
'%s.%s.%s',
PHP_WINDOWS_VERSION_MAJOR,
Expand Down
2 changes: 1 addition & 1 deletion VarDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static function dump($var)
{
if (null === self::$handler) {
$cloner = new VarCloner();
$dumper = \in_array(PHP_SAPI, array('cli', 'phpdbg'), true) ? new CliDumper() : new HtmlDumper();
$dumper = \in_array(\PHP_SAPI, array('cli', 'phpdbg'), true) ? new CliDumper() : new HtmlDumper();
self::$handler = function ($var) use ($cloner, $dumper) {
$dumper->dump($cloner->cloneVar($var));
};
Expand Down

0 comments on commit 4f935cf

Please sign in to comment.