original_string: private function _isHttps()
      {
          if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
              return ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https');
          } elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTOCOL'])) {
              return ($_SERVER['HTTP_X_FORWARDED_PROTOCOL'] === 'https');
          } elseif ( isset($_SERVER['HTTPS'])
              && !empty($_SERVER['HTTPS'])
              && strcasecmp($_SERVER['HTTPS'], 'off') !== 0
          ) {
              return true;
          }
          return false;
  
      }
code: private function _isHttps()
      {
          if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
              return ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https');
          } elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTOCOL'])) {
              return ($_SERVER['HTTP_X_FORWARDED_PROTOCOL'] === 'https');
          } elseif ( isset($_SERVER['HTTPS'])
              && !empty($_SERVER['HTTPS'])
              && strcasecmp($_SERVER['HTTPS'], 'off') !== 0
          ) {
              return true;
          }
          return false;
  
      }
code_tokens: private function _isHttps ( ) { if ( ! empty ( $ _SERVER [ 'HTTP_X_FORWARDED_PROTO' ] ) ) { return ( $ _SERVER [ 'HTTP_X_FORWARDED_PROTO' ] === 'https' ) ; } elseif ( ! empty ( $ _SERVER [ 'HTTP_X_FORWARDED_PROTOCOL' ] ) ) { return ( $ _SERVER [ 'HTTP_X_FORWARDED_PROTOCOL' ] === 'https' ) ; } elseif ( isset ( $ _SERVER [ 'HTTPS' ] ) && ! empty ( $ _SERVER [ 'HTTPS' ] ) && strcasecmp ( $ _SERVER [ 'HTTPS' ] , 'off' ) !== 0 ) { return true ; } return false ; }
docstring: This method checks to see if the request is secured via HTTPS
  
  @return bool true if https, false otherwise
docstring_tokens: This method checks to see if the request is secured via HTTPS