@@ -25,7 +25,7 @@ |
||
| 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 | } |
@@ -229,16 +229,16 @@ |
||
| 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. |
@@ -285,7 +285,7 @@ |
||
| 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. |