Code Duplication    Length = 4-6 lines in 4 locations

Alpha/Model/ActiveRecordProviderMySQL.php 2 locations

@@ 242-247 (lines=6) @@
239
            return;
240
        }
241
242
        if (!isset($row['OID']) || $row['OID'] < 1) {
243
            throw new RecordNotFoundException('Failed to load object of OID ['.$OID.'] not found in database.');
244
            self::$logger->debug('<<load');
245
246
            return;
247
        }
248
249
        // get the class attributes
250
        $reflection = new ReflectionClass(get_class($this->BO));
@@ 414-419 (lines=6) @@
411
            return;
412
        }
413
414
        if (!isset($row['OID']) || $row['OID'] < 1) {
415
            throw new RecordNotFoundException('Failed to load object by attribute ['.$attribute.'] and value ['.$value.'], not found in database.');
416
            self::$logger->debug('<<loadByAttribute');
417
418
            return;
419
        }
420
421
        $this->OID = $row['OID'];
422

Alpha/Model/ActiveRecordProviderSQLite.php 2 locations

@@ 238-241 (lines=4) @@
235
            return;
236
        }
237
238
        if (!isset($row['OID']) || $row['OID'] < 1) {
239
            self::$logger->debug('<<load');
240
            throw new RecordNotFoundException('Failed to load object of OID ['.$OID.'] not found in database.');
241
        }
242
243
        // get the class attributes
244
        $reflection = new ReflectionClass(get_class($this->BO));
@@ 401-404 (lines=4) @@
398
            return;
399
        }
400
401
        if (!isset($row['OID']) || $row['OID'] < 1) {
402
            self::$logger->debug('<<loadByAttribute');
403
            throw new RecordNotFoundException('Failed to load object by attribute ['.$attribute.'] and value ['.$value.'], not found in database.');
404
        }
405
406
        $this->OID = $row['OID'];
407