Completed
Push — master ( 923752...8b9ea7 )
by Sam
11:33
created
src/AppBundle/Controller/QuoteController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6 6
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
7
-use Symfony\Component\Debug\Exception\ContextErrorException;
8 7
 use Symfony\Component\Routing\Exception\InvalidParameterException;
9 8
 use Symfony\Component\HttpFoundation\Request;
10 9
 
Please login to merge, or discard this patch.
src/Xtools/Project.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/AppBundle/Helper/ApiHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/AppBundle/Controller/TopEditsController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
8 8
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
9 9
 use Symfony\Component\HttpFoundation\Request;
10
-use Symfony\Component\VarDumper\VarDumper;
11 10
 use Xtools\Page;
12 11
 use Xtools\PagesRepository;
13 12
 use Xtools\Project;
Please login to merge, or discard this patch.
src/AppBundle/Helper/LabsHelper.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace AppBundle\Helper;
4 4
 
5
-use Symfony\Component\Config\Definition\Exception\Exception;
6 5
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
7 6
 use Symfony\Component\DependencyInjection\ContainerInterface;
8
-use Symfony\Component\VarDumper\VarDumper;
9 7
 
10 8
 class LabsHelper
11 9
 {
Please login to merge, or discard this patch.
src/Xtools/Edit.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Xtools;
4 4
 
5 5
 use Xtools\User;
6
-use AppBundle\Helper\AutomatedEditsHelper;
7 6
 use DateTime;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
src/AppBundle/Twig/WikiExtension.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Xtools/PagesRepository.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/AppBundle/Controller/ApiController.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -2,13 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace AppBundle\Controller;
4 4
 
5
-use AppBundle\Helper\AutomatedEditsHelper;
6
-use Exception;
7
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
8 5
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
9
-use Symfony\Component\HttpFoundation\Request;
10 6
 use Symfony\Component\HttpFoundation\Response;
11
-use Symfony\Component\Debug\Exception\FatalErrorException;
12 7
 use FOS\RestBundle\Controller\Annotations as Rest;
13 8
 use FOS\RestBundle\Controller\FOSRestController;
14 9
 use FOS\RestBundle\View\View;
Please login to merge, or discard this patch.