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

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