@@ -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; |
@@ -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) |
@@ -80,7 +80,6 @@ discard block |
||
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Link to list of users who are in the given user group |
83 | - * @param string $username Username |
|
84 | 83 | * @param string $projectUrl Project domain and protocol such as https://en.wikipedia.org |
85 | 84 | * @param string [$label] The link text, defaults to $username |
86 | 85 | * @return string Markup |
@@ -230,7 +229,7 @@ discard block |
||
230 | 229 | /** |
231 | 230 | * Get links to pageviews tools for the given page |
232 | 231 | * @param string $title Title of page |
233 | - * @param string $projectUrl Project domain such as en.wikipedia.org |
|
232 | + * @param string $project Project domain such as en.wikipedia.org |
|
234 | 233 | * @return string Markup |
235 | 234 | */ |
236 | 235 | public function pageviewsLinks($title, $project) |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * Get metadata about a single page from the API. |
15 | 15 | * @param Project $project The project to which the page belongs. |
16 | 16 | * @param string $pageTitle Page title. |
17 | - * @return string[] Array with some of the following keys: pageid, title, missing, displaytitle, |
|
17 | + * @return string|null Array with some of the following keys: pageid, title, missing, displaytitle, |
|
18 | 18 | * url. |
19 | 19 | */ |
20 | 20 | public function getPageInfo(Project $project, $pageTitle) |
@@ -58,7 +58,6 @@ discard block |
||
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Get revisions of a single page. |
61 | - * @param Project $project |
|
62 | 61 | * @param Page $page |
63 | 62 | * @param User|null $user Specify to get only revisions by the given user. |
64 | 63 | * @return string[] Each member with keys: id, timestamp, length- |
@@ -92,7 +91,6 @@ discard block |
||
92 | 91 | |
93 | 92 | /** |
94 | 93 | * Get a count of the number of revisions of a single page |
95 | - * @param Project $project |
|
96 | 94 | * @param Page $page |
97 | 95 | * @param User|null $user Specify to only count revisions by the given user. |
98 | 96 | * @return int |
@@ -28,7 +28,6 @@ |
||
28 | 28 | * @Route("/scottywong tools/adminscore.php", name="AdminScoreLegacy") |
29 | 29 | * @Route("/adminscore/{project}", name="AdminScoreProject") |
30 | 30 | * @param Request $request The HTTP request. |
31 | - * @param string $project The project name. |
|
32 | 31 | * @return Response |
33 | 32 | */ |
34 | 33 | public function indexAction(Request $request) |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | /** |
61 | 61 | * Get this page's database ID. |
62 | - * @return int |
|
62 | + * @return \string|null |
|
63 | 63 | */ |
64 | 64 | public function getId() |
65 | 65 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | /** |
71 | 71 | * Get this page's length in bytes. |
72 | - * @return int |
|
72 | + * @return \string|null |
|
73 | 73 | */ |
74 | 74 | public function getLength() |
75 | 75 | { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | /** |
95 | 95 | * Get the full URL of this page. |
96 | - * @return string |
|
96 | + * @return \string|null |
|
97 | 97 | */ |
98 | 98 | public function getUrl() |
99 | 99 | { |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | /** |
105 | 105 | * Get the numerical ID of the namespace of this page. |
106 | - * @return int |
|
106 | + * @return \string|null |
|
107 | 107 | */ |
108 | 108 | public function getNamespace() |
109 | 109 | { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | /** |
115 | 115 | * Get the number of page watchers. |
116 | - * @return int |
|
116 | + * @return \string|null |
|
117 | 117 | */ |
118 | 118 | public function getWatchers() |
119 | 119 | { |