Completed
Push — master ( 97f422...f36802 )
by David
02:02
created
src/Helpers/Model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.
src/Http/Controllers/AdminController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.