Skip to content

Commit

Permalink
Fixed code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-lewis committed Jan 15, 2020
1 parent 763b607 commit 5b691c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,7 @@ private function getAssociationTables(array $classes, AbstractPlatform $platform
return $associationTables;
}

/**
* @param ClassMetadata $class
* @param AbstractPlatform $platform
*
* @return string
*/
private function getTableName($class, $platform) : string
private function getTableName(ClassMetadata $class, AbstractPlatform $platform) : string
{
if (isset($class->table['schema']) && ! method_exists($class, 'getSchemaName')) {
return $class->table['schema'] . '.' . $this->em->getConfiguration()->getQuoteStrategy()->getTableName($class, $platform);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function testGetDeleteFromTableSQL() : void
$method = $class->getMethod('getTableName');
$method->setAccessible(true);
$tableName = $method->invokeArgs($purger, [$metadata, $platform]);
$method = $class->getMethod('getDeleteFromTableSQL');
$method = $class->getMethod('getDeleteFromTableSQL');
$method->setAccessible(true);
$sql = $method->invokeArgs($purger, [$tableName, $platform]);
$this->assertEquals('DELETE FROM "Group"', $sql);
Expand All @@ -83,7 +83,7 @@ public function testGetDeleteFromTableSQLWithSchema() : void
$method = $class->getMethod('getTableName');
$method->setAccessible(true);
$tableName = $method->invokeArgs($purger, [$metadata, $platform]);
$method = $class->getMethod('getDeleteFromTableSQL');
$method = $class->getMethod('getDeleteFromTableSQL');
$method->setAccessible(true);
$sql = $method->invokeArgs($purger, [$tableName, $platform]);
$this->assertEquals('DELETE FROM test_schema__group', $sql);
Expand Down

0 comments on commit 5b691c6

Please sign in to comment.