Code Duplication    Length = 12-12 lines in 2 locations

src/Models/BitrixModel.php 1 location

@@ 245-256 (lines=12) @@
242
     *
243
     * @return bool
244
     */
245
    public function delete()
246
    {
247
        if ($this->onBeforeDelete() === false) {
248
            return false;
249
        }
250
251
        $result = static::$bxObject->delete($this->id);
252
253
        $this->onAfterDelete($result);
254
255
        return $result;
256
    }
257
258
    /**
259
     * Update model.

src/Models/HLModel.php 1 location

@@ 220-231 (lines=12) @@
217
     *
218
     * @return bool
219
     */
220
    public function delete()
221
    {
222
        if ($this->onBeforeDelete() === false) {
223
            return false;
224
        }
225
226
        $result = static::$bxObject::delete($this->id);
227
228
        $this->onAfterDelete($result);
229
230
        return $result;
231
    }
232
233
    /**
234
     * Update model.