src/Robo/Commands/Setup/ConfigCommand.php
protected function checkFeaturesOverrides() {
    if ($this->getConfigValue('cm.features.no-overrides')) {
      // @codingStandardsIgnoreStart
      $this->say("Checking for features overrides...");
      if ($this->getConfig()->has('cm.features.bundle')) {
        $task = $this->taskDrush()->stopOnFail();
        foreach ($this->getConfigValue('cm.features.bundle') as $bundle) {
          $task->drush("fl")
            ->option('bundle', $bundle)
            ->option('format', 'json');
          $result = $task->printOutput(TRUE)->run();

          if (!$result->wasSuccessful()) {
            throw new BltException("Unable to determine if features in bundle $bundle are overridden.");
          }

          $output = $result->getMessage();
          $features_overridden = preg_match('/(changed|conflicts|added)( *)$/', $output);
          if ($features_overridden) {
            throw new BltException("A feature in the $bundle bundle is overridden. You must re-export this feature to incorporate the changes.");
          }
        }
      }
    }
    // @codingStandardsIgnoreEnd
  }
protected function checkFeaturesOverrides() {
    if ($this->getConfigValue('cm.features.no-overrides')) {
      // @codingStandardsIgnoreStart
      $this->say("Checking for features overrides...");
      if ($this->getConfig()->has('cm.features.bundle')) {
        $task = $this->taskDrush()->stopOnFail();
        foreach ($this->getConfigValue('cm.features.bundle') as $bundle) {
          $task->drush("fl")
            ->option('bundle', $bundle)
            ->option('format', 'json');
          $result = $task->printOutput(TRUE)->run();

          if (!$result->wasSuccessful()) {
            throw new BltException("Unable to determine if features in bundle $bundle are overridden.");
          }

          $output = $result->getMessage();
          $features_overridden = preg_match('/(changed|conflicts|added)( *)$/', $output);
          if ($features_overridden) {
            throw new BltException("A feature in the $bundle bundle is overridden. You must re-export this feature to incorporate the changes.");
          }
        }
      }
    }
    // @codingStandardsIgnoreEnd
  }
protected function checkFeaturesOverrides ( ) { if ( $ this -> getConfigValue ( 'cm.features.no-overrides' ) ) { // @codingStandardsIgnoreStart $ this -> say ( "Checking for features overrides..." ) ; if ( $ this -> getConfig ( ) -> has ( 'cm.features.bundle' ) ) { $ task = $ this -> taskDrush ( ) -> stopOnFail ( ) ; foreach ( $ this -> getConfigValue ( 'cm.features.bundle' ) as $ bundle ) { $ task -> drush ( "fl" ) -> option ( 'bundle' , $ bundle ) -> option ( 'format' , 'json' ) ; $ result = $ task -> printOutput ( TRUE ) -> run ( ) ; if ( ! $ result -> wasSuccessful ( ) ) { throw new BltException ( "Unable to determine if features in bundle $bundle are overridden." ) ; } $ output = $ result -> getMessage ( ) ; $ features_overridden = preg_match ( '/(changed|conflicts|added)( *)$/' , $ output ) ; if ( $ features_overridden ) { throw new BltException ( "A feature in the $bundle bundle is overridden. You must re-export this feature to incorporate the changes." ) ; } } } } // @codingStandardsIgnoreEnd }
Checks whether features are overridden.

@throws \Exception
If cm.features.no-overrides is true, and there are features overrides
an exception will be thrown.
Checks whether features are overridden .