Code Duplication    Length = 16-16 lines in 4 locations

application/modules/xbanners/models/Base/BannerImage.php 1 location

@@ 281-296 (lines=16) @@
278
     * @param  mixed   $obj The object to compare to.
279
     * @return boolean Whether equal to the object specified.
280
     */
281
    public function equals($obj)
282
    {
283
        if (!$obj instanceof static) {
284
            return false;
285
        }
286
287
        if ($this === $obj) {
288
            return true;
289
        }
290
291
        if (null === $this->getPrimaryKey() || null === $obj->getPrimaryKey()) {
292
            return false;
293
        }
294
295
        return $this->getPrimaryKey() === $obj->getPrimaryKey();
296
    }
297
298
    /**
299
     * Get the associative array of the virtual columns in this object

application/modules/xbanners/models/Base/BannerImageI18n.php 1 location

@@ 236-251 (lines=16) @@
233
     * @param  mixed   $obj The object to compare to.
234
     * @return boolean Whether equal to the object specified.
235
     */
236
    public function equals($obj)
237
    {
238
        if (!$obj instanceof static) {
239
            return false;
240
        }
241
242
        if ($this === $obj) {
243
            return true;
244
        }
245
246
        if (null === $this->getPrimaryKey() || null === $obj->getPrimaryKey()) {
247
            return false;
248
        }
249
250
        return $this->getPrimaryKey() === $obj->getPrimaryKey();
251
    }
252
253
    /**
254
     * Get the associative array of the virtual columns in this object

application/modules/xbanners/models/Base/Banners.php 1 location

@@ 261-276 (lines=16) @@
258
     * @param  mixed   $obj The object to compare to.
259
     * @return boolean Whether equal to the object specified.
260
     */
261
    public function equals($obj)
262
    {
263
        if (!$obj instanceof static) {
264
            return false;
265
        }
266
267
        if ($this === $obj) {
268
            return true;
269
        }
270
271
        if (null === $this->getPrimaryKey() || null === $obj->getPrimaryKey()) {
272
            return false;
273
        }
274
275
        return $this->getPrimaryKey() === $obj->getPrimaryKey();
276
    }
277
278
    /**
279
     * Get the associative array of the virtual columns in this object

application/modules/xbanners/models/Base/BannersI18n.php 1 location

@@ 215-230 (lines=16) @@
212
     * @param  mixed   $obj The object to compare to.
213
     * @return boolean Whether equal to the object specified.
214
     */
215
    public function equals($obj)
216
    {
217
        if (!$obj instanceof static) {
218
            return false;
219
        }
220
221
        if ($this === $obj) {
222
            return true;
223
        }
224
225
        if (null === $this->getPrimaryKey() || null === $obj->getPrimaryKey()) {
226
            return false;
227
        }
228
229
        return $this->getPrimaryKey() === $obj->getPrimaryKey();
230
    }
231
232
    /**
233
     * Get the associative array of the virtual columns in this object