Completed
Pull Request — master (#20)
by Pavel
03:29
created
app.paths.conf.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/src/Console/Commands/GenerateMigrationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             '<class>',
54 54
             '<tableName>',
55 55
         ];
56
-        $replacements  = [
56
+        $replacements = [
57 57
             Helper::underscoreToCamelCase($migrationName, true),
58 58
             strtolower($migrationName),
59 59
         ];
Please login to merge, or discard this patch.
app/src/Console/Commands/MigrateDownCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.