mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Reformat various code.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -21,7 +21,6 @@
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
use FireflyIII\Http\Middleware\IsAdmin;
|
||||
|
||||
/**
|
||||
* Autocomplete controllers
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user