mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 21:13:57 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -13,8 +13,6 @@ namespace Chill\ThirdPartyBundle\Export\Helper;
|
||||
|
||||
use Chill\ThirdPartyBundle\Repository\ThirdPartyRepository;
|
||||
use Chill\ThirdPartyBundle\Templating\Entity\ThirdPartyRender;
|
||||
use function count;
|
||||
use const SORT_NUMERIC;
|
||||
|
||||
class LabelThirdPartyHelper
|
||||
{
|
||||
@@ -48,7 +46,7 @@ class LabelThirdPartyHelper
|
||||
|
||||
$decoded = json_decode((string) $value, null, 512, JSON_THROW_ON_ERROR);
|
||||
|
||||
if (0 === count($decoded)) {
|
||||
if (0 === \count($decoded)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -67,7 +65,7 @@ class LabelThirdPartyHelper
|
||||
},
|
||||
array_unique(
|
||||
array_filter($decoded, static fn (?int $id) => null !== $id),
|
||||
SORT_NUMERIC
|
||||
\SORT_NUMERIC
|
||||
)
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user