src/TerminalObject/Router/BasicRouter.php
public function execute($obj)
    {
        $results = Helper::toArray($obj->result());

        $this->output->persist();

        foreach ($results as $result) {
            if ($obj->sameLine()) {
                $this->output->sameLine();
            }

            $this->output->write($obj->getParser()->apply($result));
        }

        $this->output->persist(false);
    }
public function execute($obj)
    {
        $results = Helper::toArray($obj->result());

        $this->output->persist();

        foreach ($results as $result) {
            if ($obj->sameLine()) {
                $this->output->sameLine();
            }

            $this->output->write($obj->getParser()->apply($result));
        }

        $this->output->persist(false);
    }
public function execute ( $ obj ) { $ results = Helper :: toArray ( $ obj -> result ( ) ) ; $ this -> output -> persist ( ) ; foreach ( $ results as $ result ) { if ( $ obj -> sameLine ( ) ) { $ this -> output -> sameLine ( ) ; } $ this -> output -> write ( $ obj -> getParser ( ) -> apply ( $ result ) ) ; } $ this -> output -> persist ( false ) ; }
Execute a basic terminal object

@param \League\CLImate\TerminalObject\Basic\BasicTerminalObject $obj
@return void
Execute a basic terminal object