Test Failed
Pull Request — master (#37)
by Christopher
03:29
created
src/Providers/MetadataProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
      */
99 99
     public function register()
100 100
     {
101
-        $this->app->singleton('metadata', function ($app) {
101
+        $this->app->singleton('metadata', function($app) {
102 102
             return new SimpleMetadataProvider('Data', self::$METANAMESPACE);
103 103
         });
104 104
     }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace AlgoWeb\PODataLaravel\Providers;
4 4
 
5 5
 use Illuminate\Support\Facades\App;
6
-use Illuminate\Support\ServiceProvider;
7 6
 use Illuminate\Support\Facades\Cache;
8 7
 use POData\Providers\Metadata\IMetadataProvider;
9 8
 use POData\Providers\Metadata\SimpleMetadataProvider;
Please login to merge, or discard this patch.
src/Providers/MetadataControllerProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      */
80 80
     public function register()
81 81
     {
82
-        $this->app->singleton('metadataControllers', function ($app) {
82
+        $this->app->singleton('metadataControllers', function($app) {
83 83
             return new MetadataControllerContainer();
84 84
         });
85 85
     }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace AlgoWeb\PODataLaravel\Providers;
4 4
 
5 5
 use AlgoWeb\PODataLaravel\Controllers\MetadataControllerTrait;
6
-use Illuminate\Support\ServiceProvider;
7 6
 use Illuminate\Support\Facades\Cache;
8 7
 use AlgoWeb\PODataLaravel\Controllers\MetadataControllerContainer;
9 8
 use Illuminate\Support\Facades\App;
Please login to merge, or discard this patch.
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/LaravelQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -490,7 +490,7 @@
 block discarded – undo
490 490
         }
491 491
         $outData = $result->getData();
492 492
         if (is_object($outData)) {
493
-            $outData = (array)$outData;
493
+            $outData = (array) $outData;
494 494
         }
495 495
 
496 496
         if (!is_array($outData)) {
Please login to merge, or discard this patch.
src/Models/MetadataTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@
 block discarded – undo
255 255
                                 $relations = ['hasManyThrough', 'belongsToMany', 'hasMany', 'morphMany', 'morphToMany'];
256 256
                                 if (in_array($relation, $relations)) {
257 257
                                     //Collection or array of models (because Collection is Arrayable)
258
-                                    $relationships["HasMany"][$method] =  $relatedModel;
258
+                                    $relationships["HasMany"][$method] = $relatedModel;
259 259
                                 } elseif ($relation === "morphTo") {
260 260
                                     // Model isn't specified because relation is polymorphic
261 261
                                     $relationships["UnknownPolyMorphSide"][$method] =
Please login to merge, or discard this patch.