original_string: protected function addDateAttributesToArray(array $attributes)
      {
          foreach ($this->getDates() as $key) {
              if (! isset($attributes[$key])) {
                  continue;
              }
  
              $attributes[$key] = $this->serializeDate(
                  $this->asDateTime($attributes[$key])
              );
          }
  
          return $attributes;
      }
code: protected function addDateAttributesToArray(array $attributes)
      {
          foreach ($this->getDates() as $key) {
              if (! isset($attributes[$key])) {
                  continue;
              }
  
              $attributes[$key] = $this->serializeDate(
                  $this->asDateTime($attributes[$key])
              );
          }
  
          return $attributes;
      }
code_tokens: protected function addDateAttributesToArray ( array $ attributes ) { foreach ( $ this -> getDates ( ) as $ key ) { if ( ! isset ( $ attributes [ $ key ] ) ) { continue ; } $ attributes [ $ key ] = $ this -> serializeDate ( $ this -> asDateTime ( $ attributes [ $ key ] ) ) ; } return $ attributes ; }
docstring: Add the date attributes to the attributes array.
  
  @param  array  $attributes
  @return array
docstring_tokens: Add the date attributes to the attributes array .