Code Duplication    Length = 6-6 lines in 2 locations

init_helpers.php 1 location

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

src/Kint.php 1 location

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