Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Generate / BreakPointCommand.php
index 5ffe47470779ced854da021bdbbea1a75eae193a..bb53df8ef7c7c94c52717b573aeef5d88fec617e 100644 (file)
@@ -97,13 +97,13 @@ class BreakPointCommand extends Command
             ->setHelp($this->trans('commands.generate.breakpoint.help'))
             ->addOption(
                 'theme',
-                '',
+                null,
                 InputOption::VALUE_REQUIRED,
                 $this->trans('commands.generate.breakpoint.options.theme')
             )
             ->addOption(
                 'breakpoints',
-                '',
+                null,
                 InputOption::VALUE_OPTIONAL,
                 $this->trans('commands.generate.breakpoint.options.breakpoints')
             );
@@ -118,7 +118,7 @@ class BreakPointCommand extends Command
 
         // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
         if (!$this->confirmGeneration($io)) {
-            return;
+            return 1;
         }
 
         $validators = $this->validator;
@@ -132,6 +132,8 @@ class BreakPointCommand extends Command
             $breakpoints,
             $machine_name
         );
+
+        return 0;
     }
 
     /**