functions/jodelmeta.php
Showing 5 of 6 total issues
Method jodelage
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function jodelage($postdate){ $now = date('Y-m-d H:i:s'); $now = date_create_from_format('Y-m-d H:i:s', $now); $postdate = date_create_from_format('Y-m-d H:i:s', $postdate);
- Create a ticketCreate a ticket
Method deleteComment
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function deleteComment($commentID){ global $apiroot, $config, $baseurl; //get uploaddir $uploaddir = $config->image_upload_dir; //get imageID of comment
- Create a ticketCreate a ticket
Function jodelage
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
Open
function jodelage($postdate){ $now = date('Y-m-d H:i:s'); $now = date_create_from_format('Y-m-d H:i:s', $now); $postdate = date_create_from_format('Y-m-d H:i:s', $postdate);
- Read upRead up
- Create a ticketCreate a ticket
Function deleteComment
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
function deleteComment($commentID){ global $apiroot, $config, $baseurl; //get uploaddir $uploaddir = $config->image_upload_dir; //get imageID of comment
- Read upRead up
- Create a ticketCreate a ticket
Avoid unused local variables such as '$baseurl'. Open
Open
global $apiroot, $baseurl, $config;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Avoid variables with short names like $x. Configured minimum length is 3. Wontfix
Wontfix
$x = FALSE;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks