Piwik\Plugins\Marketplace\UpdateCommunication::hasNotificationAlreadyReceived PHP Метод

hasNotificationAlreadyReceived() защищенный Метод

protected hasNotificationAlreadyReceived ( $plugin )
    protected function hasNotificationAlreadyReceived($plugin)
    {
        $latestVersion = $this->getLatestVersion($plugin);
        $lastVersionSent = $this->getLatestVersionSent($plugin);
        if (!empty($lastVersionSent) && ($latestVersion == $lastVersionSent || version_compare($latestVersion, $lastVersionSent) == -1)) {
            return true;
        }
        return false;
    }