Code Duplication    Length = 8-8 lines in 2 locations

src/EloquentRepository.php 2 locations

@@ 132-139 (lines=8) @@
129
     * @param bool $forceFill
130
     * @return mixed
131
     */
132
    public function create($attributes, $forceFill = false)
133
    {
134
        $model = $this->newInstance();
135
        $model = ($forceFill === false) ? $model->fill($attributes) : $model->forceFill($attributes);
136
        $model->save();
137
138
        return $model;
139
    }
140
141
    /**
142
     * update.
@@ 149-156 (lines=8) @@
146
     * @param bool $forceFill
147
     * @return mixed
148
     */
149
    public function update($attributes, $id, $forceFill = false)
150
    {
151
        $model = $this->find($id);
152
        $model = ($forceFill === false) ? $model->fill($attributes) : $model->forceFill($attributes);
153
        $model->save();
154
155
        return $model;
156
    }
157
158
    /**
159
     * delete.