original_string: public function getFirstWorkEmail($id) {
  
          $people =  $this->model->findOrfail($id);
  
          // The first email that is type "work"
          foreach ($people->email as $email) {
  
              if ($email->email_type_id == 3) {
                  return $email->title;
              }
          }
  
          return "there is no email address";
      }
code: public function getFirstWorkEmail($id) {
  
          $people =  $this->model->findOrfail($id);
  
          // The first email that is type "work"
          foreach ($people->email as $email) {
  
              if ($email->email_type_id == 3) {
                  return $email->title;
              }
          }
  
          return "there is no email address";
      }
code_tokens: public function getFirstWorkEmail ( $ id ) { $ people = $ this -> model -> findOrfail ( $ id ) ; // The first email that is type "work" foreach ( $ people -> email as $ email ) { if ( $ email -> email_type_id == 3 ) { return $ email -> title ; } } return "there is no email address" ; }
docstring: Get the first work email found for a specific People ID
  
  @param    int    $id    PeopleID
  @return   text
docstring_tokens: Get the first work email found for a specific People ID