Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Console\View\Components;
4
 
5
use Symfony\Component\Console\Output\OutputInterface;
6
 
7
class TwoColumnDetail extends Component
8
{
9
    /**
10
     * Renders the component using the given arguments.
11
     *
12
     * @param  string  $first
13
     * @param  string|null  $second
14
     * @param  int  $verbosity
15
     * @return void
16
     */
17
    public function render($first, $second = null, $verbosity = OutputInterface::VERBOSITY_NORMAL)
18
    {
19
        $first = $this->mutate($first, [
20
            Mutators\EnsureDynamicContentIsHighlighted::class,
21
            Mutators\EnsureNoPunctuation::class,
22
            Mutators\EnsureRelativePaths::class,
23
        ]);
24
 
25
        $second = $this->mutate($second, [
26
            Mutators\EnsureDynamicContentIsHighlighted::class,
27
            Mutators\EnsureNoPunctuation::class,
28
            Mutators\EnsureRelativePaths::class,
29
        ]);
30
 
31
        $this->renderView('two-column-detail', [
32
            'first' => $first,
33
            'second' => $second,
34
        ], $verbosity);
35
    }
36
}