| 1: | <?php declare(strict_types=1); |
| 2: | |
| 3: | namespace Salient\Console\Format; |
| 4: | |
| 5: | /** |
| 6: | * @api |
| 7: | */ |
| 8: | final class NullFormat extends AbstractFormat |
| 9: | { |
| 10: | use IndentCodeBlockTrait; |
| 11: | |
| 12: | /** |
| 13: | * @inheritDoc |
| 14: | */ |
| 15: | public function apply(string $string, $attributes = null): string |
| 16: | { |
| 17: | if ($string === '') { |
| 18: | return ''; |
| 19: | } |
| 20: | |
| 21: | return $this->indentCodeBlock($string, $attributes); |
| 22: | } |
| 23: | } |
| 24: |