original_string: protected function validateCreatedReview()
      {
          $field = 'created';
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return null;
          }
  
          $timestamp = strtotime($value);
  
          if (empty($timestamp)) {
              $this->setErrorInvalid($field, $this->translation->text('Created'));
              return false;
          }
  
          $this->setSubmitted('created', $timestamp);
          return true;
      }
code: protected function validateCreatedReview()
      {
          $field = 'created';
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return null;
          }
  
          $timestamp = strtotime($value);
  
          if (empty($timestamp)) {
              $this->setErrorInvalid($field, $this->translation->text('Created'));
              return false;
          }
  
          $this->setSubmitted('created', $timestamp);
          return true;
      }
code_tokens: protected function validateCreatedReview ( ) { $ field = 'created' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( ! isset ( $ value ) ) { $ this -> unsetSubmitted ( $ field ) ; return null ; } $ timestamp = strtotime ( $ value ) ; if ( empty ( $ timestamp ) ) { $ this -> setErrorInvalid ( $ field , $ this -> translation -> text ( 'Created' ) ) ; return false ; } $ this -> setSubmitted ( 'created' , $ timestamp ) ; return true ; }
docstring: Validates a created review date
  @return boolean|null
docstring_tokens: Validates a created review date