Code Duplication    Length = 11-12 lines in 2 locations

src/ZohoDatabaseCopier.php 1 location

@@ 46-57 (lines=12) @@
43
     * @param string $prefix Prefix for the table name in DB
44
     * @param ZohoChangeListener[] $listeners The list of listeners called when a record is inserted or updated.
45
     */
46
    public function __construct(Connection $connection, $prefix = 'zoho_', array $listeners = [], LoggerInterface $logger = null)
47
    {
48
        $this->connection = $connection;
49
        $this->prefix = $prefix;
50
        $this->listeners = $listeners;
51
        if ($logger === null) {
52
            $this->logger = new NullLogger();
53
        } else {
54
            $this->logger = $logger;
55
        }
56
        $this->localChangesTracker = new LocalChangesTracker($connection, $this->logger);
57
    }
58
59
    /**
60
     * @param LoggerInterface $logger

src/ZohoDatabaseModelSync.php 1 location

@@ 40-50 (lines=11) @@
37
     * @param Connection $connection
38
     * @param string $prefix Prefix for the table name in DB
39
     */
40
    public function __construct(Connection $connection, $prefix = 'zoho_', LoggerInterface $logger = null)
41
    {
42
        $this->connection = $connection;
43
        $this->prefix = $prefix;
44
        if ($logger === null) {
45
            $this->logger = new NullLogger();
46
        } else {
47
            $this->logger = $logger;
48
        }
49
        $this->localChangesTracker = new LocalChangesTracker($connection, $this->logger);
50
    }
51
52
    /**
53
     * @param LoggerInterface $logger