Code Duplication    Length = 6-6 lines in 2 locations

init_helpers.php 1 location

@@ 43-48 (lines=6) @@
40
41
        $stash = Kint::settings();
42
43
        if (Kint::$enabled_mode !== Kint::MODE_TEXT) {
44
            Kint::$enabled_mode = Kint::MODE_PLAIN;
45
            if (PHP_SAPI === 'cli' && Kint::$cli_detection === true) {
46
                Kint::$enabled_mode = Kint::$mode_default_cli;
47
            }
48
        }
49
50
        $args = func_get_args();
51
        $out = call_user_func_array(array('Kint', 'dump'), $args);

src/Kint.php 1 location

@@ 279-284 (lines=6) @@
276
        );
277
278
        // set mode for current run
279
        if (self::$enabled_mode === true) {
280
            self::$enabled_mode = self::$mode_default;
281
            if (PHP_SAPI === 'cli' && self::$cli_detection === true) {
282
                self::$enabled_mode = self::$mode_default_cli;
283
            }
284
        }
285
286
        if (in_array('~', $modifiers)) {
287
            self::$enabled_mode = self::MODE_TEXT;