@@ -537,10 +537,10 @@ |
||
537 | 537 | })) { |
538 | 538 | $relation = $this->model->$relationName(); |
539 | 539 | |
540 | - $this->queries->push([ |
|
541 | - 'method' => 'select', |
|
542 | - 'arguments' => [$this->model->getTable() . ".*"], |
|
543 | - ]); |
|
540 | + $this->queries->push([ |
|
541 | + 'method' => 'select', |
|
542 | + 'arguments' => [$this->model->getTable() . ".*"], |
|
543 | + ]); |
|
544 | 544 | |
545 | 545 | $this->queries->push([ |
546 | 546 | 'method' => 'join', |
@@ -232,7 +232,9 @@ |
||
232 | 232 | */ |
233 | 233 | public function file($server = '', $download = true) |
234 | 234 | { |
235 | - if ( ! $this->value ) return; |
|
235 | + if ( ! $this->value ) { |
|
236 | + return; |
|
237 | + } |
|
236 | 238 | $field = $this; |
237 | 239 | |
238 | 240 | return $this->unescape()->as(function ($path) use ($server, $download, $field) { |