src/package/Services/Base.php
protected function displayMessages($messages)
    {
        $fatal = $messages->reduce(function ($carry, $message) {
            $prefix = $message['type'] == 'error' ? 'FATAL ERROR: ' : '';

            $this->command->{$message['type']}($prefix.$message['body']);

            if ($message['type'] == 'error') {
                return true;
            }

            return $carry;
        });

        if ($fatal == true) {
            die;
        }
    }
protected function displayMessages($messages)
    {
        $fatal = $messages->reduce(function ($carry, $message) {
            $prefix = $message['type'] == 'error' ? 'FATAL ERROR: ' : '';

            $this->command->{$message['type']}($prefix.$message['body']);

            if ($message['type'] == 'error') {
                return true;
            }

            return $carry;
        });

        if ($fatal == true) {
            die;
        }
    }
protected function displayMessages ( $ messages ) { $ fatal = $ messages -> reduce ( function ( $ carry , $ message ) { $ prefix = $ message [ 'type' ] == 'error' ? 'FATAL ERROR: ' : '' ; $ this -> command -> { $ message [ 'type' ] } ( $ prefix . $ message [ 'body' ] ) ; if ( $ message [ 'type' ] == 'error' ) { return true ; } return $ carry ; } ) ; if ( $ fatal == true ) { die ; } }
Display messages in terminal.

@param $messages
Display messages in terminal .