protected function validatePathsExist(InputInterface $input): void
    {
        if (! is_string($input->getArgument('source'))) {
            throw new Exception('Missing the source path');
        }
        if (! is_string($input->getArgument('target'))) {
            throw new Exception('Missing the target path');
        }
    }
protected function validatePathsExist(InputInterface $input): void
    {
        if (! is_string($input->getArgument('source'))) {
            throw new Exception('Missing the source path');
        }
        if (! is_string($input->getArgument('target'))) {
            throw new Exception('Missing the target path');
        }
    }
protected function validatePathsExist ( InputInterface $ input ) : void { if ( ! is_string ( $ input -> getArgument ( 'source' ) ) ) { throw new Exception ( 'Missing the source path' ) ; } if ( ! is_string ( $ input -> getArgument ( 'target' ) ) ) { throw new Exception ( 'Missing the target path' ) ; } }
Throw an exception if the source or the target path is missing.

@param InputInterface $input The input interface to check.

@throws Exception If the source or the target path is missing.
Throw an exception if the source or the target path is missing .