Reduce scrutinizer warnings

This commit is contained in:
Alexander Bigga 2021-11-27 18:15:30 +01:00
parent 7fd9859af7
commit 94082ffcfb
1 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ class NewTenantController extends AbstractController
$structures = $this->structureRepository->findByPid($this->pid);
if (count($structures) > 0) {
if ($structures) {
// Fine.
$this->addFlashMessage(
$this->getLanguageService()->getLL('flash.structureOkayMsg'),
@ -283,7 +283,7 @@ class NewTenantController extends AbstractController
$metadata = $this->metadataRepository->findByPid($this->pid);
if (count($metadata) > 0) {
if ($metadata) {
// Fine.
$this->addFlashMessage(
$this->getLanguageService()->getLL('flash.metadataOkayMsg'),