original_string: private function augmentAnnotationData($idSite, $idNote, &$annotation)
      {
          $annotation['idNote'] = $idNote;
          $annotation['canEditOrDelete'] = self::canUserModifyOrDelete($idSite, $annotation);
  
          // we don't supply user info if the current user is anonymous
          if (Piwik::isUserIsAnonymous()) {
              unset($annotation['user']);
          }
      }
code: private function augmentAnnotationData($idSite, $idNote, &$annotation)
      {
          $annotation['idNote'] = $idNote;
          $annotation['canEditOrDelete'] = self::canUserModifyOrDelete($idSite, $annotation);
  
          // we don't supply user info if the current user is anonymous
          if (Piwik::isUserIsAnonymous()) {
              unset($annotation['user']);
          }
      }
code_tokens: private function augmentAnnotationData ( $ idSite , $ idNote , & $ annotation ) { $ annotation [ 'idNote' ] = $ idNote ; $ annotation [ 'canEditOrDelete' ] = self :: canUserModifyOrDelete ( $ idSite , $ annotation ) ; // we don't supply user info if the current user is anonymous if ( Piwik :: isUserIsAnonymous ( ) ) { unset ( $ annotation [ 'user' ] ) ; } }
docstring: Adds extra data to an annotation, including the annotation's ID and whether
  the current user can edit or delete it.
  
  Also, if the current user is anonymous, the user attribute is removed.
  
  @param int $idSite
  @param int $idNote
  @param array $annotation
docstring_tokens: Adds extra data to an annotation including the annotation s ID and whether the current user can edit or delete it .