@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function up() |
| 16 | 16 | {
|
| 17 | - Schema::create('tests', function (Blueprint $table) {
|
|
| 17 | + Schema::create('tests', function(Blueprint $table) {
|
|
| 18 | 18 | $table->id(); |
| 19 | 19 | $table->timestamps(); |
| 20 | 20 | }); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | if (file_exists(CONFIG_PATH . "/" . $fileName . ".php")) {
|
| 16 | 16 | throw new \Exception("Arquivo ja existe");
|
| 17 | 17 | } |
| 18 | - $file = fopen(CONFIG_PATH . "/" . $fileName . ".php", 'w+'); |
|
| 18 | + $file = fopen(CONFIG_PATH . "/" . $fileName . ".php", 'w+'); |
|
| 19 | 19 | if ($file) {
|
| 20 | 20 | $text = $this->copyFile(); |
| 21 | 21 | $lines = $this->modifyClassName($text, $fileName); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | {
|
| 24 | 24 | $dirs = glob(CONFIG_PATH . "/*"); |
| 25 | 25 | |
| 26 | - array_map(function ($dir) {
|
|
| 26 | + array_map(function($dir) {
|
|
| 27 | 27 | echo "\e[32m" . $this->getNameFile($dir); |
| 28 | 28 | $value = include_once($dir); |
| 29 | 29 | $value->up(); |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | public function __construct($commnad) |
| 13 | 13 | {
|
| 14 | 14 | $this->array = [ |
| 15 | - "--migration" => function ($file) {
|
|
| 15 | + "--migration" => function($file) {
|
|
| 16 | 16 | (new FileCreate)->createFile($file); |
| 17 | 17 | echo "\e[32mMigration " . $file . " on successfully"; |
| 18 | 18 | }, |
| 19 | - "--migrate" => function () {
|
|
| 19 | + "--migrate" => function() {
|
|
| 20 | 20 | echo "\e[32mStarting the migration\n"; |
| 21 | 21 | (new MigrationFile)->actionMigration(); |
| 22 | 22 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function getQuery() |
| 25 | 25 | {
|
| 26 | - $value = ltrim($this->query,$this->query[0]); |
|
| 26 | + $value = ltrim($this->query, $this->query[0]); |
|
| 27 | 27 | |
| 28 | 28 | return $value; |
| 29 | 29 | } |