original_string: public function getGoal($idSite, $idGoal)
      {
          Piwik::checkUserHasViewAccess($idSite);
          
          $goal = $this->getModel()->getActiveGoal($idSite, $idGoal);
  
          if (!empty($goal)) {
              return $this->formatGoal($goal);
          }
      }
code: public function getGoal($idSite, $idGoal)
      {
          Piwik::checkUserHasViewAccess($idSite);
          
          $goal = $this->getModel()->getActiveGoal($idSite, $idGoal);
  
          if (!empty($goal)) {
              return $this->formatGoal($goal);
          }
      }
code_tokens: public function getGoal ( $ idSite , $ idGoal ) { Piwik :: checkUserHasViewAccess ( $ idSite ) ; $ goal = $ this -> getModel ( ) -> getActiveGoal ( $ idSite , $ idGoal ) ; if ( ! empty ( $ goal ) ) { return $ this -> formatGoal ( $ goal ) ; } }
docstring: Return a single goal.
  
  @param int $idSite
  @param int $idGoal
  @return array An array of goal attributes.
docstring_tokens: Return a single goal .