original_string: public function getMonths($year)
      {
          $year = $this->yearOrYearNo($year);
  
          $months = array();
  
          for ($monthNo = 1; $monthNo <= 12; $monthNo++) {
              $months[$monthNo] = new Month($year, $monthNo);
          }
  
          return $months;
      }
code: public function getMonths($year)
      {
          $year = $this->yearOrYearNo($year);
  
          $months = array();
  
          for ($monthNo = 1; $monthNo <= 12; $monthNo++) {
              $months[$monthNo] = new Month($year, $monthNo);
          }
  
          return $months;
      }
code_tokens: public function getMonths ( $ year ) { $ year = $ this -> yearOrYearNo ( $ year ) ; $ months = array ( ) ; for ( $ monthNo = 1 ; $ monthNo <= 12 ; $ monthNo ++ ) { $ months [ $ monthNo ] = new Month ( $ year , $ monthNo ) ; } return $ months ; }
docstring: Get this months for the given year.
  
  @param  int|Year $year
  @return Month[]
docstring_tokens: Get this months for the given year .