mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
PHPstan fixes.
This commit is contained in:
@@ -117,9 +117,9 @@ trait AppendsLocationData
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private function isValidPOST(?string $prefix): bool
|
||||
private function isValidPost(?string $prefix): bool
|
||||
{
|
||||
app('log')->debug('Now in isValidPOST()');
|
||||
app('log')->debug('Now in isValidPost()');
|
||||
$longitudeKey = $this->getLocationKey($prefix, 'longitude');
|
||||
$latitudeKey = $this->getLocationKey($prefix, 'latitude');
|
||||
$zoomLevelKey = $this->getLocationKey($prefix, 'zoom_level');
|
||||
|
@@ -353,7 +353,7 @@ trait ConvertsDataTypes
|
||||
{
|
||||
$return = [];
|
||||
foreach ($fields as $field => $info) {
|
||||
if ($this->has($info[0])) {
|
||||
if (true === $this->has($info[0])) {
|
||||
$method = $info[1];
|
||||
$return[$field] = $this->$method($info[0]); // @phpstan-ignore-line
|
||||
}
|
||||
@@ -422,7 +422,7 @@ trait ConvertsDataTypes
|
||||
*/
|
||||
protected function nullableInteger(string $field): ?int
|
||||
{
|
||||
if (!$this->has($field)) {
|
||||
if (false === $this->has($field)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user