ImpressCMS/impresscms

View on GitHub
htdocs/include/notification_update.php

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

// @TODO: allow 'GET' also so we can process 'unsubscribe' requests??

TODO found
Open

// @TODO: finish integration with comments... i.e. need calls to

TODO found
Open

// @TODO: write a central function to put together args with '?' and '&'

TODO found
Open

// not_mid (TODO)

TODO found
Open

// not_uid (TODO)

TODO found
Open

// @TODO: can we put arguments in the not_redirect argument??? do we need

TODO found
Open

// @TODO: something like grey box summary of actions (like multiple comment

FIXME found
Open

// FIXME: right now I just ignore database errors (e.g. if already

Reference to undeclared constant \_NOT_UPDATEOK
Open

redirect_header ($_POST['not_redirect'].$argstring, 3, _NOT_UPDATEOK);
Severity: Minor
Found in htdocs/include/notification_update.php by phan

Call to method categoryInfo from undeclared class \icms_data_notification_Handler
Open

    $category_info =& icms_data_notification_Handler::categoryInfo($category);
Severity: Critical
Found in htdocs/include/notification_update.php by phan

Reference to static property security from undeclared class \icms
Open

if (!icms::$security->check()) {
Severity: Critical
Found in htdocs/include/notification_update.php by phan

Call to method handler from undeclared class \icms
Open

$notification_handler = icms::handler('icms_data_notification');
Severity: Critical
Found in htdocs/include/notification_update.php by phan

Reference to static property user from undeclared class \icms
Open

$user_id = is_object(icms::$user) ? icms::$user->getVar('uid') : 0;
Severity: Critical
Found in htdocs/include/notification_update.php by phan

Reference to static property module from undeclared class \icms
Open

if (!defined('ICMS_ROOT_PATH') || !is_object(icms::$module)) {
Severity: Critical
Found in htdocs/include/notification_update.php by phan

Reference to static property module from undeclared class \icms
Open

$module_id = icms::$module->getVar('mid');
Severity: Critical
Found in htdocs/include/notification_update.php by phan

Reference to static property security from undeclared class \icms
Open

    redirect_header($_POST['not_redirect'], 3, implode('<br />', icms::$security->getErrors()));
Severity: Critical
Found in htdocs/include/notification_update.php by phan

Blank line found at start of control structure
Open

foreach ($update_list as $update_item) {

Expected 1 blank line at end of file; 2 found
Open

exit();

Blank line found at end of control structure
Open


No space found after comma in function call
Open

    list($category,$item_id,$event) = explode( ',',$update_item['params'] );

Space after opening parenthesis of function call prohibited
Open

    list($category, $item_id, $event) = explode( ',', $update_item['params'] );

Expected 0 spaces before closing bracket; 1 found
Open

    list($category, $item_id, $event) = explode( ',', $update_item['params'] );

Space before opening parenthesis of function call prohibited
Open

redirect_header ($_POST['not_redirect'].$argstring, 3, _NOT_UPDATEOK);

Space after opening parenthesis of function call prohibited
Open

    list($category,$item_id,$event) = explode( ',',$update_item['params'] );

Expected 0 spaces before closing bracket; 1 found
Open

    list($category,$item_id,$event) = explode( ',',$update_item['params'] );

There are no issues that match your filters.

Category
Status