Completed
Push — master ( 2db86e...b1072e )
by Christopher
05:49 queued 01:10
created
src/Providers/QueryProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function register()
26 26
     {
27
-        $this->app->singleton('odataquery', function ($app) {
27
+        $this->app->singleton('odataquery', function($app) {
28 28
            return new LaravelQuery();
29 29
         });
30 30
     }
Please login to merge, or discard this patch.
src/Query/LaravelExpressionProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      */
67 67
     public function setResourceType(ResourceType $resourceType)
68 68
     {
69
-        $this->iteratorName = "$" . $resourceType->getName();
69
+        $this->iteratorName = "$".$resourceType->getName();
70 70
         $this->resourceType = $resourceType;
71 71
     }
72 72
     /**
Please login to merge, or discard this patch.
src/Query/LaravelQuery.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@
 block discarded – undo
290 290
     }
291 291
     /**
292 292
      * Delete resource from a resource set.
293
-     * @param ResourceSet|null $resourceSet
293
+     * @param ResourceSet|null $sourceResourceSet
294 294
      * @param object           $sourceEntityInstance
295 295
      *
296 296
      * return bool true if resources sucessfully deteled, otherwise false.
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace AlgoWeb\PODataLaravel\Models;
3 3
 
4 4
 use Illuminate\Support\Facades\Schema;
5
-use Illuminate\Support\Facades\DB;
6 5
 use Illuminate\Support\Facades\App;
7 6
 use Illuminate\Database\Eloquent\Relations\Relation;
8 7
 use POData\Providers\Metadata\ResourceStreamInfo;
Please login to merge, or discard this patch.
src/Providers/MetadataControllerProvider.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Support\ServiceProvider;
6 6
 use Illuminate\Support\Facades\Cache;
7
-
8 7
 use AlgoWeb\PODataLaravel\Controllers\MetadataControllerContainer;
9 8
 
10 9
 class MetadataControllerProvider extends ServiceProvider
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 foreach ($lock as $barrel => $roll) {
62 62
                     assert(
63 63
                         !array_key_exists($barrel, $metamix[$key]),
64
-                        'Mapping already defined for model '.$key. ' and CRUD verb '.$barrel
64
+                        'Mapping already defined for model '.$key.' and CRUD verb '.$barrel
65 65
                     );
66 66
                     $metamix[$key][$barrel] = $roll;
67 67
                 }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function register()
82 82
     {
83
-        $this->app->singleton('metadataControllers', function ($app) {
83
+        $this->app->singleton('metadataControllers', function($app) {
84 84
             return new MetadataControllerContainer();
85 85
         });
86 86
     }
Please login to merge, or discard this patch.
src/Controllers/MetadataControllerTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,16 +48,16 @@  discard block
 block discarded – undo
48 48
         }
49 49
 
50 50
         if (!array_key_exists($crudVerb, $lookup)) {
51
-            throw new \Exception('Metadata mapping for CRUD verb '. $crudVerb.' on model '.$modelName.' not defined');
51
+            throw new \Exception('Metadata mapping for CRUD verb '.$crudVerb.' on model '.$modelName.' not defined');
52 52
         }
53 53
         $result = $lookup[$crudVerb];
54 54
         if (!isset($result)) {
55
-            throw new \Exception('Metadata mapping for CRUD verb '. $crudVerb.' on model '.$modelName.' null');
55
+            throw new \Exception('Metadata mapping for CRUD verb '.$crudVerb.' on model '.$modelName.' null');
56 56
         }
57 57
 
58 58
         if (!method_exists($this, $result)) {
59 59
             throw new \Exception(
60
-                'Metadata target for CRUD verb '. $crudVerb.' on model '.$modelName.' does not exist'
60
+                'Metadata target for CRUD verb '.$crudVerb.' on model '.$modelName.' does not exist'
61 61
             );
62 62
         }
63 63
 
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
                     throw new \Exception('CRUD verb '.$verb.' not defined');
86 86
                 }
87 87
                 if (!isset($method)) {
88
-                    throw new \Exception('Metadata mapping for CRUD verb '. $verb.' on model '.$key.' null');
88
+                    throw new \Exception('Metadata mapping for CRUD verb '.$verb.' on model '.$key.' null');
89 89
                 }
90 90
 
91 91
                 if (!method_exists($this, $method)) {
92 92
                     throw new \Exception(
93
-                        'Metadata target for CRUD verb '. $verb.' on model '.$key.' does not exist'
93
+                        'Metadata target for CRUD verb '.$verb.' on model '.$key.' does not exist'
94 94
                     );
95 95
                 }
96 96
                 $parmArray = $this->getParameterNames($method);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     $allMappings[$key] = [];
99 99
                 }
100 100
 
101
-                $allMappings[$key][$verb] = [ $method, $parmArray];
101
+                $allMappings[$key][$verb] = [$method, $parmArray];
102 102
             }
103 103
         }
104 104
         return $allMappings;
Please login to merge, or discard this patch.