private function validateInput(InputInterface $input)
    {
        if (!$input->getOption('grep')) {
            foreach (['invert', 'insensitive'] as $option) {
                if ($input->getOption($option)) {
                    throw new RuntimeException('--' . $option . ' does not make sense without --grep');
                }
            }
        }
    }
private function validateInput(InputInterface $input)
    {
        if (!$input->getOption('grep')) {
            foreach (['invert', 'insensitive'] as $option) {
                if ($input->getOption($option)) {
                    throw new RuntimeException('--' . $option . ' does not make sense without --grep');
                }
            }
        }
    }
private function validateInput ( InputInterface $ input ) { if ( ! $ input -> getOption ( 'grep' ) ) { foreach ( [ 'invert' , 'insensitive' ] as $ option ) { if ( $ input -> getOption ( $ option ) ) { throw new RuntimeException ( '--' . $ option . ' does not make sense without --grep' ) ; } } } }
Validate that grep, invert and insensitive input options are consistent.

@param InputInterface $input

@return bool
Validate that grep invert and insensitive input options are consistent .