Completed
Push — master ( e236d2...3279ce )
by Christopher
03:16
created
src/Providers/QueryProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function register()
26 26
     {
27 27
         $this->app->singleton('odataquery', function ($app) {
28
-           return new LaravelQuery();
28
+            return new LaravelQuery();
29 29
         });
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/Models/MetadataTrait.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -229,16 +229,16 @@
 block discarded – undo
229 229
                     $begin = strpos($code, 'function(');
230 230
                     $code = substr($code, $begin, strrpos($code, '}') - $begin + 1);
231 231
                     foreach (array(
232
-                               'hasMany',
233
-                               'hasManyThrough',
234
-                               'belongsToMany',
235
-                               'hasOne',
236
-                               'belongsTo',
237
-                               'morphOne',
238
-                               'morphTo',
239
-                               'morphMany',
240
-                               'morphToMany'
241
-                             ) as $relation) {
232
+                                'hasMany',
233
+                                'hasManyThrough',
234
+                                'belongsToMany',
235
+                                'hasOne',
236
+                                'belongsTo',
237
+                                'morphOne',
238
+                                'morphTo',
239
+                                'morphMany',
240
+                                'morphToMany'
241
+                                ) as $relation) {
242 242
                         $search = '$this->' . $relation . '(';
243 243
                         if ($pos = stripos($code, $search)) {
244 244
                             //Resolve the relation's model to a Relation object.
Please login to merge, or discard this patch.
src/Query/LaravelExpressionProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@
 block discarded – undo
285 285
                 .' ' . $str[1] . self::CLOSE_BRACKET;
286 286
         }
287 287
         //return self::OPEN_BRACKET . $left . ' ' . $operator . ' ' . $right . self::CLOSE_BRACKET;
288
-	    return $this->getSql();
288
+        return $this->getSql();
289 289
     }
290 290
     /**
291 291
      * To format unary expression.
Please login to merge, or discard this patch.