Skip to content

Commit ea5cc25

Browse files
authored
Apply fixes from StyleCI (#120)
1 parent 8c53b2a commit ea5cc25

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/Console/Commands/MakeNotionModel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ public function handle()
6161
$visibleArray .= " '$propName',\n";
6262
$propertyTypeMape .= " '$propName' => '$notionPropType',\n";
6363
$propertyTitleMap .= " '$propName' => '{$propertyInfo->getTitle()}',\n";
64-
6564
}
6665

6766
$contents = "<?php

src/Models/NotionModel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public static function query(): NotionQueryBuilder
8787
return new NotionQueryBuilder(static::class);
8888
}
8989

90-
9190
/**
9291
* @return NotionQueryBuilder
9392
*/

src/Models/NotionQueryBuilder.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use FiveamCode\LaravelNotionApi\Endpoints\Database;
66
use FiveamCode\LaravelNotionApi\Entities\Collections\PageCollection;
7-
use FiveamCode\LaravelNotionApi\Entities\Page;
87
use FiveamCode\LaravelNotionApi\Query\Filters\Filter;
98
use FiveamCode\LaravelNotionApi\Query\Filters\FilterBag;
109
use FiveamCode\LaravelNotionApi\Query\Filters\Operators;
@@ -40,7 +39,7 @@ public function pluck($value, $key = null): Collection
4039
{
4140
$pageCollection = $this->internalQuery();
4241

43-
return $pageCollection->pluck('props.' . $value, $key !== null ? 'props.' . $key : null);
42+
return $pageCollection->pluck('props.'.$value, $key !== null ? 'props.'.$key : null);
4443
}
4544

4645
private function queryToNotion(int $limit = 100): PageCollection
@@ -82,7 +81,7 @@ private function internalQuery(int $limit = 100): Collection
8281
foreach ($queryResponse->asCollection() as $pageItem) {
8382
$instance = $this->modelClass::createInstance($this->modelClass::$databaseId);
8483
$instance->page = $pageItem;
85-
84+
8685
foreach ($pageItem->getProperties() as $propertyItem) {
8786
$propertyContent = $propertyItem->getContent();
8887
if ($this->modelClass::$convertPropsToText || $this->localConvertPropsToText) {
@@ -268,9 +267,9 @@ private function cacheKey(): string
268267
{
269268
$postCacheKey = '';
270269
if ($this->nextCursor !== null) {
271-
$postCacheKey = '-' . $this->nextCursor->__toString();
270+
$postCacheKey = '-'.$this->nextCursor->__toString();
272271
}
273272

274-
return $this->modelClass::$preCacheKey . $this->modelClass::$databaseId . $postCacheKey;
273+
return $this->modelClass::$preCacheKey.$this->modelClass::$databaseId.$postCacheKey;
275274
}
276275
}

0 commit comments

Comments
 (0)