Webmozart\Console\UI\Style\GridStyle::borderless PHP Method

borderless() public static method

A borderless style.
public static borderless ( ) : GridStyle
return GridStyle The style.
    public static function borderless()
    {
        if (!self::$borderless) {
            self::$borderless = new static();
            self::$borderless->borderStyle = BorderStyle::none();
        }
        return clone self::$borderless;
    }

Usage Example

Beispiel #1
0
 /**
  * Prints the resources in the short style (without the "-l" option).
  *
  * @param IO                 $io        The I/O.
  * @param ResourceCollection $resources The resources.
  */
 private function listShort(IO $io, ResourceCollection $resources)
 {
     $style = GridStyle::borderless();
     $style->getBorderStyle()->setLineVCChar('  ');
     $grid = new Grid($style);
     foreach ($resources as $resource) {
         $grid->addCell($this->formatName($resource));
     }
     $grid->render($io);
 }
All Usage Examples Of Webmozart\Console\UI\Style\GridStyle::borderless