@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | // PATH aliases |
4 | -define('ROOT_PATH', __DIR__ ); |
|
5 | -define('MIGRATIONS_PATH', __DIR__ . '/app/database/migrations'); |
|
6 | -define('SEEDS_PATH', __DIR__ . '/app/database/seeds'); |
|
7 | -define('MODELS_PATH', __DIR__ . '/app/src/Model'); |
|
8 | -define('SCHEMAS_PATH', __DIR__ . '/app/src/Schema'); |
|
9 | -define('COMMANDS_PATH', __DIR__ . '/app/src/Console/Commands'); |
|
10 | -define('CODE_TEMPLATE_PATH', __DIR__ . '/app/src/Console/CodeTemplates'); |
|
11 | -define('CONFIG_PATH', __DIR__ . '/config'); |
|
12 | -define('APP_PATH', __DIR__ . '/app'); |
|
4 | +define('ROOT_PATH', __DIR__); |
|
5 | +define('MIGRATIONS_PATH', __DIR__.'/app/database/migrations'); |
|
6 | +define('SEEDS_PATH', __DIR__.'/app/database/seeds'); |
|
7 | +define('MODELS_PATH', __DIR__.'/app/src/Model'); |
|
8 | +define('SCHEMAS_PATH', __DIR__.'/app/src/Schema'); |
|
9 | +define('COMMANDS_PATH', __DIR__.'/app/src/Console/Commands'); |
|
10 | +define('CODE_TEMPLATE_PATH', __DIR__.'/app/src/Console/CodeTemplates'); |
|
11 | +define('CONFIG_PATH', __DIR__.'/config'); |
|
12 | +define('APP_PATH', __DIR__.'/app'); |
|
13 | 13 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | '<class>', |
54 | 54 | '<tableName>', |
55 | 55 | ]; |
56 | - $replacements = [ |
|
56 | + $replacements = [ |
|
57 | 57 | Helper::underscoreToCamelCase($migrationName, true), |
58 | 58 | strtolower($migrationName), |
59 | 59 | ]; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | { |
40 | 40 | $migrationName = $input->getArgument('migration'); |
41 | 41 | |
42 | - $file = MIGRATIONS_PATH . '/' . $migrationName.'.php'; |
|
42 | + $file = MIGRATIONS_PATH.'/'.$migrationName.'.php'; |
|
43 | 43 | if (false === file_exists($file)) { |
44 | 44 | throw new \RunTimeException('This migration not found'); |
45 | 45 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | require_once($file); |
50 | 50 | |
51 | 51 | $class = ''; |
52 | - foreach($fileNamePieces as $key => $item) { |
|
52 | + foreach ($fileNamePieces as $key => $item) { |
|
53 | 53 | if ($key == 0) { |
54 | 54 | continue; |
55 | 55 | } |