@@ -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) |
@@ -251,9 +251,9 @@ |
||
| 251 | 251 | $conn = $this->getProjectsConnection(); |
| 252 | 252 | $pageTable = $this->getTableName($project->getDatabaseName(), 'page'); |
| 253 | 253 | $query = "SELECT page_id " |
| 254 | - . " FROM $pageTable " |
|
| 255 | - . " WHERE page_namespace = :ns AND page_title = :title AND page_len > 0 " |
|
| 256 | - . " LIMIT 1"; |
|
| 254 | + . " FROM $pageTable " |
|
| 255 | + . " WHERE page_namespace = :ns AND page_title = :title AND page_len > 0 " |
|
| 256 | + . " LIMIT 1"; |
|
| 257 | 257 | $params = [ |
| 258 | 258 | 'ns' => $namespaceId, |
| 259 | 259 | 'title' => $pageTitle, |
@@ -255,7 +255,7 @@ |
||
| 255 | 255 | * Adapted from https://github.com/MusikAnimal/pageviews |
| 256 | 256 | * @param array $params Associative array of params to pass to API |
| 257 | 257 | * @param string $project Project to query, e.g. en.wikipedia.org |
| 258 | - * @param string|func $dataKey The key for the main chunk of data, in the query hash |
|
| 258 | + * @param string $dataKey The key for the main chunk of data, in the query hash |
|
| 259 | 259 | * (e.g. 'categorymembers' for API:Categorymembers). |
| 260 | 260 | * If this is a function it is given the response data, |
| 261 | 261 | * and expected to return the data we want to concatentate. |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | /** |
| 201 | 201 | * Get an array of this project's namespaces and their IDs. |
| 202 | 202 | * |
| 203 | - * @return string[] Keys are IDs, values are names. |
|
| 203 | + * @return string Keys are IDs, values are names. |
|
| 204 | 204 | */ |
| 205 | 205 | public function getNamespaces() |
| 206 | 206 | { |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | * Get metadata about a single page from the API. |
| 19 | 19 | * @param Project $project The project to which the page belongs. |
| 20 | 20 | * @param string $pageTitle Page title. |
| 21 | - * @return string[] Array with some of the following keys: pageid, title, missing, displaytitle, |
|
| 21 | + * @return string|null Array with some of the following keys: pageid, title, missing, displaytitle, |
|
| 22 | 22 | * url. |
| 23 | 23 | */ |
| 24 | 24 | public function getPageInfo(Project $project, $pageTitle) |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * Get the statement for a single revision, so that you can iterate row by row. |
| 97 | 97 | * @param Page $page The page. |
| 98 | 98 | * @param User|null $user Specify to get only revisions by the given user. |
| 99 | - * @return Doctrine\DBAL\Driver\PDOStatement |
|
| 99 | + * @return \Doctrine\DBAL\Driver\Statement |
|
| 100 | 100 | */ |
| 101 | 101 | public function getRevisionsStmt(Page $page, User $user = null) |
| 102 | 102 | { |
@@ -389,7 +389,7 @@ |
||
| 389 | 389 | * The edit previously deemed as having the maximum amount of content added. |
| 390 | 390 | * This is used to discount content that was reverted. |
| 391 | 391 | * @var Edit|null |
| 392 | - */ |
|
| 392 | + */ |
|
| 393 | 393 | $prevMaxAddEdit = null; |
| 394 | 394 | |
| 395 | 395 | /** |
@@ -695,7 +695,7 @@ |
||
| 695 | 695 | * Get the combined regex and tags for all semi-automated tools, |
| 696 | 696 | * ready to be used in a query. |
| 697 | 697 | * @param string $projectDomain Such as en.wikipedia.org |
| 698 | - * @param $conn Doctrine\DBAL\Connection Used for proper escaping |
|
| 698 | + * @param \Doctrine\DBAL\Connection $conn Doctrine\DBAL\Connection Used for proper escaping |
|
| 699 | 699 | * @return string[] In the format: |
| 700 | 700 | * ['combined|regex', 'combined,tags'] |
| 701 | 701 | */ |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | * |
| 93 | 93 | * @Route("/rfap/{project}/{username}", name="rfapResult") |
| 94 | 94 | * |
| 95 | - * @return Response |
|
| 95 | + * @return \Symfony\Component\HttpFoundation\Response |
|
| 96 | 96 | */ |
| 97 | 97 | public function resultAction($project, $username) |
| 98 | 98 | { |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | * Returns matches. |
| 36 | 36 | * |
| 37 | 37 | * @param string $input The line we're looking for |
| 38 | - * @param array $matches Pointer to an array where we stash results |
|
| 38 | + * @param string[] $matches Pointer to an array where we stash results |
|
| 39 | 39 | * |
| 40 | 40 | * @TODO: Make this cleaner |
| 41 | 41 | * |