original_string: protected function _getMonthNames($leadingZero = false)
      {
          $months = [
              '01' => __d('cake', 'January'),
              '02' => __d('cake', 'February'),
              '03' => __d('cake', 'March'),
              '04' => __d('cake', 'April'),
              '05' => __d('cake', 'May'),
              '06' => __d('cake', 'June'),
              '07' => __d('cake', 'July'),
              '08' => __d('cake', 'August'),
              '09' => __d('cake', 'September'),
              '10' => __d('cake', 'October'),
              '11' => __d('cake', 'November'),
              '12' => __d('cake', 'December'),
          ];
  
          if ($leadingZero === false) {
              $i = 1;
              foreach ($months as $key => $name) {
                  unset($months[$key]);
                  $months[$i++] = $name;
              }
          }
  
          return $months;
      }
code: protected function _getMonthNames($leadingZero = false)
      {
          $months = [
              '01' => __d('cake', 'January'),
              '02' => __d('cake', 'February'),
              '03' => __d('cake', 'March'),
              '04' => __d('cake', 'April'),
              '05' => __d('cake', 'May'),
              '06' => __d('cake', 'June'),
              '07' => __d('cake', 'July'),
              '08' => __d('cake', 'August'),
              '09' => __d('cake', 'September'),
              '10' => __d('cake', 'October'),
              '11' => __d('cake', 'November'),
              '12' => __d('cake', 'December'),
          ];
  
          if ($leadingZero === false) {
              $i = 1;
              foreach ($months as $key => $name) {
                  unset($months[$key]);
                  $months[$i++] = $name;
              }
          }
  
          return $months;
      }
code_tokens: protected function _getMonthNames ( $ leadingZero = false ) { $ months = [ '01' => __d ( 'cake' , 'January' ) , '02' => __d ( 'cake' , 'February' ) , '03' => __d ( 'cake' , 'March' ) , '04' => __d ( 'cake' , 'April' ) , '05' => __d ( 'cake' , 'May' ) , '06' => __d ( 'cake' , 'June' ) , '07' => __d ( 'cake' , 'July' ) , '08' => __d ( 'cake' , 'August' ) , '09' => __d ( 'cake' , 'September' ) , '10' => __d ( 'cake' , 'October' ) , '11' => __d ( 'cake' , 'November' ) , '12' => __d ( 'cake' , 'December' ) , ] ; if ( $ leadingZero === false ) { $ i = 1 ; foreach ( $ months as $ key => $ name ) { unset ( $ months [ $ key ] ) ; $ months [ $ i ++ ] = $ name ; } } return $ months ; }
docstring: Returns a translated list of month names
  
  @param bool $leadingZero Whether to generate month keys with leading zero.
  @return array
docstring_tokens: Returns a translated list of month names