Skip to content

Commit 299dccd

Browse files
committed
QA: APIdoc whitespace / references consistency
1 parent ef00efc commit 299dccd

13 files changed

+32
-38
lines changed

src/main/php/io/archive/zip/CipheringZipFileOutputStream.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Output stream for files
77
*
8-
* @see xp://io.archive.zip.ZipArchiveWriter#addFile
8+
* @see io.archive.zip.ZipArchiveWriter::addFile
99
*/
1010
class CipheringZipFileOutputStream implements OutputStream {
1111
protected $writer, $file, $name, $md, $cipher;

src/main/php/io/archive/zip/Compression.class.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@
3535
*
3636
* This implementation supports 0 (NONE), 8 (GZ) and 12 (BZIP2).
3737
*
38-
* @ext bz2
39-
* @ext zlib
40-
* @see xp://io.archive.zip.ZipArchive
41-
* @test xp://net.xp_framework.unittest.io.archive.CompressionTest
42-
* @purpose Compressions
38+
* @ext bz2
39+
* @ext zlib
40+
* @see io.archive.zip.ZipArchive
41+
* @test io.archive.zip.unittest.CompressionTest
4342
*/
4443
abstract class Compression extends Enum {
4544
public static $NONE, $GZ, $BZ;
@@ -101,7 +100,7 @@ public abstract function getDecompressionStream(InputStream $in);
101100
/**
102101
* Get a compression instance by a given id
103102
*
104-
* @param int n
103+
* @param int $n
105104
* @return io.archive.zip.Compression
106105
* @throws lang.IllegalArgumentException
107106
*/

src/main/php/io/archive/zip/DecipheringInputStream.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Deciphers using ZipCipher class
77
*
8-
* @see xp://io.archive.zip.ZipCipher
8+
* @see io.archive.zip.ZipCipher
99
*/
1010
class DecipheringInputStream implements InputStream {
1111
protected $in= null;

src/main/php/io/archive/zip/RandomAccessZipReaderImpl.class.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
use io\streams\{InputStream, Seekable};
44
use lang\FormatException;
55

6-
/**
7-
* Zip archive reader that works on Seekable input streams.
8-
*
9-
*/
6+
/** Zip archive reader that works on Seekable input streams. */
107
class RandomAccessZipReaderImpl extends AbstractZipReaderImpl {
118

129
/**
1310
* Creation constructor
1411
*
15-
* @param io.streams.InputStream stream
12+
* @param io.streams.InputStream $stream
1613
*/
1714
public function __construct(InputStream $stream) {
1815
parent::__construct(cast($stream, 'io.streams.Seekable'));
@@ -21,7 +18,7 @@ public function __construct(InputStream $stream) {
2118
/**
2219
* Get first entry
2320
*
24-
* @return io.archive.zip.ZipEntry
21+
* @return io.archive.zip.ZipEntry
2522
*/
2623
public function firstEntry() {
2724
$this->streamPosition(0);
@@ -31,7 +28,7 @@ public function firstEntry() {
3128
/**
3229
* Get next entry
3330
*
34-
* @return io.archive.zip.ZipEntry
31+
* @return io.archive.zip.ZipEntry
3532
*/
3633
public function nextEntry() {
3734
$this->skip && $this->streamPosition($this->position + $this->skip);
@@ -41,8 +38,8 @@ public function nextEntry() {
4138
/**
4239
* Seeks a stream
4340
*
44-
* @param int offset absolute offset
45-
* @param int whence
41+
* @param int $offset absolute offset
42+
* @param int $whence
4643
*/
4744
protected function streamSeek($offset, $whence) {
4845
$this->stream->seek($offset, $whence);
@@ -51,6 +48,7 @@ protected function streamSeek($offset, $whence) {
5148
/**
5249
* Read central directory
5350
*
51+
* @return void
5452
*/
5553
protected function readCentralDirectory() {
5654
$entries= $this->seekCentralDirectory();
@@ -102,7 +100,7 @@ protected function seekCentralDirectory() {
102100
$marker= substr($marker, -3);
103101
}
104102

105-
if (0 == $this->streamAvailable()) {
103+
if (0 === $this->streamAvailable()) {
106104
throw new FormatException('Could not find central directory; currently not supporting archives w/ file comments.');
107105
}
108106

src/main/php/io/archive/zip/SequentialZipReaderImpl.class.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
use io\streams\Seekable;
44
use lang\{IllegalArgumentException, IllegalStateException};
55

6-
/**
7-
* Zip archive reader that works on any input stream.
8-
*
9-
*/
6+
/** Zip archive reader that works on any input stream */
107
class SequentialZipReaderImpl extends AbstractZipReaderImpl {
118
private $initial= true;
129

src/main/php/io/archive/zip/ZipArchiveReader.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* }
2727
* ```
2828
*
29-
* @see io.archive.zip.ZipArchive#open
29+
* @see io.archive.zip.ZipArchive::open
3030
* @test io.archive.zip.unittest.ZipArchiveReaderTest
3131
* @test io.archive.zip.unittest.ZipFileEntriesTest
3232
* @test io.archive.zip.unittest.ZipFileIteratorTest

src/main/php/io/archive/zip/ZipCipher.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
/**
66
* Zip Cipher.
77
*
8-
* @test xp://net.xp_framework.unittest.io.archive.vendors.SevenZipFileTest
9-
* @see http://www.pkware.com/documents/casestudies/APPNOTE.TXT
8+
* @test io.archive.zip.unittest.vendors.SevenZipFileTest
9+
* @see http://www.pkware.com/documents/casestudies/APPNOTE.TXT
1010
*/
1111
class ZipCipher {
1212
protected $keys= null;

src/main/php/io/archive/zip/ZipDirEntry.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Represents a Dir entry in a zip archive
77
*
8-
* @test net.xp_framework.unittest.io.archive.ZipEntryTest
8+
* @test io.archive.zip.unittest.ZipEntryTest
99
* @see io.archive.zip.ZipEntry
1010
*/
1111
class ZipDirEntry implements ZipEntry {

src/main/php/io/archive/zip/ZipEntries.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Iterates on ZIP archive entries
77
*
8-
* @test xp://net.xp_framework.unittest.io.archive.ZipFileEntriesTest
8+
* @test io.archive.zip.unittest.ZipFileEntriesTest
99
*/
1010
class ZipEntries implements Iterator {
1111
protected $impl= null;

src/main/php/io/archive/zip/ZipEntry.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Represents an entry in a zip archive
77
*
8-
* @see xp://io.archive.zip.ZipArchive
8+
* @see io.archive.zip.ZipArchive
99
*/
1010
interface ZipEntry {
1111

0 commit comments

Comments
 (0)