original_string: protected function validateDateTimeValue($value, $column)
      {
          $value = DateTimeHelper::makeCarbon($value, false);
  
          if (!$value instanceof Carbon) {
              throw new ApplicationException(Lang::get(
                  'backend::lang.list.invalid_column_datetime',
                  ['column' => $column->columnName]
              ));
          }
  
          return $value;
      }
code: protected function validateDateTimeValue($value, $column)
      {
          $value = DateTimeHelper::makeCarbon($value, false);
  
          if (!$value instanceof Carbon) {
              throw new ApplicationException(Lang::get(
                  'backend::lang.list.invalid_column_datetime',
                  ['column' => $column->columnName]
              ));
          }
  
          return $value;
      }
code_tokens: protected function validateDateTimeValue ( $ value , $ column ) { $ value = DateTimeHelper :: makeCarbon ( $ value , false ) ; if ( ! $ value instanceof Carbon ) { throw new ApplicationException ( Lang :: get ( 'backend::lang.list.invalid_column_datetime' , [ 'column' => $ column -> columnName ] ) ) ; } return $ value ; }
docstring: Validates a column type as a date
docstring_tokens: Validates a column type as a date