src/Phpro/SoapClient/Console/Command/GenerateTypesCommand.php
/**
     * An existing file was found. Try to patch or ask if it can be overwritten.
     *
     * @param TypeGenerator $generator
     * @param Type $type
     * @param SplFileInfo $fileInfo
     * @return bool
     *
     */
An existing file was found. Try to patch or ask if it can be overwritten.
@param TypeGenerator $generator
@param Type $type
@param SplFileInfo $fileInfo
@return bool
An existing file was found . Try to patch or ask if it can be overwritten . @param TypeGenerator $generator @param Type $type @param SplFileInfo $fileInfo @return bool
protected function handleExistingFile(TypeGenerator $generator, Type $type, SplFileInfo $fileInfo): bool
    {
        $this->output->write(sprintf('Type %s exists. Trying to patch ...', $type->getName()));
        $patched = $this->patchExistingFile($generator, $type, $fileInfo);
        if ($patched) {
            $this->output->writeln('Patched!');
            return true;
        }
        $this->output->writeln('Could not patch.');
        return false;
    }
protected function handleExistingFile ( TypeGenerator $ generator , Type $ type , SplFileInfo $ fileInfo ) : bool { $ this -> output -> write ( sprintf ( 'Type %s exists. Trying to patch ...' , $ type -> getName ( ) ) ) ; $ patched = $ this -> patchExistingFile ( $ generator , $ type , $ fileInfo ) ; if ( $ patched ) { $ this -> output -> writeln ( 'Patched!' ) ; return true ; } $ this -> output -> writeln ( 'Could not patch.' ) ; return false ; }
An existing file was found.
An existing file was found .