Skip to content

Commit 42f3005

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents d317446 + 2de610c commit 42f3005

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/Supporting/FileMakerLayout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function query(array|null $condition = null,
178178
int $range = 0,
179179
array|null $portal = null,
180180
array|null $script = null,
181-
int $dateformats = null): FileMakerRelation|null
181+
int|null $dateformats = null): FileMakerRelation|null
182182
{
183183
if ($this->restAPI->login()) {
184184
$headers = ["Content-Type" => "application/json"];

src/Supporting/FileMakerRelation.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @property string $<<field_name>> The field value named as the property name.
1616
* @property FileMakerRelation $<<portal_name>> FileMakerRelation object associated with the property name.
1717
* The table occurrence name of the portal can be the 'portal_name,' and also the object name of the portal.
18-
* Ver * @version 32
18+
* @version 32
1919
* @author Masayuki Nii <nii@msyk.net>
2020
* @copyright 2017-2024 Masayuki Nii (Claris FileMaker is registered trademarks of Claris International Inc. in the U.S. and other countries.)
2121
*/
@@ -107,7 +107,7 @@ public function getDataInfo(): object|array|null
107107
*/
108108
public function getTargetTable(): null|string
109109
{
110-
return ($this->dataInfo) ? $this->dataInfo->table : null;
110+
return $this->dataInfo->table ?? null;
111111
}
112112

113113
/**
@@ -118,8 +118,7 @@ public function getTargetTable(): null|string
118118
*/
119119
public function getTotalCount(): null|int
120120
{
121-
return ($this->dataInfo && property_exists($this->dataInfo, 'totalRecordCount')) ?
122-
$this->dataInfo->totalRecordCount : null;
121+
return $this->dataInfo->totalRecordCount ?? null;
123122
}
124123

125124
/**
@@ -131,7 +130,7 @@ public function getTotalCount(): null|int
131130
*/
132131
public function getFoundCount(): null|int
133132
{
134-
return ($this->dataInfo) ? $this->dataInfo->foundCount : null;
133+
return $this->dataInfo->foundCount ?? null;
135134
}
136135

137136
/**
@@ -143,7 +142,7 @@ public function getFoundCount(): null|int
143142
*/
144143
public function getReturnedCount(): null|int
145144
{
146-
return ($this->dataInfo) ? $this->dataInfo->returnedCount : null;
145+
return $this->dataInfo->returnedCount ?? null;
147146
}
148147

149148
/**

test/phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ includes:
33

44
parameters:
55
reportUnmatchedIgnoredErrors: false
6+
universalObjectCratesClasses:
7+
- INTERMediator\FileMakerServer\RESTAPI\FMDataAPI

0 commit comments

Comments
 (0)