protected function getComposerLockData(): Collection
    {
        $json = [];

        if ($this->files->exists($this->config['path.composer'])) {
            $json = \json_decode($this->files->get($this->config['path.composer']), true);
        }

        return Collection::make($json['packages'] ?? []);
    }
protected function getComposerLockData(): Collection
    {
        $json = [];

        if ($this->files->exists($this->config['path.composer'])) {
            $json = \json_decode($this->files->get($this->config['path.composer']), true);
        }

        return Collection::make($json['packages'] ?? []);
    }
protected function getComposerLockData ( ) : Collection { $ json = [ ] ; if ( $ this -> files -> exists ( $ this -> config [ 'path.composer' ] ) ) { $ json = \ json_decode ( $ this -> files -> get ( $ this -> config [ 'path.composer' ] ) , true ) ; } return Collection :: make ( $ json [ 'packages' ] ?? [ ] ) ; }
Get composer.lock data.

@return \Illuminate\Support\Collection
Get composer . lock data .