mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
Apply fixes from StyleCI
This commit is contained in:
@@ -369,7 +369,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
protected function writeTransform($value, $type)
|
protected function writeTransform($value, $type)
|
||||||
{
|
{
|
||||||
if (is_null($value)) {
|
if (is_null($value)) {
|
||||||
return null;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($type)) {
|
if (is_array($type)) {
|
||||||
@@ -481,7 +481,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
protected function readTransform($value, $type)
|
protected function readTransform($value, $type)
|
||||||
{
|
{
|
||||||
if (is_null($value)) {
|
if (is_null($value)) {
|
||||||
return null;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($type)) {
|
if (is_array($type)) {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ EOF;
|
|||||||
protected function normalizePath($path)
|
protected function normalizePath($path)
|
||||||
{
|
{
|
||||||
if ($path === false) {
|
if ($path === false) {
|
||||||
return null;
|
return;
|
||||||
}
|
}
|
||||||
$parts = [];
|
$parts = [];
|
||||||
$path = strtr($path, '\\', '/');
|
$path = strtr($path, '\\', '/');
|
||||||
|
|||||||
Reference in New Issue
Block a user