规范代码

This commit is contained in:
thinkphp
2016-12-24 21:37:05 +08:00
parent 81bde424be
commit 43b364e286
45 changed files with 106 additions and 195 deletions

View File

@@ -60,7 +60,7 @@ class Utils
return $input;
}
if (is_scalar($input)) {
return (string)$input;
return (string) $input;
}
throw new \InvalidArgumentException(sprintf('%s only accepts strings or stream resources.', $caller));
}
@@ -72,4 +72,4 @@ class Utils
return 2 < strlen($arg) && $char === $arg[0] && $char === $arg[strlen($arg) - 1];
}
}
}