original_string: protected static function convertSpecialGoalIds($idGoal)
      {
          if ($idGoal == Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER) {
              return GoalManager::IDGOAL_ORDER;
          } else if ($idGoal == Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_CART) {
              return GoalManager::IDGOAL_CART;
          } else {
              return $idGoal;
          }
      }
code: protected static function convertSpecialGoalIds($idGoal)
      {
          if ($idGoal == Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER) {
              return GoalManager::IDGOAL_ORDER;
          } else if ($idGoal == Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_CART) {
              return GoalManager::IDGOAL_CART;
          } else {
              return $idGoal;
          }
      }
code_tokens: protected static function convertSpecialGoalIds ( $ idGoal ) { if ( $ idGoal == Piwik :: LABEL_ID_GOAL_IS_ECOMMERCE_ORDER ) { return GoalManager :: IDGOAL_ORDER ; } else if ( $ idGoal == Piwik :: LABEL_ID_GOAL_IS_ECOMMERCE_CART ) { return GoalManager :: IDGOAL_CART ; } else { return $ idGoal ; } }
docstring: Helper function that checks for special string goal IDs and converts them to
  their integer equivalents.
  
  Checks for the following values:
  Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER
  Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_CART
  
  @param string|int $idGoal The goal id as an integer or a special string.
  @return int The numeric goal id.
docstring_tokens: Helper function that checks for special string goal IDs and converts them to their integer equivalents .