Passed
Push — master ( b8f118...fdb9c9 )
by CodexShaper
04:09
created
src/Http/Controllers/RelationController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $prefix = (Driver::isMongoDB()) ? "_" : "";
36 36
 
37 37
         foreach ($fields as $fld) {
38
-            if ($fld->id == $field->{$prefix . "id"}) {
38
+            if ($fld->id == $field->{$prefix."id"}) {
39 39
 
40 40
                 $relationship = $fld->settings;
41 41
                 $localTable   = $relationship['localTable'];
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
             if (!class_exists($relationship['foreignModel'])) {
72 72
 
73
-                $error = $relationship['foreignModel'] . " Model not found. Please create the " . $relationship['foreignModel'] . " model first";
73
+                $error = $relationship['foreignModel']." Model not found. Please create the ".$relationship['foreignModel']." model first";
74 74
                 return $this->generateError([$error]);
75 75
             }
76 76
 
Please login to merge, or discard this patch.
routes/api.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
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');
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     Route::put('/relationship', 'RelationController@update');
47 47
     Route::delete('/relationship', 'RelationController@delete');
48 48
     // Table
49
-    Route::group(['prefix' => 'table'], function () {
49
+    Route::group(['prefix' => 'table'], function() {
50 50
         Route::get('/details/{table}', 'RecordController@getTableDetails');
51 51
         Route::get('/columns/{table}', 'DatabaseController@getTableColumns');
52 52
     });
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 Route::group([
62 62
     'prefix'    => 'database',
63 63
     'namespace' => config('dbm.controller_namespace'),
64
-], function () {
64
+], function() {
65 65
     // User
66 66
     Route::post('/login', 'UserController@login');
67 67
     Route::post('/oauth/token', 'UserController@getPersonalAccessToken');
Please login to merge, or discard this patch.