@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $string = $this->buildMigrationFile($queriesByVersion, $direction); |
| 64 | 64 | |
| 65 | 65 | if ($this->outputWriter) { |
| 66 | - $this->outputWriter->write("\n" . sprintf('Writing migration file to "<info>%s</info>"', $path)); |
|
| 66 | + $this->outputWriter->write("\n".sprintf('Writing migration file to "<info>%s</info>"', $path)); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | return file_put_contents($path, $string); |
@@ -77,10 +77,10 @@ discard block |
||
| 77 | 77 | $string = sprintf("-- Doctrine Migration File Generated on %s\n", date('Y-m-d H:i:s')); |
| 78 | 78 | |
| 79 | 79 | foreach ($queriesByVersion as $version => $queries) { |
| 80 | - $string .= "\n-- Version " . $version . "\n"; |
|
| 80 | + $string .= "\n-- Version ".$version."\n"; |
|
| 81 | 81 | |
| 82 | 82 | foreach ($queries as $query) { |
| 83 | - $string .= $query . ";\n"; |
|
| 83 | + $string .= $query.";\n"; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | $string .= $this->getVersionUpdateQuery($version, $direction); |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | if (is_dir($path)) { |
| 108 | 108 | $path = realpath($path); |
| 109 | - $path = $path . '/doctrine_migration_' . date('YmdHis') . '.sql'; |
|
| 109 | + $path = $path.'/doctrine_migration_'.date('YmdHis').'.sql'; |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | return $path; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | public function __construct($em) |
| 20 | 20 | { |
| 21 | - if (! $this->isEntityManager($em)) { |
|
| 21 | + if (!$this->isEntityManager($em)) { |
|
| 22 | 22 | throw new \InvalidArgumentException(sprintf( |
| 23 | 23 | '$em is not a valid Doctrine ORM Entity Manager, got "%s"', |
| 24 | 24 | is_object($em) ? get_class($em) : gettype($em) |