@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $this->dbName = $dbName; |
| 72 | 72 | $this->url = $url; |
| 73 | 73 | |
| 74 | - return [ 'dbName' => $dbName, 'wikiName' => $wikiName, 'url' => $url, 'lang' => $lang ]; |
|
| 74 | + return ['dbName' => $dbName, 'wikiName' => $wikiName, 'url' => $url, 'lang' => $lang]; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | // Create the query we're going to run against the meta database |
| 100 | 100 | $wikiQuery = $this->client->createQueryBuilder(); |
| 101 | 101 | $wikiQuery |
| 102 | - ->select([ 'dbname', 'name', 'url', 'lang' ]) |
|
| 102 | + ->select(['dbname', 'name', 'url', 'lang']) |
|
| 103 | 103 | ->from('wiki') |
| 104 | 104 | ->where($wikiQuery->expr()->eq('dbname', ':project')) |
| 105 | 105 | // The meta database will have the project's URL stored as https://en.wikipedia.org |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | public function allProjects() |
| 150 | 150 | { |
| 151 | 151 | $wikiQuery = $this->client->createQueryBuilder(); |
| 152 | - $wikiQuery->select([ 'dbName', 'name', 'url' ])->from('wiki'); |
|
| 152 | + $wikiQuery->select(['dbName', 'name', 'url'])->from('wiki'); |
|
| 153 | 153 | $stmt = $wikiQuery->execute(); |
| 154 | 154 | $out = $stmt->fetchAll(); |
| 155 | 155 | return $out; |