includes/controller/user_ical_controller.php
Showing 2 of 2 total issues
Method user_ical
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function user_ical() { global $ical_shifts, $user; if (isset ($_REQUEST['key']) && preg_match("/^[0-9a-f]{32}$/", $_REQUEST['key'])) $key = $_REQUEST['key'];
Function user_ical
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
Open
function user_ical() { global $ical_shifts, $user; if (isset ($_REQUEST['key']) && preg_match("/^[0-9a-f]{32}$/", $_REQUEST['key'])) $key = $_REQUEST['key'];
- Read upRead up