@@ -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. |
@@ -310,7 +310,7 @@ |
||
310 | 310 | return $nuSql; |
311 | 311 | } |
312 | 312 | |
313 | - private function replace($sql, $bindings) |
|
313 | + private function replace($sql, $bindings) |
|
314 | 314 | { |
315 | 315 | $needle = '?'; |
316 | 316 | foreach ($bindings as $replace) { |