private function cleanFtpCredentials(User $user)
    {
        if (null !== $credential = $user->getFtpCredential()) {
            $this->objectManager->remove($credential);
        }
    }
private function cleanFtpCredentials(User $user)
    {
        if (null !== $credential = $user->getFtpCredential()) {
            $this->objectManager->remove($credential);
        }
    }
private function cleanFtpCredentials ( User $ user ) { if ( null !== $ credential = $ user -> getFtpCredential ( ) ) { $ this -> objectManager -> remove ( $ credential ) ; } }
Removes user ftp credentials.

@param User $user
Removes user ftp credentials .