Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Nov 5, 2021
1 parent f4514ad commit 7be4177
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Persistence/Ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace Atk4\Ui\Persistence;

use Atk4\Data\Model;
use Atk4\Data\Field;
use Atk4\Data\Model;
use Atk4\Ui\Exception;

/**
Expand Down Expand Up @@ -41,6 +41,7 @@ class Ui extends \Atk4\Data\Persistence

public function typecastSaveField(Field $field, $value)
{
// relax strict nullable checks for UI render for not yet set values
if ($value === null) {
return null;
}
Expand All @@ -51,7 +52,7 @@ public function typecastSaveField(Field $field, $value)
/**
* This method contains the logic of casting generic values into user-friendly format.
*/
protected function _typecastSaveField(\Atk4\Data\Field $field, $value): string
protected function _typecastSaveField(Field $field, $value): string
{
// always normalize string EOL
if (is_string($value)) {
Expand Down Expand Up @@ -97,7 +98,7 @@ protected function _typecastSaveField(\Atk4\Data\Field $field, $value): string
/**
* Interpret user-defined input for various types.
*/
protected function _typecastLoadField(\Atk4\Data\Field $field, $value)
protected function _typecastLoadField(Field $field, $value)
{
// always normalize string EOL
if (is_string($value)) {
Expand Down

0 comments on commit 7be4177

Please sign in to comment.