Code Duplication    Length = 10-10 lines in 2 locations

src/Queries/Mysql/Insert.php 1 location

@@ 103-112 (lines=10) @@
100
     *
101
     * @return string
102
     */
103
    protected static function buildFields(array $fields)
104
    {
105
        $query = [];
106
107
        foreach ($fields as $field) {
108
            $query[] = "`{$field}` = :{$field}";
109
        }
110
111
        return implode(', ', $query);
112
    }
113
}
114

src/Queries/Mysql/Update.php 1 location

@@ 82-91 (lines=10) @@
79
     *
80
     * @return string
81
     */
82
    protected static function buildFields(array $fields)
83
    {
84
        $query = [];
85
86
        foreach ($fields as $field) {
87
            $query[] = "`{$field}` = :__{$field}";
88
        }
89
90
        return implode(', ', $query);
91
    }
92
}
93