original_string: protected function ping(Redis $redis) {
          try {
              if ($redis->ping() === false) {
                  return false;
              }
          } catch (Exception $e) {
              return false;
          }
          return true;
      }
code: protected function ping(Redis $redis) {
          try {
              if ($redis->ping() === false) {
                  return false;
              }
          } catch (Exception $e) {
              return false;
          }
          return true;
      }
code_tokens: protected function ping ( Redis $ redis ) { try { if ( $ redis -> ping ( ) === false ) { return false ; } } catch ( Exception $ e ) { return false ; } return true ; }
docstring: See if we can ping Redis server
  
  @param Redis $redis
  @return bool
docstring_tokens: See if we can ping Redis server