original_string: public function renderMonth($year, $month)
      {
          $monthClass   = sprintf('bm-calendar-month-%02d', $month);
          $yearClass    = sprintf('bm-calendar-year-%04d', $year);
  
          $month = $this->calendar->getMonth($year, $month);
          $days  = $this->calendar->getDays($month);
  
          $column = 0;
  
          $output  = '<table class="bm-calendar ' . $monthClass . ' ' . $yearClass .'">';
  
          $output .= $this->monthTitle($month);
  
          $output .= '<tbody>';
  
          $output .= '<tr>';
  
          $blankCells = ($month->startDay() - $this->startDay + 7) % 7;
  
          while ($column < $blankCells) {
              $output .= '<td class="bm-calendar-empty"></td>';
              $column++;
          }
  
          foreach ($days as $day) {
              if (1 !== $day->value() && 0 === $column) {
                  $output .= '</tr><tr>';
              }
  
              $output .= $this->renderDay($day, $column);
  
              $column = ($column + 1) % 7;
          }
  
          while ($column < 7) {
              $output .= '<td class="bm-calendar-empty"></td>';
              $column++;
          }
  
          $output .= '</tr>';
  
          $output .= '</tbody>';
  
          $output .= '</table>';
  
          return $output;
      }
code: public function renderMonth($year, $month)
      {
          $monthClass   = sprintf('bm-calendar-month-%02d', $month);
          $yearClass    = sprintf('bm-calendar-year-%04d', $year);
  
          $month = $this->calendar->getMonth($year, $month);
          $days  = $this->calendar->getDays($month);
  
          $column = 0;
  
          $output  = '<table class="bm-calendar ' . $monthClass . ' ' . $yearClass .'">';
  
          $output .= $this->monthTitle($month);
  
          $output .= '<tbody>';
  
          $output .= '<tr>';
  
          $blankCells = ($month->startDay() - $this->startDay + 7) % 7;
  
          while ($column < $blankCells) {
              $output .= '<td class="bm-calendar-empty"></td>';
              $column++;
          }
  
          foreach ($days as $day) {
              if (1 !== $day->value() && 0 === $column) {
                  $output .= '</tr><tr>';
              }
  
              $output .= $this->renderDay($day, $column);
  
              $column = ($column + 1) % 7;
          }
  
          while ($column < 7) {
              $output .= '<td class="bm-calendar-empty"></td>';
              $column++;
          }
  
          $output .= '</tr>';
  
          $output .= '</tbody>';
  
          $output .= '</table>';
  
          return $output;
      }
code_tokens: public function renderMonth ( $ year , $ month ) { $ monthClass = sprintf ( 'bm-calendar-month-%02d' , $ month ) ; $ yearClass = sprintf ( 'bm-calendar-year-%04d' , $ year ) ; $ month = $ this -> calendar -> getMonth ( $ year , $ month ) ; $ days = $ this -> calendar -> getDays ( $ month ) ; $ column = 0 ; $ output = '<table class="bm-calendar ' . $ monthClass . ' ' . $ yearClass . '">' ; $ output .= $ this -> monthTitle ( $ month ) ; $ output .= '<tbody>' ; $ output .= '<tr>' ; $ blankCells = ( $ month -> startDay ( ) - $ this -> startDay + 7 ) % 7 ; while ( $ column < $ blankCells ) { $ output .= '<td class="bm-calendar-empty"></td>' ; $ column ++ ; } foreach ( $ days as $ day ) { if ( 1 !== $ day -> value ( ) && 0 === $ column ) { $ output .= '</tr><tr>' ; } $ output .= $ this -> renderDay ( $ day , $ column ) ; $ column = ( $ column + 1 ) % 7 ; } while ( $ column < 7 ) { $ output .= '<td class="bm-calendar-empty"></td>' ; $ column ++ ; } $ output .= '</tr>' ; $ output .= '</tbody>' ; $ output .= '</table>' ; return $ output ; }
docstring: Render a month table internally.
  
  @param  int $yearNo
  @param  int $monthNo
  @return string
docstring_tokens: Render a month table internally .