@@ -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 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | public function getAll() |
12 | 12 | { |
13 | 13 | $wikiQuery = $this->metaConnection->createQueryBuilder(); |
14 | - $wikiQuery->select([ 'dbname', 'name', 'url' ])->from('wiki'); |
|
14 | + $wikiQuery->select(['dbname', 'name', 'url'])->from('wiki'); |
|
15 | 15 | return $wikiQuery->execute()->fetchAll(); |
16 | 16 | } |
17 | 17 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | { |
25 | 25 | $wikiQuery = $this->metaConnection->createQueryBuilder(); |
26 | 26 | $wikiQuery |
27 | - ->select([ 'dbname', 'name', 'url' ]) |
|
27 | + ->select(['dbname', 'name', 'url']) |
|
28 | 28 | ->from('wiki') |
29 | 29 | ->where($wikiQuery->expr()->eq('dbname', ':project')) |
30 | 30 | // The meta database will have the project's URL stored as https://en.wikipedia.org |