Command/ImportTranslationsCommand.php
protected function checkOptions()
    {
        if ($this->input->getOption('only-vendors') && $this->input->getOption('globals')) {
            throw new \LogicException('You cannot use "globals" and "only-vendors" at the same time.');
        }

        if ($this->input->getOption('import-path')
            && ($this->input->getOption('globals')
                || $this->input->getOption('merge')
                || $this->input->getOption('only-vendors'))) {
            throw new \LogicException('You cannot use "globals", "merge" or "only-vendors" and "import-path" at the same time.');
        }
    }
protected function checkOptions()
    {
        if ($this->input->getOption('only-vendors') && $this->input->getOption('globals')) {
            throw new \LogicException('You cannot use "globals" and "only-vendors" at the same time.');
        }

        if ($this->input->getOption('import-path')
            && ($this->input->getOption('globals')
                || $this->input->getOption('merge')
                || $this->input->getOption('only-vendors'))) {
            throw new \LogicException('You cannot use "globals", "merge" or "only-vendors" and "import-path" at the same time.');
        }
    }
protected function checkOptions ( ) { if ( $ this -> input -> getOption ( 'only-vendors' ) && $ this -> input -> getOption ( 'globals' ) ) { throw new \ LogicException ( 'You cannot use "globals" and "only-vendors" at the same time.' ) ; } if ( $ this -> input -> getOption ( 'import-path' ) && ( $ this -> input -> getOption ( 'globals' ) || $ this -> input -> getOption ( 'merge' ) || $ this -> input -> getOption ( 'only-vendors' ) ) ) { throw new \ LogicException ( 'You cannot use "globals", "merge" or "only-vendors" and "import-path" at the same time.' ) ; } }
Checks if given options are compatible.
Checks if given options are compatible .