functions-display.php
Method rad_post_thumbnail_html
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function rad_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
Avoid unused parameters such as '$post_id'. Open
Open
function rad_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused parameters such as '$attr'. Open
Open
function rad_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Each array item in a multi-line array declaration must end in a comma Open
Open
'<picture>'
- Exclude checks
Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space Open
Open
$sources = array();
- Exclude checks