private function generateTableRows (array $namespaces, bool $hasDuplicatePath, array $pathMap) : array
    {
        $rows = [];

        foreach ($namespaces as $namespace => $path)
        {
            $row = [
                "<fg=yellow>@{$namespace}</>",
                $path,
            ];

            if ($hasDuplicatePath)
            {
                $warning = $pathMap[$path] > 1
                    ? '<fg=red>\\<!></>'
                    : '';

                \array_unshift($row, $warning);
            }


            $rows[$namespace] = $row;
        }

        // sort namespaces alphabetically
        ksort($rows);

        return  $rows;
    }
private function generateTableRows (array $namespaces, bool $hasDuplicatePath, array $pathMap) : array
    {
        $rows = [];

        foreach ($namespaces as $namespace => $path)
        {
            $row = [
                "<fg=yellow>@{$namespace}</>",
                $path,
            ];

            if ($hasDuplicatePath)
            {
                $warning = $pathMap[$path] > 1
                    ? '<fg=red>\\<!></>'
                    : '';

                \array_unshift($row, $warning);
            }


            $rows[$namespace] = $row;
        }

        // sort namespaces alphabetically
        ksort($rows);

        return  $rows;
    }
private function generateTableRows ( array $ namespaces , bool $ hasDuplicatePath , array $ pathMap ) : array { $ rows = [ ] ; foreach ( $ namespaces as $ namespace => $ path ) { $ row = [ "<fg=yellow>@{$namespace}</>" , $ path , ] ; if ( $ hasDuplicatePath ) { $ warning = $ pathMap [ $ path ] > 1 ? '<fg=red>\\<!></>' : '' ; \ array_unshift ( $ row , $ warning ) ; } $ rows [ $ namespace ] = $ row ; } // sort namespaces alphabetically ksort ( $ rows ) ; return $ rows ; }
Generates the table rows

@param array $namespaces
@param bool  $hasDuplicatePath
@param array $pathMap
@return array
Generates the table rows