original_string: protected function getModifiedDate($object)
      {
          if (! isset($object->modified)) {
              return date('Y-m-d h:i:s');
          }
  
          return $object->modified === '0000-00-00 00:00:00'
              ? date('Y-m-d h:i:s')
              : $object->modified;
      }
code: protected function getModifiedDate($object)
      {
          if (! isset($object->modified)) {
              return date('Y-m-d h:i:s');
          }
  
          return $object->modified === '0000-00-00 00:00:00'
              ? date('Y-m-d h:i:s')
              : $object->modified;
      }
code_tokens: protected function getModifiedDate ( $ object ) { if ( ! isset ( $ object -> modified ) ) { return date ( 'Y-m-d h:i:s' ) ; } return $ object -> modified === '0000-00-00 00:00:00' ? date ( 'Y-m-d h:i:s' ) : $ object -> modified ; }
docstring: When a record has a modified date, make sure one is set.
  
  @param $object
  
  @return mixed
docstring_tokens: When a record has a modified date make sure one is set .