@@ -380,7 +380,6 @@ |
||
| 380 | 380 | |
| 381 | 381 | /** |
| 382 | 382 | * Get the size of the diff |
| 383 | - * @param int $rev The index of the revision within $this->pageHistory |
|
| 384 | 383 | * @return int Size of the diff |
| 385 | 384 | */ |
| 386 | 385 | private function getDiffSize($revIndex) |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * Adds a mandatory requirement in form of a php.ini configuration. |
| 224 | 224 | * |
| 225 | 225 | * @param string $cfgName The configuration name used for ini_get() |
| 226 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 226 | + * @param boolean|string $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 227 | 227 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 228 | 228 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 229 | 229 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * Adds an optional recommendation in form of a php.ini configuration. |
| 242 | 242 | * |
| 243 | 243 | * @param string $cfgName The configuration name used for ini_get() |
| 244 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 244 | + * @param string|false $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 245 | 245 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 246 | 246 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 247 | 247 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -72,7 +72,6 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * Get a link to the given user's userpage, or to Special:Contribs if $username is an IP |
| 75 | - * @param string $username Username |
|
| 76 | 75 | * @param string $projectUrl Project domain and protocol such as https://en.wikipedia.org |
| 77 | 76 | * @param string [$label] The link text, defaults to $username |
| 78 | 77 | * @return string Markup |
@@ -176,7 +175,7 @@ discard block |
||
| 176 | 175 | /** |
| 177 | 176 | * Get links to pageviews tools for the given page |
| 178 | 177 | * @param string $title Title of page |
| 179 | - * @param string $projectUrl Project domain such as en.wikipedia.org |
|
| 178 | + * @param string $project Project domain such as en.wikipedia.org |
|
| 180 | 179 | * @return string Markup |
| 181 | 180 | */ |
| 182 | 181 | public function pageviewsLinks($title, $project) |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | /** @var string[] Basic metadata about the project */ |
| 15 | 15 | protected $metadata; |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string $nameOrUrl |
|
| 19 | + */ |
|
| 17 | 20 | public function __construct($nameOrUrl) |
| 18 | 21 | { |
| 19 | 22 | $this->nameUnnormalized = $nameOrUrl; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * Get this page's database ID. |
| 55 | - * @return int |
|
| 55 | + * @return \string|null |
|
| 56 | 56 | */ |
| 57 | 57 | public function getId() |
| 58 | 58 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | - * @return string |
|
| 78 | + * @return \string|null |
|
| 79 | 79 | */ |
| 80 | 80 | public function getUrl() |
| 81 | 81 | { |
@@ -177,7 +177,7 @@ |
||
| 177 | 177 | * Get a list of namespaces on the given project. |
| 178 | 178 | * |
| 179 | 179 | * @param string $project such as en.wikipedia.org |
| 180 | - * @return string[] Array of namespace IDs (keys) to names (values). |
|
| 180 | + * @return string Array of namespace IDs (keys) to names (values). |
|
| 181 | 181 | */ |
| 182 | 182 | public function namespaces($project) |
| 183 | 183 | { |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | * List top edits by this user for all pages in a particular namespace. |
| 97 | 97 | * @param User $user The User. |
| 98 | 98 | * @param Project $project The project. |
| 99 | - * @param integer|string $namespaceId The namespace ID or 'all' |
|
| 99 | + * @param integer $namespaceId The namespace ID or 'all' |
|
| 100 | 100 | * @return \Symfony\Component\HttpFoundation\Response |
| 101 | 101 | */ |
| 102 | 102 | protected function namespaceTopEdits(User $user, Project $project, $namespaceId) |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * @param Project $project The project to which the page belongs. |
| 16 | 16 | * @param string $pageTitle Page title. |
| 17 | 17 | * @param boolean $followRedirects Whether or not to resolve redirects |
| 18 | - * @return string[] Array with some of the following keys: pageid, title, missing, displaytitle, |
|
| 18 | + * @return string|null Array with some of the following keys: pageid, title, missing, displaytitle, |
|
| 19 | 19 | * url. |
| 20 | 20 | */ |
| 21 | 21 | public function getPageInfo(Project $project, $pageTitle, $followRedirects = true) |
@@ -63,9 +63,8 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * Get revisions of a single page. |
| 66 | - * @param Project $project |
|
| 67 | 66 | * @param Page $page |
| 68 | - * @param User|null $user |
|
| 67 | + * @param User $user |
|
| 69 | 68 | * @return string[] Each member with keys: id, timestamp, length- |
| 70 | 69 | */ |
| 71 | 70 | public function getRevisions(Page $page, User $user) |
@@ -248,7 +248,6 @@ discard block |
||
| 248 | 248 | * Get a user's total edit count on one or more project. |
| 249 | 249 | * Requires the CentralAuth extension to be installed on the project. |
| 250 | 250 | * |
| 251 | - * @param string $username The username. |
|
| 252 | 251 | * @param Project $project The project to start from. |
| 253 | 252 | * @return mixed[]|boolean Array of total edit counts, or false if none could be found. |
| 254 | 253 | */ |
@@ -295,7 +294,7 @@ discard block |
||
| 295 | 294 | |
| 296 | 295 | /** |
| 297 | 296 | * Get total edit counts for the top 10 projects for this user. |
| 298 | - * @param string $username The username. |
|
| 297 | + * @param string $stopwatchName |
|
| 299 | 298 | * @return string[] Elements are arrays with 'dbName', 'url', 'name', and 'total'. |
| 300 | 299 | */ |
| 301 | 300 | protected function getRevisionCountsAllProjectsNoCentralAuth( |