Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update --min-lines to force it as a integer
Will fix #181 
Though Im not sure if it is the correct method.
But as symfony ArgvInput is missing type casting, I think this is the only way to fix it
  • Loading branch information
lsv authored Feb 20, 2020
commit c103fae2002ef34e7e6e596bb9a7f2e14c9549f8
2 changes: 1 addition & 1 deletion src/CLI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$clones = $detector->copyPasteDetection(
$files,
$input->getOption('min-lines'),
(int) $input->getOption('min-lines'),
$input->getOption('min-tokens'),
$input->getOption('fuzzy')
);
Expand Down