svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/ PEAR2SVN.php
[email protected] (Brett Bieber)
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
saltybeagle Sun, 23 May 2010 13:02:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299646
Log:
Do similar readability improvements to the parseAPI method.
Changed paths:
U pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN.php
Modified: pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN.php
===================================================================
--- pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN.php 2010-05-23 12:57:42 UTC (rev 299645)
+++ pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN.php 2010-05-23 13:02:49 UTC (rev 299646)
@@ -313,17 +313,19 @@
}
if (count($files)) {
uksort($files, 'version_compare');
- $info = array_pop($files);
- $stability = $this->guessStabilityFromVersion($info[1]);
- $this->pxml->version['api'] = $info[1];
+ list($apinotesfile, $apiversion) = array_pop($files);
+ $stability = $this->guessStabilityFromVersion($apiversion);
+
+ $this->pxml->version['api'] = $apiversion;
$this->pxml->stability['api'] = $stability;
+
$this->pxml->notes = $this->pxml->notes .
- "\n\n" . file_get_contents($this->path . DIRECTORY_SEPARATOR . $info[0]);
+ "\n\n" . file_get_contents($this->path . DIRECTORY_SEPARATOR . $apinotesfile);
+
if ($this->doCompatible) {
- $this->pxml_compatible->version['api'] = $info[1];
+ $this->pxml_compatible->version['api'] = $apiversion;
$this->pxml_compatible->stability['api'] = $stability;
- $this->pxml_compatible->notes = $this->pxml_compatible->notes .
- "\n\n" . file_get_contents($this->path . DIRECTORY_SEPARATOR . $info[0]);
+ $this->pxml_compatible->notes = $this->pxml->notes;
}
}
}