Completed
Pull Request — master (#156)
by MusikAnimal
06:11
created
src/Xtools/Repository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         // $tableExtension in order to generate the new table name
195 195
         if ($this->isLabs() && $tableExtension !== null) {
196 196
             $mapped = true;
197
-            $tableName = $tableName . '_' . $tableExtension;
197
+            $tableName = $tableName.'_'.$tableExtension;
198 198
         } elseif ($this->container->hasParameter("app.table.$tableName")) {
199 199
             // Use the table specified in the table mapping configuration, if present.
200 200
             $mapped = true;
@@ -303,11 +303,11 @@  discard block
 block discarded – undo
303 303
         $datesConditions = '';
304 304
         if (false !== $start) {
305 305
             // Convert to YYYYMMDDHHMMSS. *who in the world thought of having time in BLOB of this format ;-;*
306
-            $start = date('Ymd', $start) . '000000';
306
+            $start = date('Ymd', $start).'000000';
307 307
             $datesConditions .= " AND {$tableAlias}{$field} > '$start'";
308 308
         }
309 309
         if (false !== $end) {
310
-            $end = date('Ymd', $end) . '235959';
310
+            $end = date('Ymd', $end).'235959';
311 311
             $datesConditions .= " AND {$tableAlias}{$field} < '$end'";
312 312
         }
313 313
 
Please login to merge, or discard this patch.
src/Xtools/ArticleInfoRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $datesConditions = $this->getDateConditions($start, $end);
30 30
 
31 31
         $sql = "SELECT COUNT(rev_user_text) AS count, rev_user_text AS username, ug_group AS current
32
-                FROM " . $project->getTableName('revision') . "
32
+                FROM " . $project->getTableName('revision')."
33 33
                 LEFT JOIN $userGroupsTable ON rev_user = ug_user
34 34
                 LEFT JOIN $userFormerGroupsTable ON rev_user = ufg_user
35 35
                 WHERE rev_page = :pageId AND (ug_group = 'bot' OR ufg_group = 'bot') $datesConditions
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $sql = "SELECT log_action, log_type, log_timestamp AS 'timestamp'
58 58
                 FROM $loggingTable
59
-                WHERE log_namespace = '" . $page->getNamespace() . "'
59
+                WHERE log_namespace = '".$page->getNamespace()."'
60 60
                 AND log_title = :title AND log_timestamp > 1 $datesConditions
61 61
                 AND log_type IN ('delete', 'move', 'protect', 'stable')";
62 62
         $title = str_replace(' ', '_', $page->getTitle());
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
         $projectLang = $page->getProject()->getLang();
81 81
 
82
-        $url = "https://api.wikiwho.net/$projectLang/api/v1.0.0-beta/rev_content/" .
82
+        $url = "https://api.wikiwho.net/$projectLang/api/v1.0.0-beta/rev_content/".
83 83
             "$title/?o_rev_id=false&editor=true&token_id=false&out=false&in=false";
84 84
 
85 85
         $res = $client->request('GET', $url, ['http_errors' => false]);
Please login to merge, or discard this patch.