38% of this comment could be valid code. Did you maybe forget this after debugging?
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have
checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that
someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.
Loading history...
49
$filters[] = new \Twig_SimpleFilter(
50
'html_strip',
51
[$this->htmlStripper, 'toText']
52
);
53
}
54
55
return $filters;
56
}
57
58
/**
59
* A convenient name for this extension.
60
*
61
* BC Twig ^v1.0.0
62
*
63
* @return string
64
*/
65
1
public function getName()
66
{
67
1
return 'html_stripper';
68
}
69
70
/**
71
* This is the extension itself, it's mostly a small wrapper around the actual parser.
72
*
73
* @see https://github.com/PurpleBooth/htmlstrip
74
* @deprecated v1.1.0 This will be removed in the future, please use the PurpleBooth/htmlstrip library
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.