@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | if (!function_exists('dbm_asset')) { |
4 | 4 | function dbm_asset($path, $secure = null) |
5 | 5 | { |
6 | - return route('dbm.asset') . '?path=' . urlencode($path); |
|
6 | + return route('dbm.asset').'?path='.urlencode($path); |
|
7 | 7 | } |
8 | 8 | } |
9 | 9 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $jsonArr = []; |
35 | 35 | $i = 1; |
36 | 36 | foreach ($arr as $key => $value) { |
37 | - $jsonArr['key_' . $i++] = $value; |
|
37 | + $jsonArr['key_'.$i++] = $value; |
|
38 | 38 | } |
39 | 39 | return json_encode($jsonArr); |
40 | 40 | } |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | $files = $request->file($column); |
44 | 44 | $values = []; |
45 | 45 | foreach ($files as $file) { |
46 | - $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension(); |
|
47 | - $path = trim(config('dbm.filesystem.dir'), '/') . DIRECTORY_SEPARATOR . $tableName; |
|
46 | + $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension(); |
|
47 | + $path = trim(config('dbm.filesystem.dir'), '/').DIRECTORY_SEPARATOR.$tableName; |
|
48 | 48 | $file->storeAs($path, $fileName); |
49 | 49 | $values[] = $fileName; |
50 | 50 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $fieldType = $this->getFieldType($tableName, $column); |
79 | 79 | |
80 | 80 | if (!in_array($fieldType, Type::getTypes())) { |
81 | - $this->generateError([$fieldType . " type not supported."]); |
|
81 | + $this->generateError([$fieldType." type not supported."]); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | if ($fieldType != 'timestamp') { |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | $rules = $updateSettings->rules; |
253 | 253 | if (isset($updateSettings->localKey)) { |
254 | 254 | $localKey = $updateSettings->localKey; |
255 | - $rules = $updateSettings->rules . ',' . $columns->{$localKey}; |
|
255 | + $rules = $updateSettings->rules.','.$columns->{$localKey}; |
|
256 | 256 | } |
257 | 257 | } |
258 | 258 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $dsn = config('database.connections.mongodb.dsn'); |
28 | 28 | |
29 | 29 | if (!$dsn) { |
30 | - $dsn = 'mongodb://' . $host . ':' . $port . ($auth_db ? "/" . $auth_db : ''); |
|
30 | + $dsn = 'mongodb://'.$host.':'.$port.($auth_db ? "/".$auth_db : ''); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | self::$connection = new Client($dsn); |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | 'prefix' => 'database', |
5 | 5 | 'middleware' => 'auth:api', |
6 | 6 | 'namespace' => config('dbm.controller_namespace'), |
7 | -], function () { |
|
7 | +], function() { |
|
8 | 8 | |
9 | 9 | // Helpers Route |
10 | 10 | Route::get('assets', 'ManagerController@assets')->name('dbm.asset'); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | Route::put('/relationship', 'RelationController@update'); |
45 | 45 | Route::delete('/relationship', 'RelationController@delete'); |
46 | 46 | // Table |
47 | - Route::group(['prefix' => 'table'], function () { |
|
47 | + Route::group(['prefix' => 'table'], function() { |
|
48 | 48 | Route::get('/details/{table}', 'RecordController@getTableDetails'); |
49 | 49 | Route::get('/columns/{table}', 'TableController@getTableColumns'); |
50 | 50 | }); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | Route::group([ |
58 | 58 | 'prefix' => 'database', |
59 | 59 | 'namespace' => config('dbm.controller_namespace'), |
60 | -], function () { |
|
60 | +], function() { |
|
61 | 61 | // User |
62 | 62 | Route::post('/login', 'UserController@login'); |
63 | 63 |