public/main/search/load_search.php
Missing class import via use statement (line '1236', column '18'). Open
Open
$first = new \DateTime($date1);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '1237', column '19'). Open
Open
$second = new \DateTime($date2);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Variable "extra_params" is not in valid camel caps format Open
Open
$extra_params['height'] = 'auto';
- Exclude checks
Variable "filtered_value" is not in valid camel caps format Open
Open
$filtered_value = array_filter($valueArray, function($valueFilter) {
- Exclude checks
Variable "filtered_value" is not in valid camel caps format Open
Open
$value = $filtered_value;
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
Open
$filtered_value = array_filter($valueArray, function($valueFilter) {
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
Open
->get_handler_field_info_by_field_variable($field_variable);
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
).'?action=subscribe_user&user_id='.$userToLoad.'&session_id=\'+id+\'">'.Display::getMdiIcon(
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
Open
$field_variable = substr($key, 6);
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
).'?action=unsubscribe_user&user_id='.$userToLoad.'&session_id=\'+id+\'">'.Display::getMdiIcon(
- Exclude checks
Add a single space after each comma delimiter Open
Open
$forceShowFields,//$forceShowFields = false
- Exclude checks
Variable "extra_params" is not in valid camel caps format Open
Open
$extra_params['autowidth'] = 'true';
- Exclude checks
Consider putting global function "dateDiffInWeeks" in a static class Open
Open
function dateDiffInWeeks($date1, $date2)
- Exclude checks
Missing function doc comment Open
Open
function dateDiffInWeeks($date1, $date2)
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
).'?action=subscribe_user&user_id='.$userToLoad.'&session_id=\'+id+\'">'.Display::getMdiIcon(
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
).'?action=unsubscribe_user&user_id='.$userToLoad.'&session_id=\'+id+\'">'.Display::getMdiIcon(
- Exclude checks
No space found after comma in function call Open
Open
$forceShowFields,//$forceShowFields = false
- Exclude checks