@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * @param Schema $schema |
| 27 | 27 | * @param null|NamingStrategyInterface $namingStrategy |
| 28 | 28 | */ |
| 29 | - public function __construct(Schema $schema, ?NamingStrategyInterface $namingStrategy = null) |
|
| 29 | + public function __construct(Schema $schema, ? NamingStrategyInterface $namingStrategy = null) |
|
| 30 | 30 | { |
| 31 | 31 | $this->schema = $schema; |
| 32 | 32 | $this->namingStrategy = $namingStrategy ?: new DefaultNamingStrategy(); |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | return $this; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - public function primaryKey(array $columnNames, ?string $indexName = null): FluidTable |
|
| 61 | + public function primaryKey(array $columnNames, ? string $indexName = null) : FluidTable |
|
| 62 | 62 | { |
| 63 | 63 | $newIndexName = $indexName ?: false; |
| 64 | 64 | |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | return $this; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - public function primaryKey(?string $indexName = null): FluidColumnOptions |
|
| 85 | + public function primaryKey(? string $indexName = null) : FluidColumnOptions |
|
| 86 | 86 | { |
| 87 | 87 | $newIndexName = $indexName ?: false; |
| 88 | 88 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | return $this->getOptions(); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - public function string(?string $length = null, bool $fixed = false): FluidColumnOptions |
|
| 79 | + public function string(? string $length = null, bool $fixed = false) : FluidColumnOptions |
|
| 80 | 80 | { |
| 81 | 81 | $this->column->setType(Type::getType(Type::STRING)); |
| 82 | 82 | $this->column->setLength($length); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * @param bool $fixed |
| 104 | 104 | * @return FluidColumnOptions |
| 105 | 105 | */ |
| 106 | - public function binary(?string $length = null, bool $fixed = false): FluidColumnOptions |
|
| 106 | + public function binary(? string $length = null, bool $fixed = false) : FluidColumnOptions |
|
| 107 | 107 | { |
| 108 | 108 | $this->column->setType(Type::getType(Type::BINARY)); |
| 109 | 109 | $this->column->setLength($length); |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | return $this->getOptions(); |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | - public function references(string $tableName, ?string $constraintName = null, string $onUpdate = 'RESTRICT', string $onDelete = 'RESTRICT'): FluidColumnOptions |
|
| 214 | + public function references(string $tableName, ? string $constraintName = null, string $onUpdate = 'RESTRICT', string $onDelete = 'RESTRICT') : FluidColumnOptions |
|
| 215 | 215 | { |
| 216 | 216 | $table = $this->fluidSchema->getDbalSchema()->getTable($tableName); |
| 217 | 217 | |