protected function getDiskSpace($mounts = [])
    {
        $total = $free = 0;

        if (empty($mounts)) {
            return compact('total', 'free');
        }

        foreach ($mounts as $mount) {
            $total += $mount['size'];
            $free += $mount['free'];
        }

        return compact('total', 'free');
    }
protected function getDiskSpace($mounts = [])
    {
        $total = $free = 0;

        if (empty($mounts)) {
            return compact('total', 'free');
        }

        foreach ($mounts as $mount) {
            $total += $mount['size'];
            $free += $mount['free'];
        }

        return compact('total', 'free');
    }
protected function getDiskSpace ( $ mounts = [ ] ) { $ total = $ free = 0 ; if ( empty ( $ mounts ) ) { return compact ( 'total' , 'free' ) ; } foreach ( $ mounts as $ mount ) { $ total += $ mount [ 'size' ] ; $ free += $ mount [ 'free' ] ; } return compact ( 'total' , 'free' ) ; }
Get disk space string.

@access protected
@param  array  $mounts (default: array())
@return string
Get disk space string .