Completed
Pull Request — master (#11)
by Tomáš
04:12
created
src/Config.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -76,31 +76,31 @@  discard block
 block discarded – undo
76 76
      * @var array<string, mixed>
77 77
      */
78 78
     private $settings = array(
79
-                         'files'           => null,
80
-                         'standards'       => null,
81
-                         'verbosity'       => null,
82
-                         'interactive'     => null,
83
-                         'explain'         => null,
84
-                         'local'           => null,
85
-                         'showSources'     => null,
86
-                         'showProgress'    => null,
87
-                         'tabWidth'        => null,
88
-                         'extensions'      => null,
89
-                         'sniffs'          => null,
90
-                         'ignored'         => null,
91
-                         'reportFile'      => null,
92
-                         'filter'          => null,
93
-                         'bootstrap'       => null,
94
-                         'reports'         => null,
95
-                         'basepath'        => null,
96
-                         'reportWidth'     => null,
97
-                         'errorSeverity'   => null,
98
-                         'warningSeverity' => null,
99
-                         'recordErrors'    => null,
100
-                         'suffix'          => null,
101
-                         'stdin'           => null,
102
-                         'stdinContent'    => null,
103
-                         'stdinPath'       => null,
79
+                            'files'           => null,
80
+                            'standards'       => null,
81
+                            'verbosity'       => null,
82
+                            'interactive'     => null,
83
+                            'explain'         => null,
84
+                            'local'           => null,
85
+                            'showSources'     => null,
86
+                            'showProgress'    => null,
87
+                            'tabWidth'        => null,
88
+                            'extensions'      => null,
89
+                            'sniffs'          => null,
90
+                            'ignored'         => null,
91
+                            'reportFile'      => null,
92
+                            'filter'          => null,
93
+                            'bootstrap'       => null,
94
+                            'reports'         => null,
95
+                            'basepath'        => null,
96
+                            'reportWidth'     => null,
97
+                            'errorSeverity'   => null,
98
+                            'warningSeverity' => null,
99
+                            'recordErrors'    => null,
100
+                            'suffix'          => null,
101
+                            'stdin'           => null,
102
+                            'stdinContent'    => null,
103
+                            'stdinPath'       => null,
104 104
                         );
105 105
 
106 106
     /**
@@ -393,11 +393,11 @@  discard block
 block discarded – undo
393 393
         $this->showProgress    = false;
394 394
         $this->tabWidth        = 0;
395 395
         $this->extensions      = array(
396
-                                  'php' => 'PHP',
397
-                                  'inc' => 'PHP',
398
-                                  'js'  => 'JS',
399
-                                  'css' => 'CSS',
400
-                                 );
396
+                                    'php' => 'PHP',
397
+                                    'inc' => 'PHP',
398
+                                    'js'  => 'JS',
399
+                                    'css' => 'CSS',
400
+                                    );
401 401
         $this->sniffs          = array();
402 402
         $this->ignored         = array();
403 403
         $this->filter          = null;
Please login to merge, or discard this patch.
Switch Indentation   +227 added lines, -227 removed lines patch added patch discarded remove patch
@@ -184,35 +184,35 @@  discard block
 block discarded – undo
184 184
         }
185 185
 
186 186
         switch ($name) {
187
-        case 'reportWidth' :
188
-            // Support auto terminal width.
189
-            if ($value === 'auto' && preg_match('|\d+ (\d+)|', shell_exec('stty size 2>&1'), $matches) === 1) {
190
-                $value = (int) $matches[1];
191
-            } else {
192
-                $value = (int) $value;
193
-            }
194
-            break;
195
-        case 'standards' :
196
-            $cleaned = array();
197
-
198
-            // Check if the standard name is valid, or if the case is invalid.
199
-            $installedStandards = Util\Standards::getInstalledStandards();
200
-            foreach ($value as $standard) {
201
-                foreach ($installedStandards as $validStandard) {
202
-                    if (strtolower($standard) === strtolower($validStandard)) {
203
-                        $standard = $validStandard;
204
-                        break;
205
-                    }
187
+            case 'reportWidth' :
188
+                // Support auto terminal width.
189
+                if ($value === 'auto' && preg_match('|\d+ (\d+)|', shell_exec('stty size 2>&1'), $matches) === 1) {
190
+                    $value = (int) $matches[1];
191
+                } else {
192
+                    $value = (int) $value;
206 193
                 }
194
+                break;
195
+            case 'standards' :
196
+                $cleaned = array();
197
+
198
+                // Check if the standard name is valid, or if the case is invalid.
199
+                $installedStandards = Util\Standards::getInstalledStandards();
200
+                foreach ($value as $standard) {
201
+                    foreach ($installedStandards as $validStandard) {
202
+                        if (strtolower($standard) === strtolower($validStandard)) {
203
+                            $standard = $validStandard;
204
+                            break;
205
+                        }
206
+                    }
207 207
 
208
-                $cleaned[] = $standard;
209
-            }
208
+                    $cleaned[] = $standard;
209
+                }
210 210
 
211
-            $value = $cleaned;
212
-            break;
213
-        default :
214
-            // No validation required.
215
-            break;
211
+                $value = $cleaned;
212
+                break;
213
+            default :
214
+                // No validation required.
215
+                break;
216 216
         }//end switch
217 217
 
218 218
         $this->settings[$name] = $value;
@@ -471,68 +471,68 @@  discard block
 block discarded – undo
471 471
     public function processShortArgument($arg, $pos)
472 472
     {
473 473
         switch ($arg) {
474
-        case 'h':
475
-        case '?':
476
-            $this->printUsage();
477
-            exit(0);
478
-        case 'i' :
479
-            Util\Standards::printInstalledStandards();
480
-            exit(0);
481
-        case 'v' :
482
-            $this->verbosity++;
483
-            $this->overriddenDefaults['verbosity'] = true;
484
-            break;
485
-        case 'l' :
486
-            $this->local = true;
487
-            $this->overriddenDefaults['local'] = true;
488
-            break;
489
-        case 's' :
490
-            $this->showSources = true;
491
-            $this->overriddenDefaults['showSources'] = true;
492
-            break;
493
-        case 'a' :
494
-            $this->interactive = true;
495
-            $this->overriddenDefaults['interactive'] = true;
496
-            break;
497
-        case 'e':
498
-            $this->explain = true;
499
-            $this->overriddenDefaults['explain'] = true;
500
-            break;
501
-        case 'p' :
502
-            $this->showProgress = true;
503
-            $this->overriddenDefaults['showProgress'] = true;
504
-            break;
505
-        case 'm' :
506
-            $this->recordErrors = false;
507
-            $this->overriddenDefaults['recordErrors'] = true;
508
-            break;
509
-        case 'd' :
510
-            $ini = explode('=', $this->cliArgs[($pos + 1)]);
511
-            $this->cliArgs[($pos + 1)] = '';
512
-            if (isset($ini[1]) === true) {
513
-                ini_set($ini[0], $ini[1]);
514
-            } else {
515
-                ini_set($ini[0], true);
516
-            }
517
-            break;
518
-        case 'n' :
519
-            if (isset($this->overriddenDefaults['warningSeverity']) === false) {
520
-                $this->warningSeverity = 0;
521
-                $this->overriddenDefaults['warningSeverity'] = true;
522
-            }
523
-            break;
524
-        case 'w' :
525
-            if (isset($this->overriddenDefaults['warningSeverity']) === false) {
526
-                $this->warningSeverity = $this->errorSeverity;
527
-                $this->overriddenDefaults['warningSeverity'] = true;
528
-            }
529
-            break;
530
-        default:
531
-            if ($this->dieOnUnknownArg === false) {
532
-                $this->values[$arg] = $arg;
533
-            } else {
534
-                $this->processUnknownArgument('-'.$arg, $pos);
535
-            }
474
+            case 'h':
475
+            case '?':
476
+                $this->printUsage();
477
+                exit(0);
478
+            case 'i' :
479
+                Util\Standards::printInstalledStandards();
480
+                exit(0);
481
+            case 'v' :
482
+                $this->verbosity++;
483
+                $this->overriddenDefaults['verbosity'] = true;
484
+                break;
485
+            case 'l' :
486
+                $this->local = true;
487
+                $this->overriddenDefaults['local'] = true;
488
+                break;
489
+            case 's' :
490
+                $this->showSources = true;
491
+                $this->overriddenDefaults['showSources'] = true;
492
+                break;
493
+            case 'a' :
494
+                $this->interactive = true;
495
+                $this->overriddenDefaults['interactive'] = true;
496
+                break;
497
+            case 'e':
498
+                $this->explain = true;
499
+                $this->overriddenDefaults['explain'] = true;
500
+                break;
501
+            case 'p' :
502
+                $this->showProgress = true;
503
+                $this->overriddenDefaults['showProgress'] = true;
504
+                break;
505
+            case 'm' :
506
+                $this->recordErrors = false;
507
+                $this->overriddenDefaults['recordErrors'] = true;
508
+                break;
509
+            case 'd' :
510
+                $ini = explode('=', $this->cliArgs[($pos + 1)]);
511
+                $this->cliArgs[($pos + 1)] = '';
512
+                if (isset($ini[1]) === true) {
513
+                    ini_set($ini[0], $ini[1]);
514
+                } else {
515
+                    ini_set($ini[0], true);
516
+                }
517
+                break;
518
+            case 'n' :
519
+                if (isset($this->overriddenDefaults['warningSeverity']) === false) {
520
+                    $this->warningSeverity = 0;
521
+                    $this->overriddenDefaults['warningSeverity'] = true;
522
+                }
523
+                break;
524
+            case 'w' :
525
+                if (isset($this->overriddenDefaults['warningSeverity']) === false) {
526
+                    $this->warningSeverity = $this->errorSeverity;
527
+                    $this->overriddenDefaults['warningSeverity'] = true;
528
+                }
529
+                break;
530
+            default:
531
+                if ($this->dieOnUnknownArg === false) {
532
+                    $this->values[$arg] = $arg;
533
+                } else {
534
+                    $this->processUnknownArgument('-'.$arg, $pos);
535
+                }
536 536
         }//end switch
537 537
 
538 538
     }//end processShortArgument()
@@ -549,167 +549,167 @@  discard block
 block discarded – undo
549 549
     public function processLongArgument($arg, $pos)
550 550
     {
551 551
         switch ($arg) {
552
-        case 'help':
553
-            $this->printUsage();
554
-            exit(0);
555
-        case 'version':
556
-            echo 'Symplify\PHP7_CodeSniffer version '.self::VERSION;
557
-            exit(0);
558
-        case 'cache':
559
-            if (defined('Symplify\PHP7_CodeSniffer_IN_TESTS') === false) {
560
-                $this->cache = true;
552
+            case 'help':
553
+                $this->printUsage();
554
+                exit(0);
555
+            case 'version':
556
+                echo 'Symplify\PHP7_CodeSniffer version '.self::VERSION;
557
+                exit(0);
558
+            case 'cache':
559
+                if (defined('Symplify\PHP7_CodeSniffer_IN_TESTS') === false) {
560
+                    $this->cache = true;
561
+                    $this->overriddenDefaults['cache'] = true;
562
+                }
563
+                break;
564
+            case 'no-cache':
565
+                $this->cache = false;
561 566
                 $this->overriddenDefaults['cache'] = true;
562
-            }
563
-            break;
564
-        case 'no-cache':
565
-            $this->cache = false;
566
-            $this->overriddenDefaults['cache'] = true;
567
-            break;
568
-        default:
569
-            if (substr($arg, 0, 7) === 'sniffs=') {
570
-                $sniffs = explode(',', substr($arg, 7));
571
-                foreach ($sniffs as $sniff) {
572
-                    if (substr_count($sniff, '.') !== 2) {
573
-                        echo 'ERROR: The specified sniff code "'.$sniff.'" is invalid'.PHP_EOL.PHP_EOL;
574
-                        $this->printUsage();
575
-                        exit(2);
567
+                break;
568
+            default:
569
+                if (substr($arg, 0, 7) === 'sniffs=') {
570
+                    $sniffs = explode(',', substr($arg, 7));
571
+                    foreach ($sniffs as $sniff) {
572
+                        if (substr_count($sniff, '.') !== 2) {
573
+                            echo 'ERROR: The specified sniff code "'.$sniff.'" is invalid'.PHP_EOL.PHP_EOL;
574
+                            $this->printUsage();
575
+                            exit(2);
576
+                        }
576 577
                     }
577
-                }
578 578
 
579
-                $this->sniffs = $sniffs;
580
-                $this->overriddenDefaults['sniffs'] = true;
581
-            } else if (substr($arg, 0, 10) === 'bootstrap=') {
582
-                $files     = explode(',', substr($arg, 10));
583
-                $bootstrap = array();
584
-                foreach ($files as $file) {
585
-                    $path = Util\Common::realpath($file);
586
-                    if ($path === false) {
587
-                        echo 'ERROR: The specified bootstrap file "'.$file.'" does not exist'.PHP_EOL.PHP_EOL;
588
-                        $this->printUsage();
589
-                        exit(2);
579
+                    $this->sniffs = $sniffs;
580
+                    $this->overriddenDefaults['sniffs'] = true;
581
+                } else if (substr($arg, 0, 10) === 'bootstrap=') {
582
+                    $files     = explode(',', substr($arg, 10));
583
+                    $bootstrap = array();
584
+                    foreach ($files as $file) {
585
+                        $path = Util\Common::realpath($file);
586
+                        if ($path === false) {
587
+                            echo 'ERROR: The specified bootstrap file "'.$file.'" does not exist'.PHP_EOL.PHP_EOL;
588
+                            $this->printUsage();
589
+                            exit(2);
590
+                        }
591
+
592
+                        $bootstrap[] = $path;
590 593
                     }
591 594
 
592
-                    $bootstrap[] = $path;
593
-                }
595
+                    $this->bootstrap = array_merge($this->bootstrap, $bootstrap);
596
+                    $this->overriddenDefaults['bootstrap'] = true;
597
+                } else if (substr($arg, 0, 11) === 'stdin-path=') {
598
+                    $this->stdinPath = Util\Common::realpath(substr($arg, 11));
594 599
 
595
-                $this->bootstrap = array_merge($this->bootstrap, $bootstrap);
596
-                $this->overriddenDefaults['bootstrap'] = true;
597
-            } else if (substr($arg, 0, 11) === 'stdin-path=') {
598
-                $this->stdinPath = Util\Common::realpath(substr($arg, 11));
600
+                    // It may not exist and return false instead, so use whatever they gave us.
601
+                    if ($this->stdinPath === false) {
602
+                        $this->stdinPath = trim(substr($arg, 11));
603
+                    }
599 604
 
600
-                // It may not exist and return false instead, so use whatever they gave us.
601
-                if ($this->stdinPath === false) {
602
-                    $this->stdinPath = trim(substr($arg, 11));
603
-                }
605
+                    $this->overriddenDefaults['stdinPath'] = true;
606
+                } else if (substr($arg, 0, 9) === 'basepath=') {
607
+                    if (isset($this->overriddenDefaults['basepath']) === true) {
608
+                        break;
609
+                    }
604 610
 
605
-                $this->overriddenDefaults['stdinPath'] = true;
606
-            } else if (substr($arg, 0, 9) === 'basepath=') {
607
-                if (isset($this->overriddenDefaults['basepath']) === true) {
608
-                    break;
609
-                }
611
+                    $this->basepath = Util\Common::realpath(substr($arg, 9));
610 612
 
611
-                $this->basepath = Util\Common::realpath(substr($arg, 9));
613
+                    // It may not exist and return false instead.
614
+                    if ($this->basepath === false) {
615
+                        $this->basepath = substr($arg, 9);
616
+                    }
612 617
 
613
-                // It may not exist and return false instead.
614
-                if ($this->basepath === false) {
615
-                    $this->basepath = substr($arg, 9);
616
-                }
618
+                    $this->overriddenDefaults['basepath'] = true;
617 619
 
618
-                $this->overriddenDefaults['basepath'] = true;
620
+                    if (is_dir($this->basepath) === false) {
621
+                        echo 'ERROR: The specified basepath "'.$this->basepath.'" points to a non-existent directory'.PHP_EOL.PHP_EOL;
622
+                        $this->printUsage();
623
+                        exit(2);
624
+                    }
625
+                } else if (substr($arg, 0, 7) === 'filter=') {
626
+                    if (isset($this->overriddenDefaults['filter']) === true) {
627
+                        break;
628
+                    }
619 629
 
620
-                if (is_dir($this->basepath) === false) {
621
-                    echo 'ERROR: The specified basepath "'.$this->basepath.'" points to a non-existent directory'.PHP_EOL.PHP_EOL;
622
-                    $this->printUsage();
623
-                    exit(2);
624
-                }
625
-            } else if (substr($arg, 0, 7) === 'filter=') {
626
-                if (isset($this->overriddenDefaults['filter']) === true) {
627
-                    break;
628
-                }
630
+                    $this->filter = substr($arg, 7);
631
+                    $this->overriddenDefaults['filter'] = true;
632
+                } else if (substr($arg, 0, 9) === 'standard=') {
633
+                    $standards = trim(substr($arg, 9));
634
+                    if ($standards !== '') {
635
+                        $this->standards = explode(',', $standards);
636
+                    }
629 637
 
630
-                $this->filter = substr($arg, 7);
631
-                $this->overriddenDefaults['filter'] = true;
632
-            } else if (substr($arg, 0, 9) === 'standard=') {
633
-                $standards = trim(substr($arg, 9));
634
-                if ($standards !== '') {
635
-                    $this->standards = explode(',', $standards);
636
-                }
638
+                    $this->overriddenDefaults['standards'] = true;
639
+                } else if (substr($arg, 0, 11) === 'extensions=') {
640
+                    $extensions    = explode(',', substr($arg, 11));
641
+                    $newExtensions = array();
642
+                    foreach ($extensions as $ext) {
643
+                        $slash = strpos($ext, '/');
644
+                        if ($slash !== false) {
645
+                            // They specified the tokenizer too.
646
+                            list($ext, $tokenizer) = explode('/', $ext);
647
+                            $newExtensions[$ext]   = strtoupper($tokenizer);
648
+                            continue;
649
+                        }
637 650
 
638
-                $this->overriddenDefaults['standards'] = true;
639
-            } else if (substr($arg, 0, 11) === 'extensions=') {
640
-                $extensions    = explode(',', substr($arg, 11));
641
-                $newExtensions = array();
642
-                foreach ($extensions as $ext) {
643
-                    $slash = strpos($ext, '/');
644
-                    if ($slash !== false) {
645
-                        // They specified the tokenizer too.
646
-                        list($ext, $tokenizer) = explode('/', $ext);
647
-                        $newExtensions[$ext]   = strtoupper($tokenizer);
648
-                        continue;
651
+                        if (isset($this->extensions[$ext]) === true) {
652
+                            $newExtensions[$ext] = $this->extensions[$ext];
653
+                        } else {
654
+                            $newExtensions[$ext] = 'PHP';
655
+                        }
649 656
                     }
650 657
 
651
-                    if (isset($this->extensions[$ext]) === true) {
652
-                        $newExtensions[$ext] = $this->extensions[$ext];
653
-                    } else {
654
-                        $newExtensions[$ext] = 'PHP';
655
-                    }
656
-                }
658
+                    $this->extensions = $newExtensions;
659
+                    $this->overriddenDefaults['extensions'] = true;
660
+                } else if (substr($arg, 0, 7) === 'suffix=') {
661
+                    $this->suffix = explode(',', substr($arg, 7));
662
+                    $this->overriddenDefaults['suffix'] = true;
663
+                } else if (substr($arg, 0, 9) === 'severity=') {
664
+                    $this->errorSeverity   = (int) substr($arg, 9);
665
+                    $this->warningSeverity = $this->errorSeverity;
666
+                    $this->overriddenDefaults['errorSeverity']   = true;
667
+                    $this->overriddenDefaults['warningSeverity'] = true;
668
+                } else if (substr($arg, 0, 15) === 'error-severity=') {
669
+                    $this->errorSeverity = (int) substr($arg, 15);
670
+                    $this->overriddenDefaults['errorSeverity'] = true;
671
+                } else if (substr($arg, 0, 17) === 'warning-severity=') {
672
+                    $this->warningSeverity = (int) substr($arg, 17);
673
+                    $this->overriddenDefaults['warningSeverity'] = true;
674
+                } else if (substr($arg, 0, 7) === 'ignore=') {
675
+                    // Split the ignore string on commas, unless the comma is escaped
676
+                    // using 1 or 3 slashes (\, or \\\,).
677
+                    $patterns = preg_split(
678
+                        '/(?<=(?<!\\\\)\\\\\\\\),|(?<!\\\\),/',
679
+                        substr($arg, 7)
680
+                    );
681
+
682
+                    $ignored = array();
683
+                    foreach ($patterns as $pattern) {
684
+                        $pattern = trim($pattern);
685
+                        if ($pattern === '') {
686
+                            continue;
687
+                        }
657 688
 
658
-                $this->extensions = $newExtensions;
659
-                $this->overriddenDefaults['extensions'] = true;
660
-            } else if (substr($arg, 0, 7) === 'suffix=') {
661
-                $this->suffix = explode(',', substr($arg, 7));
662
-                $this->overriddenDefaults['suffix'] = true;
663
-            } else if (substr($arg, 0, 9) === 'severity=') {
664
-                $this->errorSeverity   = (int) substr($arg, 9);
665
-                $this->warningSeverity = $this->errorSeverity;
666
-                $this->overriddenDefaults['errorSeverity']   = true;
667
-                $this->overriddenDefaults['warningSeverity'] = true;
668
-            } else if (substr($arg, 0, 15) === 'error-severity=') {
669
-                $this->errorSeverity = (int) substr($arg, 15);
670
-                $this->overriddenDefaults['errorSeverity'] = true;
671
-            } else if (substr($arg, 0, 17) === 'warning-severity=') {
672
-                $this->warningSeverity = (int) substr($arg, 17);
673
-                $this->overriddenDefaults['warningSeverity'] = true;
674
-            } else if (substr($arg, 0, 7) === 'ignore=') {
675
-                // Split the ignore string on commas, unless the comma is escaped
676
-                // using 1 or 3 slashes (\, or \\\,).
677
-                $patterns = preg_split(
678
-                    '/(?<=(?<!\\\\)\\\\\\\\),|(?<!\\\\),/',
679
-                    substr($arg, 7)
680
-                );
681
-
682
-                $ignored = array();
683
-                foreach ($patterns as $pattern) {
684
-                    $pattern = trim($pattern);
685
-                    if ($pattern === '') {
686
-                        continue;
689
+                        $ignored[$pattern] = 'absolute';
687 690
                     }
688 691
 
689
-                    $ignored[$pattern] = 'absolute';
690
-                }
691
-
692
-                $this->ignored = $ignored;
693
-                $this->overriddenDefaults['ignored'] = true;
694
-            } else if (substr($arg, 0, 10) === 'tab-width=') {
695
-                $this->tabWidth = (int) substr($arg, 10);
696
-                $this->overriddenDefaults['tabWidth'] = true;
697
-            } else {
698
-                if ($this->dieOnUnknownArg === false) {
699
-                    $eqPos = strpos($arg, '=');
700
-                    if ($eqPos === false) {
701
-                        $this->values[$arg] = $arg;
692
+                    $this->ignored = $ignored;
693
+                    $this->overriddenDefaults['ignored'] = true;
694
+                } else if (substr($arg, 0, 10) === 'tab-width=') {
695
+                    $this->tabWidth = (int) substr($arg, 10);
696
+                    $this->overriddenDefaults['tabWidth'] = true;
697
+                } else {
698
+                    if ($this->dieOnUnknownArg === false) {
699
+                        $eqPos = strpos($arg, '=');
700
+                        if ($eqPos === false) {
701
+                            $this->values[$arg] = $arg;
702
+                        } else {
703
+                            $value = substr($arg, ($eqPos + 1));
704
+                            $arg   = substr($arg, 0, $eqPos);
705
+                            $this->values[$arg] = $value;
706
+                        }
702 707
                     } else {
703
-                        $value = substr($arg, ($eqPos + 1));
704
-                        $arg   = substr($arg, 0, $eqPos);
705
-                        $this->values[$arg] = $value;
708
+                        $this->processUnknownArgument('--'.$arg, $pos);
706 709
                     }
707
-                } else {
708
-                    $this->processUnknownArgument('--'.$arg, $pos);
709
-                }
710
-            }//end if
710
+                }//end if
711 711
 
712
-            break;
712
+                break;
713 713
         }//end switch
714 714
 
715 715
     }//end processLongArgument()
Please login to merge, or discard this patch.
src/Runner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         // Other report formats don't really make sense in interactive mode
82 82
         // so we hard-code the full report here and when outputting.
83 83
         if ($this->config->interactive === true) {
84
-            $this->config->reports  = array('full' => null);
84
+            $this->config->reports = array('full' => null);
85 85
         }
86 86
 
87 87
         // Disable caching if we are processing STDIN as we can't be 100%
Please login to merge, or discard this patch.