Code Duplication    Length = 6-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

@@ 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));
@@ 413-418 (lines=6) @@
410
            return;
411
        }
412
413
        if (!isset($row['OID']) || $row['OID'] < 1) {
414
            throw new RecordNotFoundException('Failed to load object by attribute ['.$attribute.'] and value ['.$value.'], not found in database.');
415
            self::$logger->debug('<<loadByAttribute');
416
417
            return;
418
        }
419
420
        $this->OID = $row['OID'];
421