PHP 8.2.31
Preview: NullOutputFormatter.php Size: 1.23 KB
//opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/symfony/console/Formatter/NullOutputFormatter.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace RectorPrefix202411\Symfony\Component\Console\Formatter;

/**
 * @author Tien Xuan Vo <tien.xuan.vo@gmail.com>
 */
final class NullOutputFormatter implements OutputFormatterInterface
{
    /**
     * @var \Symfony\Component\Console\Formatter\NullOutputFormatterStyle
     */
    private $style;
    public function format(?string $message) : ?string
    {
        return null;
    }
    public function getStyle(string $name) : OutputFormatterStyleInterface
    {
        // to comply with the interface we must return a OutputFormatterStyleInterface
        return $this->style = $this->style ?? new NullOutputFormatterStyle();
    }
    public function hasStyle(string $name) : bool
    {
        return \false;
    }
    public function isDecorated() : bool
    {
        return \false;
    }
    public function setDecorated(bool $decorated) : void
    {
        // do nothing
    }
    public function setStyle(string $name, OutputFormatterStyleInterface $style) : void
    {
        // do nothing
    }
}

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
1.23 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.36 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
8.25 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.29 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
3.46 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.20 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
2.62 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
732 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).