original_string: protected function uptime()
      {
          $linfo = $this->linfo->getParser();
  
          $uptime = $booted_at = null;
  
          $systemUptime = $this->ifExists($linfo->getUpTime());
  
          if (! empty($systemUptime['text'])) {
              $uptime = $systemUptime['text'];
          }
  
          if (! empty($systemUptime['bootedTimestamp'])) {
              $booted_at = date('Y-m-d H:i:s', $systemUptime['bootedTimestamp']);
          }
  
          $this->results['server']['uptime'] = compact(
              'uptime', 'booted_at'
          );
  
          return $this;
      }
code: protected function uptime()
      {
          $linfo = $this->linfo->getParser();
  
          $uptime = $booted_at = null;
  
          $systemUptime = $this->ifExists($linfo->getUpTime());
  
          if (! empty($systemUptime['text'])) {
              $uptime = $systemUptime['text'];
          }
  
          if (! empty($systemUptime['bootedTimestamp'])) {
              $booted_at = date('Y-m-d H:i:s', $systemUptime['bootedTimestamp']);
          }
  
          $this->results['server']['uptime'] = compact(
              'uptime', 'booted_at'
          );
  
          return $this;
      }
code_tokens: protected function uptime ( ) { $ linfo = $ this -> linfo -> getParser ( ) ; $ uptime = $ booted_at = null ; $ systemUptime = $ this -> ifExists ( $ linfo -> getUpTime ( ) ) ; if ( ! empty ( $ systemUptime [ 'text' ] ) ) { $ uptime = $ systemUptime [ 'text' ] ; } if ( ! empty ( $ systemUptime [ 'bootedTimestamp' ] ) ) { $ booted_at = date ( 'Y-m-d H:i:s' , $ systemUptime [ 'bootedTimestamp' ] ) ; } $ this -> results [ 'server' ] [ 'uptime' ] = compact ( 'uptime' , 'booted_at' ) ; return $ this ; }
docstring: Parse uptime.
  
  @access protected
docstring_tokens: Parse uptime .