@@ -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'); |
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | $pdo = DB::connection()->getPdo(); |
| 20 | 20 | |
| 21 | 21 | // trim the values |
| 22 | - $allowed = array_map(function ($value) use ($pdo) { |
|
| 22 | + $allowed = array_map(function($value) use ($pdo) { |
|
| 23 | 23 | return $pdo->quote(trim($value)); |
| 24 | 24 | }, $allowed); |
| 25 | 25 | |
| 26 | - return 'enum(' . implode(', ', $allowed) . ')'; |
|
| 26 | + return 'enum('.implode(', ', $allowed).')'; |
|
| 27 | 27 | } |
| 28 | 28 | } |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | $transform = []; |
| 131 | 131 | |
| 132 | 132 | foreach ($indexOrColumns as $column) { |
| 133 | - $transform[$column] = $column . '_1'; |
|
| 133 | + $transform[$column] = $column.'_1'; |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | $indexOrColumns = implode('_', $transform); |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | { |
| 72 | 72 | $provider = config('auth.guards.api.provider'); |
| 73 | 73 | |
| 74 | - return $this->belongsTo(config('auth.providers.' . $provider . '.model')); |
|
| 74 | + return $this->belongsTo(config('auth.providers.'.$provider.'.model')); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |