@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | |
49 | 49 | // Test conventional namespace model combinations |
50 | 50 | $conventions = [ |
51 | - $this->crudApi->namespace . $model, |
|
52 | - $this->crudApi->namespace . 'Models\\' . $model |
|
51 | + $this->crudApi->namespace.$model, |
|
52 | + $this->crudApi->namespace.'Models\\'.$model |
|
53 | 53 | ]; |
54 | 54 | |
55 | 55 | foreach ($conventions as $fqModel) { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $additionalNamespaces = $this->getAdditionalNamespaces(); |
64 | 64 | if (!empty($additionalNamespaces)) { |
65 | 65 | foreach ($additionalNamespaces as $ns) { |
66 | - $fqModel = $ns . $model; |
|
66 | + $fqModel = $ns.$model; |
|
67 | 67 | if (class_exists($fqModel)) { |
68 | 68 | return $fqModel; |
69 | 69 | } |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Validator; |
7 | 7 | use Illuminate\Http\Request; |
8 | 8 | use Illuminate\Support\Facades\Log; |
9 | - |
|
10 | 9 | use Taskforcedev\LaravelSupport\Http\Controllers\Controller; |
11 | 10 | use Taskforcedev\CrudApi\Helpers\CrudApi; |
12 | 11 | use Illuminate\Database\Eloquent\ModelNotFoundException; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $fqModel = $this->apiHelper->getModel(); |
35 | 35 | |
36 | 36 | if (Auth::user()->cannot('create', $fqModel)) { |
37 | - Log::info('CrudAPI: User is unable to create: ' . $fqModel); |
|
37 | + Log::info('CrudAPI: User is unable to create: '.$fqModel); |
|
38 | 38 | return redirect('/'); |
39 | 39 | } |
40 | 40 |