private function decodeLockFile(): array
    {
        $data = [];

        $encoder = $this->jsonEncoderFactory->getEncoder();
        if (file_exists($this->rootDirectory . 'composer.lock')) {
            $data = $encoder->decode(
                file_get_contents($this->rootDirectory.'composer.lock'),
                JsonEncoder::FORMAT
            );
        }

        return $data;
    }
private function decodeLockFile(): array
    {
        $data = [];

        $encoder = $this->jsonEncoderFactory->getEncoder();
        if (file_exists($this->rootDirectory . 'composer.lock')) {
            $data = $encoder->decode(
                file_get_contents($this->rootDirectory.'composer.lock'),
                JsonEncoder::FORMAT
            );
        }

        return $data;
    }
private function decodeLockFile ( ) : array { $ data = [ ] ; $ encoder = $ this -> jsonEncoderFactory -> getEncoder ( ) ; if ( file_exists ( $ this -> rootDirectory . 'composer.lock' ) ) { $ data = $ encoder -> decode ( file_get_contents ( $ this -> rootDirectory . 'composer.lock' ) , JsonEncoder :: FORMAT ) ; } return $ data ; }
Returns the decoded lock file data.

@return array
Returns the decoded lock file data .