Skip to content

Commit

Permalink
Merge pull request #133 from designmynight/extended_methods_no_types
Browse files Browse the repository at this point in the history
extended_methods_no_types
  • Loading branch information
MihailProcudin authored Mar 17, 2022
2 parents 1ee6846 + 071167f commit 38731f5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint
* @param array $parameters
* @return PropertyDefinition
*/
public function addColumn(string $type, string $name, array $parameters = [])
public function addColumn($type, $name, $parameters = [])
{
return $this->addColumnDefinition(new PropertyDefinition(
array_merge(compact('type', 'name'), $parameters)
Expand All @@ -48,7 +48,7 @@ public function addColumn(string $type, string $name, array $parameters = [])
* @param PropertyDefinition $definition
* @return PropertyDefinition
*/
protected function addColumnDefinition(PropertyDefinition $definition): PropertyDefinition
protected function addColumnDefinition($definition): PropertyDefinition
{
$this->columns[] = $definition;

Expand Down Expand Up @@ -93,7 +93,7 @@ public function alias(string $alias): void
* @param string $column
* @return PropertyDefinition
*/
public function binary(string $column): PropertyDefinition
public function binary($column): PropertyDefinition
{
return $this->addColumn('binary', $column);
}
Expand All @@ -117,7 +117,7 @@ public function build(Connection $connection, Grammar $grammar)
* @param string $column
* @return PropertyDefinition
*/
public function date(string $column): PropertyDefinition
public function date($column): PropertyDefinition
{
return $this->addColumn('date', $column);
}
Expand Down Expand Up @@ -183,7 +183,7 @@ public function enableFieldNames(): void
* @param bool $unsigned
* @return PropertyDefinition
*/
public function float(string $column, int $total = 8, int $places = 2, bool $unsigned = false): PropertyDefinition
public function float($column, $total = 8, $places = 2, $unsigned = false): PropertyDefinition
{
return $this->addColumn('float', $column);
}
Expand All @@ -194,7 +194,7 @@ public function float(string $column, int $total = 8, int $places = 2, bool $uns
*
* @return PropertyDefinition
*/
public function floatRange(string $column, array $parameters = []): PropertyDefinition
public function floatRange($column, array $parameters = []): PropertyDefinition
{
return $this->range('float_range', $column, $parameters);
}
Expand Down Expand Up @@ -270,7 +270,7 @@ public function getMeta(): array
* @param bool $unsigned
* @return PropertyDefinition
*/
public function integer(string $column, $autoIncrement = false, $unsigned = false): PropertyDefinition
public function integer($column, $autoIncrement = false, $unsigned = false): PropertyDefinition
{
return $this->addColumn('integer', $column);
}
Expand Down Expand Up @@ -299,7 +299,7 @@ public function ip(string $column): PropertyDefinition
* @param string $column
* @return PropertyDefinition
*/
public function ipAddress(string $column = 'ip_address'): PropertyDefinition
public function ipAddress($column = 'ip_address'): PropertyDefinition
{
return $this->addColumn('ipAddress', $column);
}
Expand Down Expand Up @@ -422,7 +422,7 @@ public function routingRequired(): void
*
* @return PropertyDefinition
*/
public function string(string $column, $length = null): PropertyDefinition
public function string($column, $length = null): PropertyDefinition
{
$length = $length ?: Builder::$defaultStringLength;

Expand All @@ -433,7 +433,7 @@ public function string(string $column, $length = null): PropertyDefinition
* @param string $column
* @return PropertyDefinition
*/
public function text(string $column): PropertyDefinition
public function text($column): PropertyDefinition
{
return $this->addColumn('text', $column);
}
Expand Down Expand Up @@ -473,7 +473,7 @@ public function toSql(Connection $connection, Grammar $grammar)
*
* @return PropertyDefinition
*/
public function tokenCount(string $column, array $parameters = []): PropertyDefinition
public function tokenCount($column, array $parameters = []): PropertyDefinition
{
return $this->addColumn('token_count', $column, $parameters);
}
Expand Down

0 comments on commit 38731f5

Please sign in to comment.