mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed phpcs violations
This commit is contained in:
parent
024762f03b
commit
98568262f2
@ -151,7 +151,7 @@ class MySQLSchemaManager extends DBSchemaManager
|
||||
public function renameTable($oldTableName, $newTableName)
|
||||
{
|
||||
if (!$this->hasTable($oldTableName)) {
|
||||
throw new LogicException('Table '. $oldTableName . ' does not exist.');
|
||||
throw new LogicException('Table ' . $oldTableName . ' does not exist.');
|
||||
}
|
||||
|
||||
return $this->query("ALTER TABLE \"$oldTableName\" RENAME \"$newTableName\"");
|
||||
|
@ -397,7 +397,7 @@ class ThemeResourceLoaderTest extends SapphireTest
|
||||
public function testFindTemplateWithCacheHit()
|
||||
{
|
||||
$mockCache = $this->createMock(CacheInterface::class);
|
||||
$mockCache->expects($this->once())->method('has')->willReturn(true);;
|
||||
$mockCache->expects($this->once())->method('has')->willReturn(true);
|
||||
$mockCache->expects($this->never())->method('set');
|
||||
$mockCache->expects($this->once())->method('get')->willReturn('mock_template.ss');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user