diff --git a/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php b/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php index 357ba63635fc..adce734ae53c 100755 --- a/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php @@ -2,9 +2,9 @@ namespace Illuminate\Database\Schema\Grammars; -use Doctrine\DBAL\Schema\Index; use RuntimeException; use Illuminate\Support\Fluent; +use Doctrine\DBAL\Schema\Index; use Illuminate\Database\Connection; use Illuminate\Database\Schema\Blueprint; @@ -322,7 +322,7 @@ public function compileRenameIndex(Blueprint $blueprint, Fluent $command, Connec $indexes = $schemaManager->listTableIndexes($this->getTablePrefix().$blueprint->getTable()); $index = array_get($indexes, $command->from); - if(!$index) { + if (! $index) { throw new RuntimeException("Index '{$command->from}' doesn't seem to exist"); } @@ -334,7 +334,7 @@ public function compileRenameIndex(Blueprint $blueprint, Fluent $command, Connec return [ $platform->getDropIndexSQL($command->from, $this->getTablePrefix().$blueprint->getTable()), - $platform->getCreateIndexSQL($newIndex, $this->getTablePrefix().$blueprint->getTable()) + $platform->getCreateIndexSQL($newIndex, $this->getTablePrefix().$blueprint->getTable()), ]; } diff --git a/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php b/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php index fa1651e2652d..38f55fcf55ad 100755 --- a/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php @@ -287,7 +287,7 @@ public function compileRename(Blueprint $blueprint, Fluent $command) public function compileRenameIndex(Blueprint $blueprint, Fluent $command) { return sprintf("sp_rename N'%s', %s, N'INDEX'", - $this->wrap($blueprint->getTable() . '.' . $command->from), + $this->wrap($blueprint->getTable().'.'.$command->from), $this->wrap($command->to) ); } diff --git a/tests/Database/DatabaseSchemaBlueprintIntegrationTest.php b/tests/Database/DatabaseSchemaBlueprintIntegrationTest.php index 750d20cf6583..80fb1b620776 100644 --- a/tests/Database/DatabaseSchemaBlueprintIntegrationTest.php +++ b/tests/Database/DatabaseSchemaBlueprintIntegrationTest.php @@ -116,6 +116,5 @@ public function testRenameIndexWorks() ]; $this->assertEquals($expected, $queries); - } }