Runs PHP Copy & Paste Detector. Checking PHP files for duplicated code.
Refactored original PhpCpdTask provided by Timo Haberkern timo.haberkern@fantastic-bits.de
package |
phing.tasks.ext.phpcpd |
---|---|
author |
Benjamin Schultz bschultz@proqrent.de |
version |
$Id: 0723f68b65202265346b74a53cc959e3211ece3e $ |
addFileSet(\FileSet $fs)
createFormatter() : \PHPCPDFormatterElement
getDescription() : string
string
The text description of the task
getLocation() : \Location
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
log(string $msg, integer $level = \Project::MSG_INFO) : void
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
throws | |
---|---|
setAllowedFileExtensions(string $fileExtensions)
string
List of valid file extensions.
setDescription(string $desc)
string
The text describing the task
setFile(\PhingFile $file)
setFormat(string $format)
string
Format of the report
setIgnorePatterns(string $ignorePatterns)
string
List of ignore patterns.
setLocation(\Location $location)
setMinLines(integer $minLines)
integer
Minimum number of identical lines
setMinTokens(integer $minTokens)
integer
Minimum number of identical tokens
setOwningTarget(\Target $target)
setProject(\Project $project) : void
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
validateFormatters()
throws | |
---|---|
filesets : array<mixed,\FileSet>
minLines : integer
var |
---|
integer
minTokens : integer
var |
---|
integer
allowedFileExtensions : array
var |
---|
array
ignorePatterns : array
var |
---|
array
format : string
var |
---|
string
formatters : array<mixed,\PHPCPDFormatterElement>
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project