Reformat various code.

This commit is contained in:
James Cole
2022-03-29 15:01:48 +02:00
parent 452b6d0e1b
commit 60786461a9
7 changed files with 539 additions and 97 deletions

File diff suppressed because one or more lines are too long

View File

@@ -21,7 +21,6 @@
*/
declare(strict_types=1);
use FireflyIII\Http\Middleware\IsAdmin;
/**
* Autocomplete controllers

View File

@@ -54,7 +54,7 @@ if (!function_exists('limitStringLength')) {
function limitStringLength(string $string): string
{
$maxChars = 75;
$length = \strlen($string);
$length = strlen($string);
$result = $string;
if ($length > $maxChars) {
$result = substr_replace($string, ' ... ', (int) ($maxChars / 2), $length - $maxChars);