<?php

namespace Oro\Bundle\ActionBundle\Helper;

trait ApplicationsHelperTrait
{
    /** @var string|null */
    protected $currentApplication = false;

    /**
     * @param array $applications
     *
     * @return bool
     */
    public function isApplicationsValid(array $applications)
    {
        if (empty($applications)) {
            return true;
        }

        if ($this->currentApplication === false) {
            $this->currentApplication = $this->getCurrentApplication();
        }

        return in_array($this->currentApplication, $applications, true);
    }
}

<?php

namespace Oro\Bundle\ActionBundle\Helper;

trait ApplicationsHelperTrait
{
    /** @var string|bool|null */
    protected $currentApplication = false;

    /**
     * @param array $applications
     *
     * @return bool
     */
    public function isApplicationsValid(array $applications)
    {
        if (empty($applications)) {
            return true;
        }

        if ($this->currentApplication === false) {
            $this->currentApplication = $this->getCurrentApplication();
        }

        return in_array($this->currentApplication, $applications, true);
    }
}

Update ApplicationsHelper and ActionApplicationsHelper - CS Fixed
BAP-12468: Update ApplicationsHelper and ActionApplicationsHelper
- CS Fixed
