original_string: public function getDigest()
      {
          $digest = null;
  
          if (isset($_SERVER['PHP_AUTH_DIGEST'])) {
              $digest = $_SERVER['PHP_AUTH_DIGEST'];
          } elseif (isset($_SERVER['HTTP_AUTHORIZATION'])) {
              if (strpos(strtolower($_SERVER['HTTP_AUTHORIZATION']), 'digest') === 0) {
                  $digest = substr($_SERVER['HTTP_AUTHORIZATION'], 7);
              }
          }
  
          return $digest;
      }
code: public function getDigest()
      {
          $digest = null;
  
          if (isset($_SERVER['PHP_AUTH_DIGEST'])) {
              $digest = $_SERVER['PHP_AUTH_DIGEST'];
          } elseif (isset($_SERVER['HTTP_AUTHORIZATION'])) {
              if (strpos(strtolower($_SERVER['HTTP_AUTHORIZATION']), 'digest') === 0) {
                  $digest = substr($_SERVER['HTTP_AUTHORIZATION'], 7);
              }
          }
  
          return $digest;
      }
code_tokens: public function getDigest ( ) { $ digest = null ; if ( isset ( $ _SERVER [ 'PHP_AUTH_DIGEST' ] ) ) { $ digest = $ _SERVER [ 'PHP_AUTH_DIGEST' ] ; } elseif ( isset ( $ _SERVER [ 'HTTP_AUTHORIZATION' ] ) ) { if ( strpos ( strtolower ( $ _SERVER [ 'HTTP_AUTHORIZATION' ] ) , 'digest' ) === 0 ) { $ digest = substr ( $ _SERVER [ 'HTTP_AUTHORIZATION' ] , 7 ) ; } } return $ digest ; }
docstring: Fetch digest data from environment information
  
  @return string
docstring_tokens: Fetch digest data from environment information