ecoco/magento_profiler

View on GitHub
app/code/community/Ecocode/Profiler/Model/AppDev.php

Summary

Maintainability
A
0 mins
Test Coverage

Remove error control operator '@' on line 38.
Open

    public function setErrorHandler($handler)
    {
        if (!@class_exists('\Symfony\Component\Debug\Debug')) {
            //only call if symfony debug is not available
            parent::setErrorHandler($handler);

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

There are no issues that match your filters.

Category
Status