Code Duplication    Length = 9-9 lines in 2 locations

src/ZohoDatabaseCopier.php 2 locations

@@ 143-151 (lines=9) @@
140
            $comparator = new \Doctrine\DBAL\Schema\Comparator();
141
            $tableDiff = $comparator->diffTable($dbTable, $table);
142
143
            if ($tableDiff !== false) {
144
                $diff = new SchemaDiff();
145
                $diff->fromSchema = $dbSchema;
146
                $diff->changedTables[$tableName] = $tableDiff;
147
                $statements = $diff->toSaveSql($this->connection->getDatabasePlatform());
148
                foreach ($statements as $sql) {
149
                    $this->connection->exec($sql);
150
                }
151
            }
152
        } else {
153
            $diff = new SchemaDiff();
154
            $diff->fromSchema = $dbSchema;
@@ 152-160 (lines=9) @@
149
                    $this->connection->exec($sql);
150
                }
151
            }
152
        } else {
153
            $diff = new SchemaDiff();
154
            $diff->fromSchema = $dbSchema;
155
            $diff->newTables[$tableName] = $table;
156
            $statements = $diff->toSaveSql($this->connection->getDatabasePlatform());
157
            foreach ($statements as $sql) {
158
                $this->connection->exec($sql);
159
            }
160
        }
161
162
    }
163