Correction of typo error.
parent
60831ac3fc
commit
c7e0fb7e58
|
@ -114,7 +114,7 @@ class PearRepository extends ArrayRepository
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
$packageData += $this->parseDependences($deps);
|
$packageData += $this->parseDependencies($deps);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->addPackage($loader->load($packageData));
|
$this->addPackage($loader->load($packageData));
|
||||||
|
@ -130,7 +130,7 @@ class PearRepository extends ArrayRepository
|
||||||
* @param array $options
|
* @param array $options
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
private function parseDependencesOptions(array $depsOptions)
|
private function parseDependenciesOptions(array $depsOptions)
|
||||||
{
|
{
|
||||||
$data = array();
|
$data = array();
|
||||||
foreach ($depsOptions as $name => $options) {
|
foreach ($depsOptions as $name => $options) {
|
||||||
|
@ -170,7 +170,7 @@ class PearRepository extends ArrayRepository
|
||||||
* @return array
|
* @return array
|
||||||
* @throws InvalidArgumentException
|
* @throws InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
private function parseDependences($deps)
|
private function parseDependencies($deps)
|
||||||
{
|
{
|
||||||
if (preg_match('((O:([0-9])+:"([^"]+)"))', $deps, $matches)) {
|
if (preg_match('((O:([0-9])+:"([^"]+)"))', $deps, $matches)) {
|
||||||
if (strlen($matches[3]) == $matches[2]) {
|
if (strlen($matches[3]) == $matches[2]) {
|
||||||
|
@ -182,13 +182,13 @@ class PearRepository extends ArrayRepository
|
||||||
|
|
||||||
$depsData = array();
|
$depsData = array();
|
||||||
if (isset($deps['required'])) {
|
if (isset($deps['required'])) {
|
||||||
$depsData['require'] = $this->parseDependencesOptions($deps['required']);
|
$depsData['require'] = $this->parseDependenciesOptions($deps['required']);
|
||||||
} else {
|
} else {
|
||||||
$depsData['require'] = array('php' => '>=5.3.0');
|
$depsData['require'] = array('php' => '>=5.3.0');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($depsData['optional'])) {
|
if (isset($depsData['optional'])) {
|
||||||
$depsData['recommend'] = $this->parseDependencesOptions($depsData['optional']);
|
$depsData['recommend'] = $this->parseDependenciesOptions($depsData['optional']);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $depsData;
|
return $depsData;
|
||||||
|
@ -222,7 +222,7 @@ class PearRepository extends ArrayRepository
|
||||||
|
|
||||||
$depsData = $information->getElementsByTagName('deps')->item(0);
|
$depsData = $information->getElementsByTagName('deps')->item(0);
|
||||||
$depsData = $depsData->getElementsByTagName('d')->item(0);
|
$depsData = $depsData->getElementsByTagName('d')->item(0);
|
||||||
$depsData = $this->parseDependences($depsData->nodeValue);
|
$depsData = $this->parseDependencies($depsData->nodeValue);
|
||||||
|
|
||||||
$revisions = $information->getElementsByTagName('a')->item(0);
|
$revisions = $information->getElementsByTagName('a')->item(0);
|
||||||
$revisions = $revisions->getElementsByTagName('r');
|
$revisions = $revisions->getElementsByTagName('r');
|
||||||
|
|
Loading…
Reference in New Issue