original_string: public static function validateDateFormat($format)
      {
          $format = str_replace(array_keys(static::$_map['date']), '', $format); // remove placeholders
          $format = preg_replace("/'(.*)'/", '', $format); // remove literals
          $format = preg_replace('/[^a-z]/i', '', $format);
          $format = trim($format);
  
          return empty($format);
      }
code: public static function validateDateFormat($format)
      {
          $format = str_replace(array_keys(static::$_map['date']), '', $format); // remove placeholders
          $format = preg_replace("/'(.*)'/", '', $format); // remove literals
          $format = preg_replace('/[^a-z]/i', '', $format);
          $format = trim($format);
  
          return empty($format);
      }
code_tokens: public static function validateDateFormat ( $ format ) { $ format = str_replace ( array_keys ( static :: $ _map [ 'date' ] ) , '' , $ format ) ; // remove placeholders $ format = preg_replace ( "/'(.*)'/" , '' , $ format ) ; // remove literals $ format = preg_replace ( '/[^a-z]/i' , '' , $ format ) ; $ format = trim ( $ format ) ; return empty ( $ format ) ; }
docstring: Validates a date format for jQuery's datepicker widget.
  
  @param string $format Format to validate. e.g. yy:mm:ddQ (invalid)
  @return bool
docstring_tokens: Validates a date format for jQuery s datepicker widget .