Code Duplication    Length = 4-4 lines in 2 locations

src/Helpers/AppendFile.php 1 location

@@ 95-98 (lines=4) @@
92
        $found_existing = substr_count($this->getExistingTestContent(), $method);
93
        $found = substr_count($this->dusk_class_and_methods_string, $method);
94
95
        if ($found < 1 && $found_existing < 1) {
96
            $content = str_replace("[STEP]", $step['method_name'], $step_template);
97
            $this->dusk_class_and_methods_string = $this->dusk_class_and_methods_string . $content;
98
        }
99
    }
100
101
    /**

src/Helpers/WriteFileBase.php 1 location

@@ 125-128 (lines=4) @@
122
        $method = sprintf("protected function %s()", $step['method_name']);
123
        $found = substr_count($this->dusk_class_and_methods_string, $method);
124
125
        if ($found < 1) {
126
            $content = str_replace("[STEP]", $step['method_name'], $step_template);
127
            $this->dusk_class_and_methods_string = $this->dusk_class_and_methods_string . $content;
128
        }
129
    }
130
131
    protected function checkDestinationTestFolder()