src/Command/AppCommand.php
public static function wrap($condition, string $msg = null, $showOnFalse = false): array
    {
        $result = $condition ? '<success>Yes</success>' : '<red>No</red>';
        $des    = '';

        if ($msg) {
            if ($showOnFalse) {
                $des = !$condition ? " ($msg)" : '';
            } else {
                $des = " ($msg)";
            }
        }

        return [(bool)$condition, $result . $des];
    }
public static function wrap($condition, string $msg = null, $showOnFalse = false): array
    {
        $result = $condition ? '<success>Yes</success>' : '<red>No</red>';
        $des    = '';

        if ($msg) {
            if ($showOnFalse) {
                $des = !$condition ? " ($msg)" : '';
            } else {
                $des = " ($msg)";
            }
        }

        return [(bool)$condition, $result . $des];
    }
@param             $condition
@param string|null $msg
@param bool        $showOnFalse

@return array