original_string: public function day($fieldName = null, array $options = [])
      {
          $options = $this->_singleDatetime($options, 'day');
  
          if (isset($options['val']) && $options['val'] > 0 && $options['val'] <= 31) {
              $options['val'] = [
                  'year' => date('Y'),
                  'month' => date('m'),
                  'day' => (int)$options['val']
              ];
          }
  
          return $this->dateTime($fieldName, $options);
      }
code: public function day($fieldName = null, array $options = [])
      {
          $options = $this->_singleDatetime($options, 'day');
  
          if (isset($options['val']) && $options['val'] > 0 && $options['val'] <= 31) {
              $options['val'] = [
                  'year' => date('Y'),
                  'month' => date('m'),
                  'day' => (int)$options['val']
              ];
          }
  
          return $this->dateTime($fieldName, $options);
      }
code_tokens: public function day ( $ fieldName = null , array $ options = [ ] ) { $ options = $ this -> _singleDatetime ( $ options , 'day' ) ; if ( isset ( $ options [ 'val' ] ) && $ options [ 'val' ] > 0 && $ options [ 'val' ] <= 31 ) { $ options [ 'val' ] = [ 'year' => date ( 'Y' ) , 'month' => date ( 'm' ) , 'day' => ( int ) $ options [ 'val' ] ] ; } return $ this -> dateTime ( $ fieldName , $ options ) ; }
docstring: Returns a SELECT element for days.
  
  ### Options:
  
  - `empty` - If true, the empty select option is shown. If a string,
  that string is displayed as the empty element.
  - `value` The selected value of the input.
  
  @param string|null $fieldName Prefix name for the SELECT element
  @param array $options Options & HTML attributes for the select element
  @return string A generated day select box.
  @link https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-day-inputs
docstring_tokens: Returns a SELECT element for days .