@@ -98,7 +98,6 @@ |
||
| 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 |
@@ -37,6 +37,9 @@ |
||
| 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']; |
@@ -12,7 +12,7 @@ |
||
| 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); |
@@ -61,6 +61,6 @@ |
||
| 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 | } |
@@ -60,7 +60,7 @@ |
||
| 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 | } |