original_string: protected function getPeriodInfoFromQueryParam($strDate, $strPeriod, $timezone)
      {
          if (Period::isMultiplePeriod($strDate, $strPeriod)) {
              $oPeriod    = PeriodFactory::build($strPeriod, $strDate, $timezone);
              $allPeriods = $oPeriod->getSubperiods();
          } else {
              $oPeriod    = PeriodFactory::makePeriodFromQueryParams($timezone, $strPeriod, $strDate);
              $allPeriods = array($oPeriod);
          }
  
          $isMultipleDate = Period::isMultiplePeriod($strDate, $strPeriod);
  
          return [$allPeriods, $isMultipleDate];
      }
code: protected function getPeriodInfoFromQueryParam($strDate, $strPeriod, $timezone)
      {
          if (Period::isMultiplePeriod($strDate, $strPeriod)) {
              $oPeriod    = PeriodFactory::build($strPeriod, $strDate, $timezone);
              $allPeriods = $oPeriod->getSubperiods();
          } else {
              $oPeriod    = PeriodFactory::makePeriodFromQueryParams($timezone, $strPeriod, $strDate);
              $allPeriods = array($oPeriod);
          }
  
          $isMultipleDate = Period::isMultiplePeriod($strDate, $strPeriod);
  
          return [$allPeriods, $isMultipleDate];
      }
code_tokens: protected function getPeriodInfoFromQueryParam ( $ strDate , $ strPeriod , $ timezone ) { if ( Period :: isMultiplePeriod ( $ strDate , $ strPeriod ) ) { $ oPeriod = PeriodFactory :: build ( $ strPeriod , $ strDate , $ timezone ) ; $ allPeriods = $ oPeriod -> getSubperiods ( ) ; } else { $ oPeriod = PeriodFactory :: makePeriodFromQueryParams ( $ timezone , $ strPeriod , $ strDate ) ; $ allPeriods = array ( $ oPeriod ) ; } $ isMultipleDate = Period :: isMultiplePeriod ( $ strDate , $ strPeriod ) ; return [ $ allPeriods , $ isMultipleDate ] ; }
docstring: Parses the date & period query parameters into a list of periods.
  
  @param string $strDate the value of the 'date' query parameter
  @param string $strPeriod the value of the 'period' query parameter
  @param string $timezone the timezone to use when constructing periods.
  @return array an array containing two elements:
  - the list of period objects to query archive data for
  - true if the request was for multiple periods (ie, two months, two weeks, etc.), false if otherwise.
  (this forces the archive result to be indexed by period, even if the list of periods
  has only one period).
docstring_tokens: Parses the date & period query parameters into a list of periods .