andrew-ko/hexlet-psr-linter

View on GitHub
Psrlint/Util/color.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Psrlint\Util;

use Colors\Color;

function color($str)
{
    $color = new Color();
    $color->setTheme([
        'error' => ['red', 'bold'],
    ]);
    return $color($str);
}