add dockblock detail

This commit is contained in:
Pélisset Vincent 2017-12-14 12:06:58 +01:00 committed by Dmitry Khomutov
parent 79274cbb41
commit 5c409f8856
No known key found for this signature in database
GPG key ID: EC19426474B37AAC

View file

@ -53,11 +53,14 @@ class TechnicalDebt extends Plugin implements ZeroConfigPluginInterface
return 'technical_debt';
}
/**
* Build a
* @param string $string
* @return [type] [description]
* Store the statu of the file :
* . : checked no errors
* X : checked with one or more errr
*
* @param string $char
*/
protected function buildLogString($char){
protected function buildLogString($char)
{
if (isset($this->errorPerFile[$this->lineNumber])){
$this->errorPerFile[$this->lineNumber].= $char;
}else{
@ -70,12 +73,15 @@ class TechnicalDebt extends Plugin implements ZeroConfigPluginInterface
$this->lineNumber++;
}
}
/**
* Create a visual representation of file with Todo
* @param string $string
* @return [type] [description]
* ...XX... 10/300 (10 %)
*
* @return string The visual representation
*/
protected function returnResult(){
protected function returnResult()
{
$string='';
$nb=0;
foreach ($this->errorPerFile as $id => $uneLigne){