original_string: public function beforeSave(Event $event, FieldInstance $instance, ArrayObject $options = null)
      {
          $result = $instance->beforeAttach();
          if ($result === false) {
              return false;
          }
  
          return true;
      }
code: public function beforeSave(Event $event, FieldInstance $instance, ArrayObject $options = null)
      {
          $result = $instance->beforeAttach();
          if ($result === false) {
              return false;
          }
  
          return true;
      }
code_tokens: public function beforeSave ( Event $ event , FieldInstance $ instance , ArrayObject $ options = null ) { $ result = $ instance -> beforeAttach ( ) ; if ( $ result === false ) { return false ; } return true ; }
docstring: Triggers the callback "beforeAttach" if a new instance is being created.
  
  @param \Cake\Event\Event $event The event that was triggered
  @param \Field\Model\Entity\FieldInstance $instance The Field Instance that is going to be saved
  @param \ArrayObject  $options The options passed to the save method
  @return bool False if save operation should not continue, true otherwise
docstring_tokens: Triggers the callback beforeAttach if a new instance is being created .