private function renderPaths()
    {
        if (!$this->pathsTable) {
            $this->pathsTable = new Table($this->io);
            $style = clone Table::getStyleDefinition('symfony-style-guide');
            $this->pathsTable->setStyle($style);

            $this->pathsTable->setHeaders(['#', 'Name', 'Path']);

            $style = clone $style;
            $style->setCellHeaderFormat('<info>%s</info>');
            $this->pathsTable->setColumnStyle(0, $style);
        }

        $i = 0;
        $rows = [];
        $root = $this->resolver->resolve('root');
        foreach ($this->resolver->names() as $name) {
            $raw = $this->resolver->raw($name);
            $resolved = $this->resolver->resolve($name);
            $resolved = Path::makeRelative($resolved, $root);
            if ($resolved === '') {
                $resolved = '.';
            }
            $path = "<comment>$raw</comment>";
            if ($raw !== $resolved) {
                $path .= " ($resolved)";
            }
            $rows[] = ['<info>' . ++$i . '</info>', "<info>$name</info>", $path];
        }
        $this->pathsTable->setRows($rows);

        $this->pathsTable->overwrite();
    }
private function renderPaths()
    {
        if (!$this->pathsTable) {
            $this->pathsTable = new Table($this->io);
            $style = clone Table::getStyleDefinition('symfony-style-guide');
            $this->pathsTable->setStyle($style);

            $this->pathsTable->setHeaders(['#', 'Name', 'Path']);

            $style = clone $style;
            $style->setCellHeaderFormat('<info>%s</info>');
            $this->pathsTable->setColumnStyle(0, $style);
        }

        $i = 0;
        $rows = [];
        $root = $this->resolver->resolve('root');
        foreach ($this->resolver->names() as $name) {
            $raw = $this->resolver->raw($name);
            $resolved = $this->resolver->resolve($name);
            $resolved = Path::makeRelative($resolved, $root);
            if ($resolved === '') {
                $resolved = '.';
            }
            $path = "<comment>$raw</comment>";
            if ($raw !== $resolved) {
                $path .= " ($resolved)";
            }
            $rows[] = ['<info>' . ++$i . '</info>', "<info>$name</info>", $path];
        }
        $this->pathsTable->setRows($rows);

        $this->pathsTable->overwrite();
    }
private function renderPaths ( ) { if ( ! $ this -> pathsTable ) { $ this -> pathsTable = new Table ( $ this -> io ) ; $ style = clone Table :: getStyleDefinition ( 'symfony-style-guide' ) ; $ this -> pathsTable -> setStyle ( $ style ) ; $ this -> pathsTable -> setHeaders ( [ '#' , 'Name' , 'Path' ] ) ; $ style = clone $ style ; $ style -> setCellHeaderFormat ( '<info>%s</info>' ) ; $ this -> pathsTable -> setColumnStyle ( 0 , $ style ) ; } $ i = 0 ; $ rows = [ ] ; $ root = $ this -> resolver -> resolve ( 'root' ) ; foreach ( $ this -> resolver -> names ( ) as $ name ) { $ raw = $ this -> resolver -> raw ( $ name ) ; $ resolved = $ this -> resolver -> resolve ( $ name ) ; $ resolved = Path :: makeRelative ( $ resolved , $ root ) ; if ( $ resolved === '' ) { $ resolved = '.' ; } $ path = "<comment>$raw</comment>" ; if ( $ raw !== $ resolved ) { $ path .= " ($resolved)" ; } $ rows [ ] = [ '<info>' . ++ $ i . '</info>' , "<info>$name</info>" , $ path ] ; } $ this -> pathsTable -> setRows ( $ rows ) ; $ this -> pathsTable -> overwrite ( ) ; }
Render paths table.
Render paths table .