ALPHA 3.0.2a

This commit is contained in:
TheGamecraft
2018-09-10 08:51:18 -04:00
parent 7fe13ae0a7
commit 0e0ef86b71
1404 changed files with 10604 additions and 33714 deletions

View File

@@ -20,6 +20,16 @@ use Prophecy\Call\Call;
*/
class StringUtil
{
private $verbose;
/**
* @param bool $verbose
*/
public function __construct($verbose = true)
{
$this->verbose = $verbose;
}
/**
* Stringifies any provided value.
*
@@ -54,7 +64,7 @@ class StringUtil
if (is_string($value)) {
$str = sprintf('"%s"', str_replace("\n", '\\n', $value));
if (50 <= strlen($str)) {
if (!$this->verbose && 50 <= strlen($str)) {
return substr($str, 0, 50).'"...';
}