@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_permissions', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_permissions', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('slug'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_templates', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_templates', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('old_name'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_fields', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_fields', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->bigInteger('dbm_object_id')->unsigned(); |
| 19 | 19 | $table->string('name'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_collections', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_collections', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('name')->unique(); |
| 19 | 19 | $table->string('old_name'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_objects', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_objects', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('slug')->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('dbm_collection_fields', function (Blueprint $table) { |
|
| 16 | + Schema::create('dbm_collection_fields', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->bigInteger('dbm_collection_id'); |
| 19 | 19 | $table->string('name'); |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -Route::group(['prefix' => 'database', 'namespace' => config('dbm.controller_namespace')], function () { |
|
| 2 | +Route::group(['prefix' => 'database', 'namespace' => config('dbm.controller_namespace')], function() { |
|
| 3 | 3 | //Database Table |
| 4 | 4 | Route::get('/', 'DatabaseController@index'); |
| 5 | 5 | Route::get('table/builder/{name}', 'DatabaseController@index'); |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | protected function findComposer() |
| 41 | 41 | { |
| 42 | - if (file_exists(getcwd() . '/composer.phar')) { |
|
| 43 | - return '"' . PHP_BINARY . '" ' . getcwd() . '/composer.phar'; |
|
| 42 | + if (file_exists(getcwd().'/composer.phar')) { |
|
| 43 | + return '"'.PHP_BINARY.'" '.getcwd().'/composer.phar'; |
|
| 44 | 44 | } |
| 45 | 45 | return 'composer'; |
| 46 | 46 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | foreach ($seeds as $class) { |
| 21 | 21 | $file = $this->seedersPath.$class.'.php'; |
| 22 | - if (file_exists($file) && ! class_exists($class)) { |
|
| 22 | + if (file_exists($file) && !class_exists($class)) { |
|
| 23 | 23 | require_once $file; |
| 24 | 24 | } |
| 25 | 25 | with(new $class())->run(); |