original_string: protected function _generateNumbers($start, $end, $options = [])
      {
          $options += [
              'leadingZeroKey' => true,
              'leadingZeroValue' => true,
              'interval' => 1
          ];
  
          $numbers = [];
          $i = $start;
          while ($i <= $end) {
              $key = (string)$i;
              $value = (string)$i;
              if ($options['leadingZeroKey'] === true) {
                  $key = sprintf('%02d', $key);
              }
              if ($options['leadingZeroValue'] === true) {
                  $value = sprintf('%02d', $value);
              }
              $numbers[$key] = $value;
              $i += $options['interval'];
          }
  
          return $numbers;
      }
code: protected function _generateNumbers($start, $end, $options = [])
      {
          $options += [
              'leadingZeroKey' => true,
              'leadingZeroValue' => true,
              'interval' => 1
          ];
  
          $numbers = [];
          $i = $start;
          while ($i <= $end) {
              $key = (string)$i;
              $value = (string)$i;
              if ($options['leadingZeroKey'] === true) {
                  $key = sprintf('%02d', $key);
              }
              if ($options['leadingZeroValue'] === true) {
                  $value = sprintf('%02d', $value);
              }
              $numbers[$key] = $value;
              $i += $options['interval'];
          }
  
          return $numbers;
      }
code_tokens: protected function _generateNumbers ( $ start , $ end , $ options = [ ] ) { $ options += [ 'leadingZeroKey' => true , 'leadingZeroValue' => true , 'interval' => 1 ] ; $ numbers = [ ] ; $ i = $ start ; while ( $ i <= $ end ) { $ key = ( string ) $ i ; $ value = ( string ) $ i ; if ( $ options [ 'leadingZeroKey' ] === true ) { $ key = sprintf ( '%02d' , $ key ) ; } if ( $ options [ 'leadingZeroValue' ] === true ) { $ value = sprintf ( '%02d' , $ value ) ; } $ numbers [ $ key ] = $ value ; $ i += $ options [ 'interval' ] ; } return $ numbers ; }
docstring: Generates a range of numbers
  
  ### Options
  
  - leadingZeroKey - Set to true to add a leading 0 to single digit keys.
  - leadingZeroValue - Set to true to add a leading 0 to single digit values.
  - interval - The interval to generate numbers for. Defaults to 1.
  
  @param int $start Start of the range of numbers to generate
  @param int $end End of the range of numbers to generate
  @param array $options Options list.
  @return array
docstring_tokens: Generates a range of numbers