Kraken\Console\Server\Manager\ProjectManager::selectFromStorage PHP Метод

selectFromStorage() приватный Метод

Copy data from persistent storage to temporary one.
private selectFromStorage ( ) : mixed
Результат mixed
    private function selectFromStorage()
    {
        if (!$this->fs->exists($this->fsPath)) {
            return $this->getEmptyStorage();
        }
        $data = json_decode($this->fs->read($this->fsPath), true);
        if (!isset($data['pid']) || !$this->system->existsPid($data['pid'])) {
            return $this->getEmptyStorage();
        }
        return $data;
    }