File tree Expand file tree Collapse file tree 6 files changed +23
-24
lines changed
Expand file tree Collapse file tree 6 files changed +23
-24
lines changed Original file line number Diff line number Diff line change 66 <exclude name =" MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
77 <exclude name =" MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected" />
88 <exclude name =" MediaWiki.Commenting.PropertyDocumentation.MissingVar" />
9- <exclude name =" MediaWiki.Commenting.RedundantVarName.Found" />
109 <exclude name =" MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
1110 </rule >
1211 <rule ref =" Generic.PHP.NoSilencedErrors.Discouraged" >
Original file line number Diff line number Diff line change 2929 "php" : " >=7.2.9"
3030 },
3131 "require-dev" : {
32- "mediawiki/mediawiki-codesniffer" : " 38 .0.0" ,
32+ "mediawiki/mediawiki-codesniffer" : " 39 .0.0" ,
3333 "mediawiki/mediawiki-phan-config" : " 0.11.1" ,
3434 "mediawiki/minus-x" : " 1.1.1" ,
35- "ockcyp/covers-validator" : " 1.3.3 " ,
36- "php-parallel-lint/php-console-highlighter" : " 0.5 .0" ,
37- "php-parallel-lint/php-parallel-lint" : " 1.3.1 " ,
35+ "ockcyp/covers-validator" : " 1.4.0 " ,
36+ "php-parallel-lint/php-console-highlighter" : " 1.0 .0" ,
37+ "php-parallel-lint/php-parallel-lint" : " 1.3.2 " ,
3838 "phpunit/phpunit" : " ^8.5"
3939 },
4040 "scripts" : {
Original file line number Diff line number Diff line change 2222 * @internal For use by bin/cdb only.
2323 */
2424final class Cli {
25- /** @var int $exitCode */
25+ /** @var int */
2626 private $ exitCode = 0 ;
2727
28- /** @var resource $out */
28+ /** @var resource */
2929 private $ out ;
3030
31- /** @var string $self */
31+ /** @var string */
3232 private $ self ;
3333
34- /** @var string $filepath */
34+ /** @var string */
3535 private $ filepath ;
3636
37- /** @var string $action */
37+ /** @var string */
3838 private $ action ;
3939
40- /** @var string[] $params */
40+ /** @var string[] */
4141 private $ params ;
4242
4343 /**
Original file line number Diff line number Diff line change 2525 * PHP array (a.k.a "hash").
2626 */
2727class Hash extends Reader {
28- /** @var string[] $data */
28+ /** @var string[] */
2929 private $ data ;
3030
3131 /**
3232 * A queue of keys to return from nextkey(), initialized by firstkey();
3333 *
34- * @var string[]|null $keys
34+ * @var string[]|null
3535 */
3636 private $ keys = null ;
3737
Original file line number Diff line number Diff line change 3131class PHP extends Reader {
3232 /**
3333 * The file name of the CDB file.
34- * @var string $fileName
34+ * @var string
3535 */
3636 protected $ fileName ;
3737
@@ -41,50 +41,50 @@ class PHP extends Reader {
4141 protected $ handle ;
4242
4343 /**
44- * @var string $index
44+ * @var string
4545 * First 2048 bytes of CDB file, containing pointers to hash table.
4646 */
4747 protected $ index ;
4848
4949 /**
5050 * Offset in file where value of found key starts.
51- * @var int $dataPos
51+ * @var int
5252 */
5353 protected $ dataPos ;
5454
5555 /**
5656 * Byte length of found key's value.
57- * @var int $dataLen
57+ * @var int
5858 */
5959 protected $ dataLen ;
6060
6161 /**
6262 * File position indicator when iterating over keys.
63- * @var int $keyIterPos
63+ * @var int
6464 */
6565 protected $ keyIterPos = 2048 ;
6666
6767 /**
6868 * Offset in file where hash tables start.
69- * @var int $keyIterStop
69+ * @var int
7070 */
7171 protected $ keyIterStop ;
7272
7373 /**
7474 * Read buffer for CDB file.
75- * @var string $buf
75+ * @var string
7676 */
7777 protected $ buf ;
7878
7979 /**
8080 * File offset where read buffer starts.
81- * @var int $bufStart
81+ * @var int
8282 */
8383 protected $ bufStart ;
8484
8585 /**
8686 * File handle position indicator.
87- * @var int $filePos
87+ * @var int
8888 */
8989 protected $ filePos = 2048 ;
9090
Original file line number Diff line number Diff line change 2727abstract class Writer {
2828 /**
2929 * File we'll be writing to when we're done
30- * @var string $realFileName
30+ * @var string
3131 */
3232 protected $ realFileName ;
3333
3434 /**
3535 * File we write to temporarily until we're done
36- * @var string $tmpFileName
36+ * @var string
3737 */
3838 protected $ tmpFileName ;
3939
You can’t perform that action at this time.
0 commit comments