src/package/Data/Repositories/Support/Projects.php
public function projectSha1HasChanged()
    {
        $currentSha1 = sha1($projectsJson = $this->getProjects()->toJson());

        $oldSha1 = app('tddd.cache')->get(Constants::CACHE_PROJECTS_KEY);

        if ($hasChanged = $currentSha1 != $oldSha1) {
            app('tddd.cache')->put(Constants::CACHE_PROJECTS_KEY, sha1($projectsJson));
        }

        return $hasChanged;
    }
public function projectSha1HasChanged()
    {
        $currentSha1 = sha1($projectsJson = $this->getProjects()->toJson());

        $oldSha1 = app('tddd.cache')->get(Constants::CACHE_PROJECTS_KEY);

        if ($hasChanged = $currentSha1 != $oldSha1) {
            app('tddd.cache')->put(Constants::CACHE_PROJECTS_KEY, sha1($projectsJson));
        }

        return $hasChanged;
    }
public function projectSha1HasChanged ( ) { $ currentSha1 = sha1 ( $ projectsJson = $ this -> getProjects ( ) -> toJson ( ) ) ; $ oldSha1 = app ( 'tddd.cache' ) -> get ( Constants :: CACHE_PROJECTS_KEY ) ; if ( $ hasChanged = $ currentSha1 != $ oldSha1 ) { app ( 'tddd.cache' ) -> put ( Constants :: CACHE_PROJECTS_KEY , sha1 ( $ projectsJson ) ) ; } return $ hasChanged ; }
Get a SHA1 for all projects.

@return bool
Get a SHA1 for all projects .