jhuesser/bzu-jodel-clone

View on GitHub
jodels.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

case "myvotes":
$voteurl = $apiroot . "jodelvotes?transform=1&userIDFK,eq," . $userid;
$votesjson = getCall($voteurl);
$votes = json_decode($votesjson, true);
$filter = "";
Severity: Minor
Found in jodels.php and 1 other location - About 40 mins to fix
jodels.php on lines 149..158

Similar blocks of code found in 2 locations. Consider refactoring.
Open

case "mycomms":
$commenturl = $apiroot . "comments?transform=1,filter=jodlerIDFK,eq," . $userid;
$commentsjson = getCall($commenturl);
$comments = json_decode($commentsjson, true);
$filter = "";
Severity: Minor
Found in jodels.php and 1 other location - About 40 mins to fix
jodels.php on lines 159..168
Category
Status