mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-09 11:18:10 +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);
|
declare(strict_types=1);
|
||||||
use FireflyIII\Http\Middleware\IsAdmin;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Autocomplete controllers
|
* Autocomplete controllers
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ if (!function_exists('limitStringLength')) {
|
|||||||
function limitStringLength(string $string): string
|
function limitStringLength(string $string): string
|
||||||
{
|
{
|
||||||
$maxChars = 75;
|
$maxChars = 75;
|
||||||
$length = \strlen($string);
|
$length = strlen($string);
|
||||||
$result = $string;
|
$result = $string;
|
||||||
if ($length > $maxChars) {
|
if ($length > $maxChars) {
|
||||||
$result = substr_replace($string, ' ... ', (int) ($maxChars / 2), $length - $maxChars);
|
$result = substr_replace($string, ' ... ', (int) ($maxChars / 2), $length - $maxChars);
|
||||||
|
|||||||
Reference in New Issue
Block a user