PHP Class SebastianBergmann\PHPCPD\Detector\Detector

Datei anzeigen Open project: sebastianbergmann/phpcpd Class Usage Examples

Protected Properties

Property Type Description
$progressBar Symfony\Component\Console\Helper\ProgressBar
$strategy SebastianBergmann\PHPCPD\Detector\Strategy\AbstractStrategy

Public Methods

Method Description
__construct ( AbstractStrategy $strategy, ProgressBar $progressBar = null )
copyPasteDetection ( Iterator | array $files, integer $minLines = 5, integer $minTokens = 70, boolean $fuzzy = false ) : CodeCloneMap Copy & Paste Detection (CPD).

Method Details

__construct() public method

public __construct ( AbstractStrategy $strategy, ProgressBar $progressBar = null )
$strategy SebastianBergmann\PHPCPD\Detector\Strategy\AbstractStrategy
$progressBar Symfony\Component\Console\Helper\ProgressBar

copyPasteDetection() public method

Copy & Paste Detection (CPD).
public copyPasteDetection ( Iterator | array $files, integer $minLines = 5, integer $minTokens = 70, boolean $fuzzy = false ) : CodeCloneMap
$files Iterator | array List of files to process
$minLines integer Minimum number of identical lines
$minTokens integer Minimum number of identical tokens
$fuzzy boolean
return SebastianBergmann\PHPCPD\CodeCloneMap Map of exact clones found in the list of files

Property Details

$progressBar protected_oe property

protected ProgressBar,Symfony\Component\Console\Helper $progressBar
return Symfony\Component\Console\Helper\ProgressBar

$strategy protected_oe property

protected AbstractStrategy,SebastianBergmann\PHPCPD\Detector\Strategy $strategy
return SebastianBergmann\PHPCPD\Detector\Strategy\AbstractStrategy