public/main/ticket/ticket_details.php
Missing class import via use statement (line '447', column '17'). Open
Open
$form = new FormValidator(
- 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 "ticket_id" is not in valid camel caps format Open
Open
$ticket_id,
- Exclude checks
Variable "file_attachments" is not in valid camel caps format Open
Open
$file_attachments = $_FILES;
- Exclude checks
Variable "ticket_id" is not in valid camel caps format Open
Open
header('Location:'.api_get_self().'?ticket_id='.$ticket_id);
- Exclude checks
Variable "ticket_id" is not in valid camel caps format Open
Open
$ticket_id,
- Exclude checks
Multi-line function call not indented correctly; expected 4 spaces but found 8 Open
Open
'If you are certain, the ticket will be closed.'
- Exclude checks
Variable "ticket_id" is not in valid camel caps format Open
Open
$ticket_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
TicketManager::close_ticket($ticket_id, $user_id);
- Exclude checks
Variable "file_attachments" is not in valid camel caps format Open
Open
$file_attachments,
- Exclude checks
Variable "ticket_id" is not in valid camel caps format Open
Open
$ticket_id = (int) $_REQUEST['ticket_id'];
- Exclude checks
Variable "ticket_id" is not in valid camel caps format Open
Open
$ticket_id = (int) $_POST['ticket_id'];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
== $user_id
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "ticket_id" is not in valid camel caps format Open
Open
TicketManager::close_ticket($ticket_id, $user_id);
- Exclude checks
Consider putting global function "getForm" in a static class Open
Open
function getForm($ticket)
- Exclude checks
Variable "ticket_id" is not in valid camel caps format Open
Open
$counterLink = Display::url('#'.$counter, api_get_self().'?ticket_id='.$ticket_id.'#note-'.$counter);
- Exclude checks
Variable "ticket_id" is not in valid camel caps format Open
Open
$ticket_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = api_get_user_id();
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
).'")){
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$allowEdition = $ticket['ticket']['assigned_last_user'] == $user_id
- Exclude checks
Variable "ticket_id" is not in valid camel caps format Open
Open
$ticket = TicketManager::get_ticket_detail_by_id($ticket_id);
- Exclude checks
Multi-line function call not indented correctly; expected 4 spaces but found 8 Open
Open
'If you are certain, the ticket will be closed.'
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
).'")){
- Exclude checks