ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/admin/images/preview.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method loadFromString from undeclared class \WideImage\WideImage
Open

    $img = WideImage::loadFromString($image[0]->getVar('image_body'));

Call to method load from undeclared class \WideImage\WideImage
Open

    $img = WideImage::load($path . $file);

Call to method handler from undeclared class \icms
Open

$image_handler = icms::handler('icms_image');

Call to method handler from undeclared class \icms
Open

$imgcat_handler = icms::handler('icms_image_category');

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$image = &$image_handler->getObjects(new icms_db_criteria_Item('image_name', $file), FALSE, TRUE);

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

$filter = isset($_GET['filter']) ? filter_input(INPUT_GET, 'filter', FILTER_SANITIZE_STRING) : NULL;

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

$image = &$image_handler->getObjects(new icms_db_criteria_Item('image_name', $file), FALSE, TRUE);

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

if (NULL !== $filter) {

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

}

TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
Open

$image = &$image_handler->getObjects(new icms_db_criteria_Item('image_name', $file), FALSE, TRUE);

There are no issues that match your filters.

Category
Status