Completed
Pull Request — master (#15)
by Sam
04:07
created
src/AppBundle/Helper/AutomatedEditsHelper.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,11 +3,7 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/AppBundle/Controller/EditCounterController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/AppBundle/Helper/EditCounterHelper.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.