Code Duplication    Length = 3-3 lines in 2 locations

src/Common/ExecTrait.php 1 location

@@ 73-75 (lines=3) @@
70
        // and output should be produced by this task (verbosityMeetsThreshold),
71
        // then we will automatically set interactive mode based on whether
72
        // or not output was redirected when robo was executed.
73
        if (!isset($this->interactive) && function_exists('posix_isatty') && $this->verbosityMeetsThreshold()) {
74
            $this->interactive = posix_isatty(STDOUT);
75
        }
76
    }
77
78
    /**

src/Task/Base/Exec.php 1 location

@@ 219-221 (lines=3) @@
216
        // and output should be produced by this task (verbosityMeetsThreshold),
217
        // then we will automatically set interactive mode based on whether
218
        // or not output was redirected when robo was executed.
219
        if (!isset($this->interactive) && function_exists('posix_isatty') && $this->verbosityMeetsThreshold()) {
220
            $this->interactive = posix_isatty(STDOUT);
221
        }
222
223
        if ($this->isMetadataPrinted) {
224
            $this->printAction();