original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Get disk space string.
  
  @access protected
  @param  array  $mounts (default: array())
  @return string
docstring_tokens: Get disk space string .