src/Model/Device.php
public function toString()
    {
        if ($this->hidden) {
            return '';
        }
        
        if ($this->identified) {
            $model = $this->getModel();
            $manufacturer = $this->getManufacturer();

            if ($manufacturer != '' && strpos($model, $manufacturer) === 0) {
                $manufacturer = '';
            }

            return trim($manufacturer . ' ' . $model);
        }

        return !empty($this->model) ? 'unrecognized device (' . $this->model . ')' : '';
    }
public function toString()
    {
        if ($this->hidden) {
            return '';
        }
        
        if ($this->identified) {
            $model = $this->getModel();
            $manufacturer = $this->getManufacturer();

            if ($manufacturer != '' && strpos($model, $manufacturer) === 0) {
                $manufacturer = '';
            }

            return trim($manufacturer . ' ' . $model);
        }

        return !empty($this->model) ? 'unrecognized device (' . $this->model . ')' : '';
    }
public function toString ( ) { if ( $ this -> hidden ) { return '' ; } if ( $ this -> identified ) { $ model = $ this -> getModel ( ) ; $ manufacturer = $ this -> getManufacturer ( ) ; if ( $ manufacturer != '' && strpos ( $ model , $ manufacturer ) === 0 ) { $ manufacturer = '' ; } return trim ( $ manufacturer . ' ' . $ model ) ; } return ! empty ( $ this -> model ) ? 'unrecognized device (' . $ this -> model . ')' : '' ; }
Get the combined name of the manufacturer and model in a human readable format

@return string
Get the combined name of the manufacturer and model in a human readable format