Completed
Pull Request — master (#32)
by Matthew
03:21
created
src/AppBundle/Helper/LabsHelper.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Symfony\Component\Config\Definition\Exception\Exception;
6 6
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
7 7
 use Symfony\Component\DependencyInjection\ContainerInterface;
8
-use Symfony\Component\VarDumper\VarDumper;
9 8
 
10 9
 class LabsHelper
11 10
 {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         // Create the query we're going to run against the meta database
110 110
         $wikiQuery = $this->client->createQueryBuilder();
111 111
         $wikiQuery
112
-            ->select([ 'dbname', 'name', 'url', 'lang' ])
112
+            ->select(['dbname', 'name', 'url', 'lang'])
113 113
             ->from('wiki')
114 114
             ->where($wikiQuery->expr()->eq('dbname', ':project'))
115 115
             // The meta database will have the project's URL stored as https://en.wikipedia.org
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     public function allProjects()
161 161
     {
162 162
         $wikiQuery = $this->client->createQueryBuilder();
163
-        $wikiQuery->select([ 'dbName', 'name', 'url' ])->from('wiki');
163
+        $wikiQuery->select(['dbName', 'name', 'url'])->from('wiki');
164 164
         $stmt = $wikiQuery->execute();
165 165
         $out = $stmt->fetchAll();
166 166
         return $out;
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         // $table_extension in order to generate the new table name
185 185
         if ($this->isLabs() && $table_extension !== null)
186 186
         {
187
-            $table = $table . "_" . $table_extension;
187
+            $table = $table."_".$table_extension;
188 188
         }
189 189
 
190 190
         // Use the table specified in the table mapping configuration, if present.
Please login to merge, or discard this patch.