|
4 | 4 |
|
5 | 5 | use FiveamCode\LaravelNotionApi\Endpoints\Database; |
6 | 6 | use FiveamCode\LaravelNotionApi\Entities\Collections\PageCollection; |
7 | | -use FiveamCode\LaravelNotionApi\Entities\Page; |
8 | 7 | use FiveamCode\LaravelNotionApi\Query\Filters\Filter; |
9 | 8 | use FiveamCode\LaravelNotionApi\Query\Filters\FilterBag; |
10 | 9 | use FiveamCode\LaravelNotionApi\Query\Filters\Operators; |
@@ -40,7 +39,7 @@ public function pluck($value, $key = null): Collection |
40 | 39 | { |
41 | 40 | $pageCollection = $this->internalQuery(); |
42 | 41 |
|
43 | | - return $pageCollection->pluck('props.' . $value, $key !== null ? 'props.' . $key : null); |
| 42 | + return $pageCollection->pluck('props.'.$value, $key !== null ? 'props.'.$key : null); |
44 | 43 | } |
45 | 44 |
|
46 | 45 | private function queryToNotion(int $limit = 100): PageCollection |
@@ -82,7 +81,7 @@ private function internalQuery(int $limit = 100): Collection |
82 | 81 | foreach ($queryResponse->asCollection() as $pageItem) { |
83 | 82 | $instance = $this->modelClass::createInstance($this->modelClass::$databaseId); |
84 | 83 | $instance->page = $pageItem; |
85 | | - |
| 84 | + |
86 | 85 | foreach ($pageItem->getProperties() as $propertyItem) { |
87 | 86 | $propertyContent = $propertyItem->getContent(); |
88 | 87 | if ($this->modelClass::$convertPropsToText || $this->localConvertPropsToText) { |
@@ -268,9 +267,9 @@ private function cacheKey(): string |
268 | 267 | { |
269 | 268 | $postCacheKey = ''; |
270 | 269 | if ($this->nextCursor !== null) { |
271 | | - $postCacheKey = '-' . $this->nextCursor->__toString(); |
| 270 | + $postCacheKey = '-'.$this->nextCursor->__toString(); |
272 | 271 | } |
273 | 272 |
|
274 | | - return $this->modelClass::$preCacheKey . $this->modelClass::$databaseId . $postCacheKey; |
| 273 | + return $this->modelClass::$preCacheKey.$this->modelClass::$databaseId.$postCacheKey; |
275 | 274 | } |
276 | 275 | } |
0 commit comments