Skip to content

Use constants to define "styles" #11

@Aerendir

Description

@Aerendir
    /**
     * Formats a command comment as single line.
     *
     * @param string $message
     */
    public function cautionLine(string $message): void
    {
-        $this->writeln($this->createLine($message, 'caution', 'caution', ' ! '));
+        $this->writeln($this->createLine($message, 'caution', ConsoleStyles::CAUTION, ' ! '));
    }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions