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

@@ 931-945 (lines=15) @@
928
    /**
929
     * @param integer $returnCode
930
     */
931
    private static function end($returnCode) {
932
933
        if ( defined('COMODOJO_PHPUNIT_TEST') && @constant('COMODOJO_PHPUNIT_TEST') === true ) {
934
935
            if ( $returnCode === 1 ) throw new Exception("PHPUnit Test Exception");
936
937
            else return $returnCode;
938
939
        } else {
940
941
            exit($returnCode);
942
943
        }
944
945
    }
946
947
}
948