original_string: private function getDatesByYearMonthAndPeriodType($dates)
      {
          $result = array();
          foreach ($dates as $date) {
              $yearMonth = ArchiveTableCreator::getTableMonthFromDate($date);
              $result[$yearMonth][null][] = $date->toString();
  
              // since we're removing all periods, we must make sure to remove year periods as well.
              // this means we have to make sure the january table is processed.
              $janYearMonth = $date->toString('Y') . '_01';
              $result[$janYearMonth][null][] = $date->toString();
          }
          return $result;
      }
code: private function getDatesByYearMonthAndPeriodType($dates)
      {
          $result = array();
          foreach ($dates as $date) {
              $yearMonth = ArchiveTableCreator::getTableMonthFromDate($date);
              $result[$yearMonth][null][] = $date->toString();
  
              // since we're removing all periods, we must make sure to remove year periods as well.
              // this means we have to make sure the january table is processed.
              $janYearMonth = $date->toString('Y') . '_01';
              $result[$janYearMonth][null][] = $date->toString();
          }
          return $result;
      }
code_tokens: private function getDatesByYearMonthAndPeriodType ( $ dates ) { $ result = array ( ) ; foreach ( $ dates as $ date ) { $ yearMonth = ArchiveTableCreator :: getTableMonthFromDate ( $ date ) ; $ result [ $ yearMonth ] [ null ] [ ] = $ date -> toString ( ) ; // since we're removing all periods, we must make sure to remove year periods as well. // this means we have to make sure the january table is processed. $ janYearMonth = $ date -> toString ( 'Y' ) . '_01' ; $ result [ $ janYearMonth ] [ null ] [ ] = $ date -> toString ( ) ; } return $ result ; }
docstring: Called when deleting all periods.
  
  @param Date[] $dates
  @return string[][][]
docstring_tokens: Called when deleting all periods .