src/Rocketeer/Services/History/LogsHandler.php
protected function prependHandle($entries)
    {
        $entries = (array) $entries;
        $handle = $this->connections->getCurrentConnectionKey()->toLongHandle();

        foreach ($entries as &$entry) {
            $entry = str_replace('<comment>['.$handle.']</comment> ', null, $entry);
        }

        return count($entries) === 1 ? $entries[0] : $entries;
    }
protected function prependHandle($entries)
    {
        $entries = (array) $entries;
        $handle = $this->connections->getCurrentConnectionKey()->toLongHandle();

        foreach ($entries as &$entry) {
            $entry = str_replace('<comment>['.$handle.']</comment> ', null, $entry);
        }

        return count($entries) === 1 ? $entries[0] : $entries;
    }
protected function prependHandle ( $ entries ) { $ entries = ( array ) $ entries ; $ handle = $ this -> connections -> getCurrentConnectionKey ( ) -> toLongHandle ( ) ; foreach ( $ entries as & $ entry ) { $ entry = str_replace ( '<comment>[' . $ handle . ']</comment> ' , null , $ entry ) ; } return count ( $ entries ) === 1 ? $ entries [ 0 ] : $ entries ; }
Prepend the connection handle to each log entry.

@param string|string[] $entries

@return string|string[]
Prepend the connection handle to each log entry .