@@ -3,11 +3,7 @@ |
||
3 | 3 | namespace AppBundle\Helper; |
4 | 4 | |
5 | 5 | use Doctrine\DBAL\Connection; |
6 | -use Psr\Cache\CacheItemPoolInterface; |
|
7 | -use Symfony\Component\Config\Definition\Exception\Exception; |
|
8 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
9 | 6 | use Symfony\Component\DependencyInjection\ContainerInterface; |
10 | -use Symfony\Component\VarDumper\VarDumper; |
|
11 | 7 | |
12 | 8 | class AutomatedEditsHelper extends HelperBase |
13 | 9 | { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
10 | 10 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
11 | 11 | use Symfony\Component\HttpFoundation\Request; |
12 | -use Symfony\Component\HttpFoundation\RequestStack; |
|
13 | 12 | |
14 | 13 | class EditCounterController extends Controller |
15 | 14 | { |
@@ -53,6 +53,7 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * Get total edit counts for the top 10 projects for this user. |
55 | 55 | * @param string $username The username. |
56 | + * @param string $projectUrl |
|
56 | 57 | * @return string[] Elements are arrays with 'dbName', 'url', 'name', and 'total'. |
57 | 58 | */ |
58 | 59 | public function getTopProjectsEditCounts($projectUrl, $username, $numProjects = 10) |
@@ -176,7 +177,7 @@ discard block |
||
176 | 177 | |
177 | 178 | /** |
178 | 179 | * |
179 | - * @param $username |
|
180 | + * @param string $username |
|
180 | 181 | * @return integer |
181 | 182 | */ |
182 | 183 | public function getPageCounts($username, $totalRevisions) |
@@ -2,8 +2,6 @@ |
||
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 | 7 | use Symfony\Component\DependencyInjection\Container; |