Code Duplication    Length = 15-15 lines in 2 locations

src/Econtrol.php 1 location

@@ 262-276 (lines=15) @@
259
    /**
260
     * @param integer $returnCode
261
     */
262
    private static function end($returnCode) {
263
264
        if ( defined('COMODOJO_PHPUNIT_TEST') && @constant('COMODOJO_PHPUNIT_TEST') === true ) {
265
266
            if ( $returnCode === 1 ) throw new Exception("PHPUnit Test Exception");
267
            
268
            else return $returnCode;
269
270
        } else {
271
272
            exit($returnCode);
273
274
        }
275
276
    }
277
278
}
279

src/Extender.php 1 location

@@ 920-934 (lines=15) @@
917
    /**
918
     * @param integer $returnCode
919
     */
920
    private static function end($returnCode) {
921
922
        if ( defined('COMODOJO_PHPUNIT_TEST') && @constant('COMODOJO_PHPUNIT_TEST') === true ) {
923
924
            if ( $returnCode === 1 ) throw new Exception("PHPUnit Test Exception");
925
926
            else return $returnCode;
927
928
        } else {
929
930
            exit($returnCode);
931
932
        }
933
934
    }
935
936
}
937