Code Duplication    Length = 4-4 lines in 2 locations

src/Helpers/AppendFileBase.php 1 location

@@ 82-85 (lines=4) @@
79
        $found_existing = substr_count($this->getExistingTestContent(), $method);
80
        $found = substr_count($this->dusk_class_and_methods_string, $method);
81
82
        if ($found < 1 && $found_existing < 1) {
83
            $content = str_replace("[STEP]", $step['method_name'], $step_template);
84
            $this->dusk_class_and_methods_string = $this->dusk_class_and_methods_string . $content;
85
        }
86
    }
87
88
    /**

src/Helpers/WriteFileBase.php 1 location

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