cs: Use Collection more.

This commit is contained in:
Pol Dellaiera
2022-01-04 15:29:17 +01:00
parent c8c5af8d14
commit acf7142bad
3 changed files with 29 additions and 19 deletions

View File

@@ -11,8 +11,6 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Config;
use function count;
/**
* Give help to interact with the config for alt names.
*/
@@ -69,6 +67,6 @@ class ConfigPersonAltNamesHelper
*/
public function hasAltNames(): bool
{
return count($this->config) > 0;
return [] !== $this->config;
}
}