original_string: public function getFrom()
      {
          // Gather possible sources of a from address
          $sources[] = $this->getBaseOrganization();
          if ($this->getBaseOrganizationId() != $this->getCurrentOrganizationId()) {
              $sources[] = $this->getCurrentOrganization();
          }
          $sources[] = $this->project;
  
          foreach ($sources as $source) {
              if ($from = $source->getFrom()) {
                  return $from;
              }
          }
  
          // We really don't like it, but sometimes the only way to get a from address.
          return $this->getEmailAddress();
      }
code: public function getFrom()
      {
          // Gather possible sources of a from address
          $sources[] = $this->getBaseOrganization();
          if ($this->getBaseOrganizationId() != $this->getCurrentOrganizationId()) {
              $sources[] = $this->getCurrentOrganization();
          }
          $sources[] = $this->project;
  
          foreach ($sources as $source) {
              if ($from = $source->getFrom()) {
                  return $from;
              }
          }
  
          // We really don't like it, but sometimes the only way to get a from address.
          return $this->getEmailAddress();
      }
code_tokens: public function getFrom ( ) { // Gather possible sources of a from address $ sources [ ] = $ this -> getBaseOrganization ( ) ; if ( $ this -> getBaseOrganizationId ( ) != $ this -> getCurrentOrganizationId ( ) ) { $ sources [ ] = $ this -> getCurrentOrganization ( ) ; } $ sources [ ] = $ this -> project ; foreach ( $ sources as $ source ) { if ( $ from = $ source -> getFrom ( ) ) { return $ from ; } } // We really don't like it, but sometimes the only way to get a from address. return $ this -> getEmailAddress ( ) ; }
docstring: Returns the from address
  
  @return string E-Mail address
docstring_tokens: Returns the from address