Completed
Pull Request — master (#10)
by Alex
03:05
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/MetadataProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
     {
22 22
         self::$METANAMESPACE = env('ODataMetaNamespace', 'Data');
23 23
         // If we aren't migrated, there's no DB tables to pull metadata _from_, so bail out early
24
-        try{
24
+        try {
25 25
             if (!Schema::hasTable('migrations')) {
26 26
                 return;
27 27
             }
28
-        }catch(\Exception $e){
28
+        } catch (\Exception $e) {
29 29
             return;
30 30
         }
31 31
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
             if (!Schema::hasTable('migrations')) {
26 26
                 return;
27 27
             }
28
-        }catch(\Exception $e){
28
+        } catch(\Exception $e){
29 29
             return;
30 30
         }
31 31
 
Please login to merge, or discard this patch.