Code Duplication    Length = 11-14 lines in 2 locations

manager/processors/execute_module.processor.php 1 location

@@ 80-93 (lines=14) @@
77
	if (isset($php_errormsg))
78
	{
79
		$error_info = error_get_last();
80
        switch($error_info['type'])
81
        {
82
        	case E_NOTICE :
83
        		$error_level = 1;
84
        	case E_USER_NOTICE :
85
        		break;
86
        	case E_DEPRECATED :
87
        	case E_USER_DEPRECATED :
88
        	case E_STRICT :
89
        		$error_level = 2;
90
        		break;
91
        	default:
92
        		$error_level = 99;
93
        }
94
		if($modx->config['error_reporting']==='99' || 2<$error_level)
95
		{
96
			$modx->messageQuit('PHP Parse Error', '', true, $error_info['type'], $error_info['file'], $_SESSION['itemname'] . ' - Module', $error_info['message'], $error_info['line'], $msg);

manager/includes/document.parser.class.inc.php 1 location

@@ 6247-6257 (lines=11) @@
6244
        if (isset($actionName) && !empty($actionName)) {
6245
            $source .= $actionName;
6246
        }
6247
        switch ($nr) {
6248
            case E_DEPRECATED :
6249
            case E_USER_DEPRECATED :
6250
            case E_STRICT :
6251
            case E_NOTICE :
6252
            case E_USER_NOTICE :
6253
                $error_level = 2;
6254
                break;
6255
            default:
6256
                $error_level = 3;
6257
        }
6258
        $this->logEvent(0, $error_level, $str, $source);
6259
6260
        if ($error_level === 2 && $this->error_reporting !== '99') {