original_string: public function onVichUploaderPreUpload(Event $event)
      {
          $media = $event->getObject();
  
          $this->checkIfThereIsAName($media);
          $this->checkIfNameEverExistInDatabase($media);
          $this->checkIfFileLocationIsChanging($media);
      }
code: public function onVichUploaderPreUpload(Event $event)
      {
          $media = $event->getObject();
  
          $this->checkIfThereIsAName($media);
          $this->checkIfNameEverExistInDatabase($media);
          $this->checkIfFileLocationIsChanging($media);
      }
code_tokens: public function onVichUploaderPreUpload ( Event $ event ) { $ media = $ event -> getObject ( ) ; $ this -> checkIfThereIsAName ( $ media ) ; $ this -> checkIfNameEverExistInDatabase ( $ media ) ; $ this -> checkIfFileLocationIsChanging ( $ media ) ; }
docstring: Check if name exist.
docstring_tokens: Check if name exist .