@@ -44,10 +44,10 @@ |
||
| 44 | 44 | abstract public static function typeId(); |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * Get a new query builder for the model. |
|
| 48 | - * |
|
| 49 | - * @return \Silk\Contracts\BuildsQueries |
|
| 50 | - */ |
|
| 47 | + * Get a new query builder for the model. |
|
| 48 | + * |
|
| 49 | + * @return \Silk\Contracts\BuildsQueries |
|
| 50 | + */ |
|
| 51 | 51 | abstract public function newQuery(); |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -44,10 +44,10 @@ |
||
| 44 | 44 | abstract public static function typeId(); |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * Get a new query builder for the model. |
|
| 48 | - * |
|
| 49 | - * @return \Silk\Contracts\BuildsQueries |
|
| 50 | - */ |
|
| 47 | + * Get a new query builder for the model. |
|
| 48 | + * |
|
| 49 | + * @return \Silk\Contracts\BuildsQueries |
|
| 50 | + */ |
|
| 51 | 51 | abstract public function newQuery(); |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | { |
| 99 | 99 | if ($this->model) { |
| 100 | 100 | $this->set('taxonomy', $this->model->taxonomy) |
| 101 | - ->set('fields', 'all'); |
|
| 101 | + ->set('fields', 'all'); |
|
| 102 | 102 | } elseif ($this->taxonomy) { |
| 103 | 103 | $this->set('taxonomy', $this->taxonomy); |
| 104 | 104 | } |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | { |
| 124 | 124 | if ($this->model) { |
| 125 | 125 | $this->set('post_type', $this->model->post_type) |
| 126 | - ->set('fields', ''); // as WP_Post objects |
|
| 126 | + ->set('fields', ''); // as WP_Post objects |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | return $this->query->get_posts(); |
@@ -54,9 +54,9 @@ |
||
| 54 | 54 | $modelClass = get_class($this->model); |
| 55 | 55 | |
| 56 | 56 | return Collection::make($this->query()) |
| 57 | - ->map(function ($result) use ($modelClass) { |
|
| 58 | - return new $modelClass($result); |
|
| 59 | - }); |
|
| 57 | + ->map(function ($result) use ($modelClass) { |
|
| 58 | + return new $modelClass($result); |
|
| 59 | + }); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |