original_string: public function getMonitorFrom($name = null)
      {
          if ($name) {
              if (isset($this['monitor'], $this['monitor'][$name], $this['monitor'][$name]['from']) &&
                      trim($this['monitor'][$name]['from'])) {
                  return $this['monitor'][$name]['from'];
              }
          }
          if (isset($this['monitor'], $this['monitor']['default'], $this['monitor']['default']['from']) &&
                  trim($this['monitor']['default']['from'])) {
              return $this['monitor']['default']['from'];
          }
  
          $email = $this->getSiteEmail();
          if ($email) {
              return $email;
          }
  
          return 'noreply@gemstracker.org';
      }
code: public function getMonitorFrom($name = null)
      {
          if ($name) {
              if (isset($this['monitor'], $this['monitor'][$name], $this['monitor'][$name]['from']) &&
                      trim($this['monitor'][$name]['from'])) {
                  return $this['monitor'][$name]['from'];
              }
          }
          if (isset($this['monitor'], $this['monitor']['default'], $this['monitor']['default']['from']) &&
                  trim($this['monitor']['default']['from'])) {
              return $this['monitor']['default']['from'];
          }
  
          $email = $this->getSiteEmail();
          if ($email) {
              return $email;
          }
  
          return 'noreply@gemstracker.org';
      }
code_tokens: public function getMonitorFrom ( $ name = null ) { if ( $ name ) { if ( isset ( $ this [ 'monitor' ] , $ this [ 'monitor' ] [ $ name ] , $ this [ 'monitor' ] [ $ name ] [ 'from' ] ) && trim ( $ this [ 'monitor' ] [ $ name ] [ 'from' ] ) ) { return $ this [ 'monitor' ] [ $ name ] [ 'from' ] ; } } if ( isset ( $ this [ 'monitor' ] , $ this [ 'monitor' ] [ 'default' ] , $ this [ 'monitor' ] [ 'default' ] [ 'from' ] ) && trim ( $ this [ 'monitor' ] [ 'default' ] [ 'from' ] ) ) { return $ this [ 'monitor' ] [ 'default' ] [ 'from' ] ; } $ email = $ this -> getSiteEmail ( ) ; if ( $ email ) { return $ email ; } return 'noreply@gemstracker.org' ; }
docstring: Get the form address for monitor messages
  
  @param string $name Optional section name
  @return string
docstring_tokens: Get the form address for monitor messages