Code Duplication    Length = 8-9 lines in 2 locations

lib/Doctrine/DBAL/Sharding/SQLAzure/SQLAzureFederationsSynchronizer.php 1 location

@@ 290-297 (lines=8) @@
287
    /**
288
     * @return string
289
     */
290
    private function getCreateFederationStatement()
291
    {
292
        $federationType = Type::getType($this->shardManager->getDistributionType());
293
        $federationTypeSql = $federationType->getSQLDeclaration([], $this->conn->getDatabasePlatform());
294
295
        return "--Create Federation\n" .
296
               "CREATE FEDERATION " . $this->shardManager->getFederationName() . " (" . $this->shardManager->getDistributionKey() . " " . $federationTypeSql ."  RANGE)";
297
    }
298
}
299

lib/Doctrine/DBAL/Sharding/SQLAzure/SQLAzureShardManager.php 1 location

@@ 234-242 (lines=9) @@
231
     *
232
     * @return void
233
     */
234
    public function splitFederation($splitDistributionValue)
235
    {
236
        $type = Type::getType($this->distributionType);
237
238
        $sql = "ALTER FEDERATION " . $this->getFederationName() . " " .
239
               "SPLIT AT (" . $this->getDistributionKey() . " = " .
240
               $this->conn->quote($splitDistributionValue, $type->getBindingType()) . ")";
241
        $this->conn->exec($sql);
242
    }
243
}
244