static function replace_line_in_file(String $filename = '', String $line_to_change = '', String $change_to = '')
    {
        $replacement_made = false;
        if (is_writable($filename)) {
            self::say('Reading file: '.$filename);
            $file = file($filename);
        } else {
            self::say('Could not find the file, or it was not writable: '.$filename);
            return false;
        }
        
        self::say('Making replacement.');
        foreach ($file as $line_number => $line) {
            if (!(strrpos($line, $line_to_change)===false)) {
                $file[$line_number] = $change_to . PHP_EOL;
                $replacement_made = true;
            }
        }

        if ($replacement_made) {
            self::say('Replacement made successfully.');
            $f = implode('', $file);
            file_put_contents($filename, $f);
            self::say('Saving file.');
        } else {
            self::say('Could not find anything to replace.');
        }

        return $replacement_made;
    }