@@ -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) |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Xtools; |
| 4 | 4 | |
| 5 | 5 | use Mediawiki\Api\MediawikiApi; |
| 6 | -use Symfony\Component\VarDumper\VarDumper; |
|
| 7 | 6 | |
| 8 | 7 | /** |
| 9 | 8 | * A Project is a single wiki that Xtools is querying. |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Xtools; |
| 4 | 4 | |
| 5 | 5 | use Xtools\User; |
| 6 | -use AppBundle\Helper\AutomatedEditsHelper; |
|
| 7 | 6 | use DateTime; |
| 8 | 7 | |
| 9 | 8 | /** |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 10 | 10 | use Symfony\Component\HttpFoundation\Request; |
| 11 | 11 | use Symfony\Component\HttpFoundation\Response; |
| 12 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
| 13 | 12 | use DateTime; |
| 14 | 13 | use Xtools\ProjectRepository; |
| 15 | 14 | use Xtools\UserRepository; |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use Symfony\Component\HttpFoundation\RedirectResponse; |
| 12 | 12 | use Symfony\Component\HttpFoundation\Request; |
| 13 | 13 | use Symfony\Component\HttpFoundation\Response; |
| 14 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
| 15 | 14 | use Xtools\ProjectRepository; |
| 16 | 15 | |
| 17 | 16 | /** |
@@ -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 | { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | /** |
| 39 | 39 | * Check to see if a given tool is enabled. |
| 40 | 40 | * @param string $tool The tool short name. |
| 41 | - * @return bool |
|
| 41 | + * @return boolean|null |
|
| 42 | 42 | */ |
| 43 | 43 | public function checkEnabled($tool) |
| 44 | 44 | { |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * Get all functions that this class provides. |
| 27 | - * @return array |
|
| 27 | + * @return \Twig_SimpleFunction[] |
|
| 28 | 28 | */ |
| 29 | 29 | public function getFunctions() |
| 30 | 30 | { |
@@ -520,7 +520,7 @@ discard block |
||
| 520 | 520 | |
| 521 | 521 | /** |
| 522 | 522 | * Get all filters for this extension. |
| 523 | - * @return array |
|
| 523 | + * @return \Twig_SimpleFilter[] |
|
| 524 | 524 | */ |
| 525 | 525 | public function getFilters() |
| 526 | 526 | { |