Code Duplication    Length = 14-14 lines in 2 locations

lib/Ajde/Exception/Handler.php 2 locations

@@ 199-212 (lines=14) @@
196
        return $type;
197
    }
198
199
    public static function getExceptionChannelMap(Exception $exception)
200
    {
201
        if ($exception instanceof ErrorException) {
202
            return Ajde_Log::CHANNEL_ERROR;
203
        } elseif ($exception instanceof Ajde_Core_Exception_Routing) {
204
            return Ajde_Log::CHANNEL_ROUTING;
205
        } elseif ($exception instanceof Ajde_Core_Exception_Security) {
206
            return Ajde_Log::CHANNEL_SECURITY;
207
        } elseif ($exception instanceof Ajde_Exception) {
208
            return Ajde_Log::CHANNEL_APPLICATION;
209
        } else {
210
            return Ajde_Log::CHANNEL_EXCEPTION;
211
        }
212
    }
213
214
    public static function getExceptionLevelMap(Exception $exception)
215
    {
@@ 214-227 (lines=14) @@
211
        }
212
    }
213
214
    public static function getExceptionLevelMap(Exception $exception)
215
    {
216
        if ($exception instanceof ErrorException) {
217
            return Ajde_Log::LEVEL_ERROR;
218
        } elseif ($exception instanceof Ajde_Core_Exception_Routing) {
219
            return Ajde_Log::LEVEL_WARNING;
220
        } elseif ($exception instanceof Ajde_Core_Exception_Security) {
221
            return Ajde_Log::LEVEL_WARNING;
222
        } elseif ($exception instanceof Ajde_Exception) {
223
            return Ajde_Log::LEVEL_ERROR;
224
        } else {
225
            return Ajde_Log::LEVEL_ERROR;
226
        }
227
    }
228
229
    public static function getErrorType($type)
230
    {