Some more linting via PHPDoc comments.
This commit is contained in:
parent
fb3cc1832f
commit
8de816d7dd
6 changed files with 28 additions and 3 deletions
|
@ -59,9 +59,19 @@ class Image {
|
|||
/** @var string[]|null */
|
||||
public $tag_array;
|
||||
|
||||
public $owner_id, $owner_ip;
|
||||
/** @var int */
|
||||
public $owner_id;
|
||||
|
||||
/** @var string */
|
||||
public $owner_ip;
|
||||
|
||||
/** @var string */
|
||||
public $posted;
|
||||
|
||||
/** @var string */
|
||||
public $source;
|
||||
|
||||
/** @var boolean */
|
||||
public $locked;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
<?php
|
||||
|
||||
/** @private */
|
||||
/**
|
||||
* @private
|
||||
* @param mixed $row
|
||||
* @return User
|
||||
*/
|
||||
function _new_user($row) {
|
||||
return new User($row);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,10 @@
|
|||
* extensions and read their documentation
|
||||
*/
|
||||
|
||||
/** @private */
|
||||
/**
|
||||
* @private
|
||||
* @return int
|
||||
*/
|
||||
function __extman_extcmp(ExtensionInfo $a, ExtensionInfo $b) {
|
||||
return strcmp($a->name, $b->name);
|
||||
}
|
||||
|
@ -189,6 +192,9 @@ class ExtManager extends Extension {
|
|||
$this->write_config($extras);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string[] $extra
|
||||
*/
|
||||
private function write_config($extras) {
|
||||
file_put_contents(
|
||||
"data/config/extensions.conf.php",
|
||||
|
|
|
@ -225,6 +225,7 @@ class PostListBuildingEvent extends Event {
|
|||
}
|
||||
|
||||
class Index extends Extension {
|
||||
/** @var int */
|
||||
private $stpen = 0; // search term parse event number
|
||||
|
||||
public function onInitExt(InitExtEvent $event) {
|
||||
|
|
|
@ -129,6 +129,7 @@ class Upgrade extends Extension {
|
|||
}
|
||||
}
|
||||
|
||||
/** @return int */
|
||||
public function get_priority() {return 5;}
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,9 @@ class WordFilter extends Extension {
|
|||
return $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
private function get_map() {
|
||||
global $config;
|
||||
$raw = $config->get_string("word_filter");
|
||||
|
|
Reference in a new issue