Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
andersondanilo committed Oct 28, 2017
1 parent d2858a8 commit 35d37f0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Illuminate/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ public function addFluentCommands(Grammar $grammar)
foreach ($grammar->getFluentCommands() as $commandName) {
$attributeName = lcfirst($commandName);

if (!isset($column->{$attributeName}))
if (! isset($column->{$attributeName})) {
continue;
}

$value = $column->{$attributeName};

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Schema/Grammars/Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract class Grammar extends BaseGrammar
protected $transactions = false;

/**
* Enable other commands to be executed outside of create or alter command (like indexes)
* Enable other commands to be executed outside of create or alter command (like indexes).
*
* @var array
*/
Expand Down
3 changes: 1 addition & 2 deletions src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PostgresGrammar extends Grammar
protected $modifiers = ['Increment', 'Nullable', 'Default'];

/**
* Enable other commands to be executed outside of create or alter command (like indexes)
* Enable other commands to be executed outside of create or alter command (like indexes).
*
* @var array
*/
Expand Down Expand Up @@ -320,7 +320,6 @@ public function compileComment(Blueprint $blueprint, Fluent $command)
);
}


/**
* Create the column definition for a char type.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabasePostgresSchemaGrammarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testCreateTableAndCommentColumn()
$blueprint = new Blueprint('users');
$blueprint->create();
$blueprint->increments('id');
$blueprint->string('email')->comment("my first comment");
$blueprint->string('email')->comment('my first comment');
$statements = $blueprint->toSql($this->getConnection(), $this->getGrammar());

$this->assertCount(2, $statements);
Expand Down

0 comments on commit 35d37f0

Please sign in to comment.