File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -679,11 +679,8 @@ public function processShortArgument($arg, $pos)
679
679
switch ($ arg ) {
680
680
case 'h ' :
681
681
case '? ' :
682
- ob_start ();
683
682
$ this ->printUsage ();
684
- $ output = ob_get_contents ();
685
- ob_end_clean ();
686
- throw new DeepExitException ($ output , 0 );
683
+ throw new DeepExitException ('' , 0 );
687
684
case 'i ' :
688
685
$ output = Standards::prepareInstalledStandardsForDisplay ().PHP_EOL ;
689
686
throw new DeepExitException ($ output , 0 );
@@ -793,11 +790,8 @@ public function processLongArgument($arg, $pos)
793
790
{
794
791
switch ($ arg ) {
795
792
case 'help ' :
796
- ob_start ();
797
793
$ this ->printUsage ();
798
- $ output = ob_get_contents ();
799
- ob_end_clean ();
800
- throw new DeepExitException ($ output , 0 );
794
+ throw new DeepExitException ('' , 0 );
801
795
case 'version ' :
802
796
$ output = 'PHP_CodeSniffer version ' .self ::VERSION .' ( ' .self ::STABILITY .') ' ;
803
797
$ output .= 'by Squiz and PHPCSStandards ' .PHP_EOL ;
You can’t perform that action at this time.
0 commit comments