@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 6 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 7 | 7 | use Symfony\Component\HttpFoundation\Request; |
| 8 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
| 9 | 8 | use DateTime; |
| 10 | 9 | |
| 11 | 10 | class AdminScoreController extends Controller |
@@ -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) |
@@ -6,11 +6,7 @@ |
||
| 6 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 7 | 7 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 8 | 8 | use Symfony\Component\HttpFoundation\Request; |
| 9 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
| 10 | 9 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 11 | -use AppBundle\Helper\Apihelper; |
|
| 12 | -use AppBundle\Helper\PageviewsHelper; |
|
| 13 | -use AppBundle\Helper\AutomatedEditsHelper; |
|
| 14 | 10 | |
| 15 | 11 | class ArticleInfoController extends Controller |
| 16 | 12 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 6 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 7 | -use Symfony\Component\HttpFoundation\Request; |
|
| 8 | 7 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 9 | 8 | |
| 10 | 9 | class DefaultController extends Controller |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 6 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 7 | 7 | use Symfony\Component\HttpFoundation\Request; |
| 8 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
| 9 | 8 | |
| 10 | 9 | class PagesController extends Controller |
| 11 | 10 | { |
@@ -4,9 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 6 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 7 | -use Symfony\Component\Config\Definition\Exception\Exception; |
|
| 8 | 7 | use Symfony\Component\HttpFoundation\Request; |
| 9 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
| 10 | 8 | |
| 11 | 9 | class SimpleEditCounterController extends Controller |
| 12 | 10 | { |
@@ -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. |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * |
| 149 | - * @param $username |
|
| 149 | + * @param string $username |
|
| 150 | 150 | * @return integer |
| 151 | 151 | */ |
| 152 | 152 | public function getPageCounts($username, $totalRevisions) |
@@ -2,13 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace AppBundle\Helper; |
| 4 | 4 | |
| 5 | -use AppBundle\Twig\AppExtension; |
|
| 6 | -use DateInterval; |
|
| 7 | 5 | use Doctrine\DBAL\Connection; |
| 8 | 6 | use Exception; |
| 9 | -use Mediawiki\Api\SimpleRequest; |
|
| 10 | 7 | use Symfony\Component\DependencyInjection\Container; |
| 11 | -use Symfony\Component\VarDumper\VarDumper; |
|
| 12 | 8 | |
| 13 | 9 | class EditCounterHelper extends HelperBase |
| 14 | 10 | { |
@@ -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) |
@@ -52,6 +52,9 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $username |
|
| 57 | + */ |
|
| 55 | 58 | public function groups($project, $username) |
| 56 | 59 | { |
| 57 | 60 | $this->setUp($project); |
@@ -71,6 +74,9 @@ discard block |
||
| 71 | 74 | return $result; |
| 72 | 75 | } |
| 73 | 76 | |
| 77 | + /** |
|
| 78 | + * @param string $username |
|
| 79 | + */ |
|
| 74 | 80 | public function globalGroups($project, $username) |
| 75 | 81 | { |
| 76 | 82 | $this->setUp($project); |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace AppBundle\Helper; |
| 4 | 4 | |
| 5 | -use DateInterval; |
|
| 6 | 5 | use Mediawiki\Api\MediawikiApi; |
| 7 | 6 | use Mediawiki\Api\SimpleRequest; |
| 8 | 7 | use Mediawiki\Api\FluentRequest; |