Skip to content

Commit

Permalink
Revert commit d42b68c
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Sep 12, 2019
1 parent 99449dc commit c4f15b8
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Json/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ class Repository extends AbstractClass
*/
protected $options;

/**
* @var bool
*/
protected $allowSslDowngrade;

/**
* @var ComposerJson|null
*/
Expand All @@ -49,7 +44,6 @@ public function __construct(array $data = [])
$this->type = (array_key_exists('type', $data) ? $data['type'] : '');
$this->url = (array_key_exists('url', $data) ? $data['url'] : '');
$this->options = (array_key_exists('options', $data) ? $data['options'] : []);
$this->allowSslDowngrade = (array_key_exists('allow_ssl_downgrade', $data) ? $data['allow_ssl_downgrade'] : false);

$this->package = (array_key_exists('package', $data) ? new ComposerJson($data['package']) : null);
}
Expand Down Expand Up @@ -81,16 +75,6 @@ public function getOptions() : array
return $this->options;
}

/**
* Get if ssl may be downgraded for this repository.
* @see https://github.com/composer/composer/blob/0fe200d6d950b0774688713be3153bb410eb70b8/src/Composer/Repository/ComposerRepository.php#L87-L89
* @return bool
*/
public function isSslDowngradeAllowed() : bool
{
return $this->allowSslDowngrade;
}

/**
* Gets the parsed "package" key of the repository.
* @return ComposerJson|null
Expand Down

0 comments on commit c4f15b8

Please sign in to comment.