Completed
Pull Request — master (#26)
by Sam
02:44
created
src/AppBundle/Controller/TopEditsController.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,6 @@
 block discarded – undo
98 98
 
99 99
     /**
100 100
      * List top edits by this user for all pages in a particular namespace.
101
-     * @param string $username
102 101
      * @param string $project
103 102
      * @param integer $namespace
104 103
      * @return \Symfony\Component\HttpFoundation\Response
Please login to merge, or discard this patch.
src/Xtools/Project.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@
 block discarded – undo
37 37
         return $this->getDatabaseName();
38 38
     }
39 39
 
40
+    /**
41
+     * @return string
42
+     */
40 43
     public function getDatabaseName()
41 44
     {
42 45
         return $this->getMetadata()['dbname'];
Please login to merge, or discard this patch.
src/Xtools/UserRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function getId($databaseName, $username)
14 14
     {
15
-        $userTable = $this->getTableName( $databaseName,'user');
15
+        $userTable = $this->getTableName($databaseName, 'user');
16 16
         $sql = "SELECT user_id FROM $userTable WHERE user_name = :username LIMIT 1";
17 17
         $resultQuery = $this->projectsConnection->prepare($sql);
18 18
         $resultQuery->bindParam("username", $username);
Please login to merge, or discard this patch.
src/Xtools/User.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,6 +61,6 @@
 block discarded – undo
61 61
     public function userRightsUrl(Project $project)
62 62
     {
63 63
         return $project->getUrl() . $project->getScriptPath() . "?title=Special:UserRights&user=" .
64
-               $this->getUsername();
64
+                $this->getUsername();
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     public function userRightsUrl(Project $project)
62 62
     {
63
-        return $project->getUrl() . $project->getScriptPath() . "?title=Special:UserRights&user=" .
63
+        return $project->getUrl().$project->getScriptPath()."?title=Special:UserRights&user=".
64 64
                $this->getUsername();
65 65
     }
66 66
 }
Please login to merge, or discard this patch.