Apply fixes from StyleCI

This commit is contained in:
ThinkPHP
2017-03-28 04:48:08 +00:00
parent a4646ba1a9
commit ab12b00c5d
2 changed files with 3 additions and 3 deletions

View File

@@ -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)) {

View File

@@ -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, '\\', '/');