@@ -53,13 +53,13 @@ protected function execute(InputInterface $input, OutputInterface $output)
5353 $ scannerBefore = new Scanner ();
5454 $ scannerAfter = new Scanner ();
5555
56- $ sourceBefore = $ input -> getArgument ('source-before ' );
57- $ includeBefore = $ input -> getOption ('include-before ' );
58- $ excludeBefore = $ input -> getOption ('exclude-before ' );
56+ $ sourceBefore = $ configuration -> get ('source-before ' );
57+ $ includeBefore = $ configuration -> get ('include-before ' );
58+ $ excludeBefore = $ configuration -> get ('exclude-before ' );
5959
60- $ sourceAfter = $ input -> getArgument ('source-after ' );
61- $ includeAfter = $ input -> getOption ('include-after ' );
62- $ excludeAfter = $ input -> getOption ('exclude-after ' );
60+ $ sourceAfter = $ configuration -> get ('source-after ' );
61+ $ includeAfter = $ configuration -> get ('include-after ' );
62+ $ excludeAfter = $ configuration -> get ('exclude-after ' );
6363
6464 $ sourceBefore = $ finder ->findFromString ($ sourceBefore , $ includeBefore , $ excludeBefore );
6565 $ sourceAfter = $ finder ->findFromString ($ sourceAfter , $ includeAfter , $ excludeAfter );
@@ -68,8 +68,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
6868 $ identicalCount = $ sourceFilter ->filter ($ sourceBefore , $ sourceAfter );
6969
7070 $ progress = new ProgressScanner ($ output );
71- $ progress ->addJob ($ input -> getArgument ('source-before ' ), $ sourceBefore , $ scannerBefore );
72- $ progress ->addJob ($ input -> getArgument ('source-after ' ), $ sourceAfter , $ scannerAfter );
71+ $ progress ->addJob ($ configuration -> get ('source-before ' ), $ sourceBefore , $ scannerBefore );
72+ $ progress ->addJob ($ configuration -> get ('source-after ' ), $ sourceAfter , $ scannerAfter );
7373 $ progress ->runJobs ();
7474
7575 $ registryBefore = $ scannerBefore ->getRegistry ();
@@ -79,10 +79,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
7979 $ report = $ analyzer ->analyze ($ registryBefore , $ registryAfter );
8080
8181 $ reporter = new Reporter ($ report );
82- $ reporter ->setFullPath ($ input -> getOption ('full-path ' ));
82+ $ reporter ->setFullPath ($ configuration -> get ('full-path ' ));
8383 $ reporter ->output ($ output );
8484
85- $ toJson = $ input -> getOption ('to-json ' );
85+ $ toJson = $ configuration -> get ('to-json ' );
8686 if ($ toJson ) {
8787 $ jsonReporter = new JsonReporter ($ report , $ toJson );
8888 $ jsonReporter ->output ();
0 commit comments