Checks if the development mode is enabled.

@param InputInterface $input

@return bool
359638
protected function isDevelopmentModeEnabled(InputInterface $input)
    {
        if (false == $input->getOption('no-dev')) {
            return $input->getOption('dev') || PHP_DEBUG;
        }

        return false;
    }
5407
private function isEventEmitterEnabled()
    {
        if (! isset($this->isEmitterEnabled)) {
            $this->isEmitterEnabled = $this->getConfig('event_emitter') != false;
        }

        return $this->isEmitterEnabled;
    }
289371
public function isEnabled()
    {
        $isEnabled = (bool) Config::getInstance()->General['enable_update_communication'];

        if($isEnabled === true && SettingsPiwik::isInternetEnabled() === true){
            return true;
        }
        
        return false;
    }
53212
public boolean trySettingInputEnabled(boolean inputEnabled) {
        if (mDoingTouch && !inputEnabled) {
            // If we're trying to disable input, but we're in the middle of a touch event,
            // we'll allow the touch event to continue before disabling input.
            return false;
        }

        mInputEnabled = inputEnabled;
        mGrayBox.setVisibility(inputEnabled? View.INVISIBLE : View.VISIBLE);
        return true;
    }
1185756
protected function validate(InputInterface $input)
    {
        $host = $input->getArgument('host') ? $input->getArgument('host') : null;
        $ip = $input->hasArgument('ip') ? $input->getArgument('ip') : null;

        $this->hostFile->validate($host, $ip);
    }
696907
public static function handleInput(InputInterface $input)
    {
        $configOption = $input->getOption('configuration');
        $configFile = ConfigLocator::locate($configOption);
        $configuration = ConfigLoader::loadConfig($configFile);

        $phpunit = $configuration->getPHPUnitConfiguration();
        if (null !== $input->getOption('bootstrap')) {
            $phpunit['bootstrap'] = $input->getOption('bootstrap');
        }

        if (isset($phpunit['bootstrap'])) {
            FileLoader::loadFile($phpunit['bootstrap']);
        }

        return $configuration;
    }
667447
protected function initializeMoodle(InputInterface $input)
    {
        if (!$this->moodle) {
            $validate     = new Validate();
            $moodleDir    = realpath($validate->directory($input->getOption('moodle')));
            $this->moodle = new Moodle($moodleDir);
        }
    }
1227407
public function toolEnabled($toolName) {
        if (isset($this->tools[$toolName]))
            return $this->tools[$toolName]->enabled();

        return false;
    }
736776
protected function repoName(InputInterface $input) {
        $name = $input->getArgument('name');
        return isset($name) ? $name : basename(getcwd());
    }
1143158
function isEnabled (obj) {
  var enabled = false
  if (obj.isEnumType) {
    enabled = !this.theme.enums.hide
  } else if (obj.isInputType) {
    enabled = !this.theme.inputs.hide
  } else if (obj.isInterfaceType) {
    enabled = !this.theme.interfaces.hide
  } else if (obj.isUnionType) {
    enabled = !this.theme.unions.hide
  } else {
    enabled = true
  }
  return enabled
}
826199
protected function getConfiguration(InputInterface $input)
    {
        $configuration = new Configuration();

        $configuration->setImagine($this->getImagine($input->getOption('driver')));
        $configuration->setOptions($input->getOption('options'));

        $configuration->getFinder()
               ->name($input->getArgument('pattern'))
               ->in($input->getArgument('source'));

        $configuration->setImage($input->getArgument('image'));
        $configuration->setColor(new Color($input->getOption('color'), $input->getOption('alpha')));
        $configuration->setStylesheet($input->getArgument('stylesheet'));
        $configuration->setSelector($input->getArgument('selector'));

        return $configuration;
    }
659046
public function validate($input): bool
    {
        $input = preg_replace('([ \.-])', '', $input);

        if (!is_numeric($input)) {
            return false;
        }

        return $this->verifyMod10($input);
    }
819208
protected function setup(InputInterface $input)
    {
        return $this->setup
            ->setForcedRollback($input->getOption('force-rollback'))
            ->setExecuteQueries($input->getOption('execute'))
            ->setRollbackedFirst($input->getOption('rollback-first'))
            ->run();
    }
898839
public function canProceed(Tool $tool)
    {
        if (false === $this->configuration->isDevMode() && true === $tool->isOnlyDev()) {
            return false;
        }

        return true;
    }
243867
public function accepts(InputInterface $input, OutputInterface $output): bool
    {
        return (bool)$this->engine->evaluate(
            $this->expression,
            [ 'event' => $input->getEvent(), 'input' => $input, 'output' => $output ]
        );
    }
67205
public function is_enabled() {
        list($componentname, $varname) = $this->get_config_var_name();

        $value = get_config($componentname, $varname . '_enabled');

        // Search areas are enabled by default.
        if ($value === false) {
            $value = 1;
        }
        return (bool)$value;
    }
62352
protected function checkEnvironment(
        InputInterface $input,
        OutputInterface $output
    ) {
        $env = $input
            ->getParameterOption(
                ['--env', '-e'],
                getenv('SYMFONY_ENV') ?: 'dev'
            );

        if ('test' != $env) {
            $output->writeln('<bg=red>  </bg=red> <fg=red>Warning, make sure your tests are being run against testing environments</fg=red>');
        }

        return $this;
    }