@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $tool->updateSchema($metadata); |
| 38 | 38 | |
| 39 | 39 | if ($this->option('sql')) { |
| 40 | - $this->info(implode(';'.PHP_EOL, $sql)); |
|
| 40 | + $this->info(implode(';' . PHP_EOL, $sql)); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | $this->info('Schema updated!'); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function embeddedFieldToColumnName($propertyName, $embeddedColumnName, $className = null, $embeddedClassName = null) |
| 29 | 29 | { |
| 30 | - return $propertyName.'_'.$embeddedColumnName; |
|
| 30 | + return $propertyName . '_' . $embeddedColumnName; |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function joinColumnName($propertyName) |
| 45 | 45 | { |
| 46 | - return snake_case(str_singular($propertyName)).'_'.$this->referenceColumnName(); |
|
| 46 | + return snake_case(str_singular($propertyName)) . '_' . $this->referenceColumnName(); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function joinTableName($sourceEntity, $targetEntity, $propertyName = null) |
| 53 | 53 | { |
| 54 | - return $this->normalizeClassName($sourceEntity).'_'.$this->normalizeClassName($targetEntity); |
|
| 54 | + return $this->normalizeClassName($sourceEntity) . '_' . $this->normalizeClassName($targetEntity); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function joinKeyColumnName($entityName, $referencedColumnName = null) |
| 61 | 61 | { |
| 62 | - return $this->normalizeClassName($entityName).'_'.($referencedColumnName ?: $this->referenceColumnName()); |
|
| 62 | + return $this->normalizeClassName($entityName) . '_' . ($referencedColumnName ?: $this->referenceColumnName()); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $tool->updateSchema($metadata); |
| 38 | 38 | |
| 39 | 39 | if ($this->option('sql')) { |
| 40 | - $this->info(implode(';'.PHP_EOL, $sql)); |
|
| 40 | + $this->info(implode(';' . PHP_EOL, $sql)); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | $this->info('Schema updated!'); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $tool->updateSchema($metadata); |
| 38 | 38 | |
| 39 | 39 | if ($this->option('sql')) { |
| 40 | - $this->info(implode(';'.PHP_EOL, $sql)); |
|
| 40 | + $this->info(implode(';' . PHP_EOL, $sql)); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | $this->info('Schema updated!'); |