protected function initializePackageData()
    {
        $filePath = $this->vendorDir . DIRECTORY_SEPARATOR . self::PACKAGE_DATA_FILENAME;
        if (!is_file($filePath)) {
            $this->packagesData = array();
        } else {
            $this->packagesData = json_decode(file_get_contents($filePath), true);
        }
    }
protected function initializePackageData()
    {
        $filePath = $this->vendorDir . DIRECTORY_SEPARATOR . self::PACKAGE_DATA_FILENAME;
        if (!is_file($filePath)) {
            $this->packagesData = array();
        } else {
            $this->packagesData = json_decode(file_get_contents($filePath), true);
        }
    }
protected function initializePackageData ( ) { $ filePath = $ this -> vendorDir . DIRECTORY_SEPARATOR . self :: PACKAGE_DATA_FILENAME ; if ( ! is_file ( $ filePath ) ) { $ this -> packagesData = array ( ) ; } else { $ this -> packagesData = json_decode ( file_get_contents ( $ filePath ) , true ) ; } }
Initialize the package data array if not set
Initialize the package data array if not set