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 93f3830 commit f20f18b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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,7 +41,7 @@ class Ui extends \Atk4\Data\Persistence

public function typecastSaveField(Field $field, $value)
{
if ($value === null) {
if ($value === null) { // allow to render empty not-nullable fields
return null;
}

Expand All @@ -51,7 +51,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 +97,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 f20f18b

Please sign in to comment.