Completed
Push — master ( f77e1c...41d176 )
by MusikAnimal
02:48
created
src/Xtools/User.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $this->getUsername()
90 90
         );
91 91
 
92
-        return (int) $editCount;
92
+        return (int)$editCount;
93 93
     }
94 94
 
95 95
     /**
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function isAnon()
143 143
     {
144
-        return (bool) filter_var($this->username, FILTER_VALIDATE_IP);
144
+        return (bool)filter_var($this->username, FILTER_VALIDATE_IP);
145 145
     }
146 146
 
147 147
     /**
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public function countAutomatedEdits(Project $project, $namespace = 'all', $start = '', $end = '')
206 206
     {
207
-        return (int) $this->getRepository()->countAutomatedEdits($project, $this, $namespace, $start, $end);
207
+        return (int)$this->getRepository()->countAutomatedEdits($project, $this, $namespace, $start, $end);
208 208
     }
209 209
 
210 210
     /**
@@ -236,12 +236,12 @@  discard block
 block discarded – undo
236 236
 
237 237
         $namespaces = $project->getNamespaces();
238 238
 
239
-        return array_map(function ($rev) use ($namespaces) {
239
+        return array_map(function($rev) use ($namespaces) {
240 240
             $pageTitle = $rev['page_title'];
241 241
             $fullPageTitle = '';
242 242
 
243 243
             if ($rev['page_namespace'] !== '0') {
244
-                $fullPageTitle = $namespaces[$rev['page_namespace']] . ":$pageTitle";
244
+                $fullPageTitle = $namespaces[$rev['page_namespace']].":$pageTitle";
245 245
             } else {
246 246
                 $fullPageTitle = $pageTitle;
247 247
             }
@@ -249,12 +249,12 @@  discard block
 block discarded – undo
249 249
             return [
250 250
                 'full_page_title' => $fullPageTitle,
251 251
                 'page_title' => $pageTitle,
252
-                'page_namespace' => (int) $rev['page_namespace'],
253
-                'rev_id' => (int) $rev['rev_id'],
252
+                'page_namespace' => (int)$rev['page_namespace'],
253
+                'rev_id' => (int)$rev['rev_id'],
254 254
                 'timestamp' => DateTime::createFromFormat('YmdHis', $rev['timestamp']),
255
-                'minor' => (bool) $rev['minor'],
256
-                'length' => (int) $rev['length'],
257
-                'length_change' => (int) $rev['length_change'],
255
+                'minor' => (bool)$rev['minor'],
256
+                'length' => (int)$rev['length'],
257
+                'length_change' => (int)$rev['length_change'],
258 258
                 'comment' => $rev['comment'],
259 259
             ];
260 260
         }, $revs);
Please login to merge, or discard this patch.