@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | $counts = $counts[$this->namespace]; |
| 320 | 320 | $this->addFlash( |
| 321 | 321 | 'warning', |
| 322 | - 'This API endpoint will soon always group results by namespace, even if a specific namespace ' . |
|
| 322 | + 'This API endpoint will soon always group results by namespace, even if a specific namespace '. |
|
| 323 | 323 | 'was provided. See https://w.wiki/6sMx for more information.' |
| 324 | 324 | ); |
| 325 | 325 | } |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | |
| 366 | 366 | $this->addFlash( |
| 367 | 367 | 'warning', |
| 368 | - 'This API endpoint will soon have a different response format. ' . |
|
| 368 | + 'This API endpoint will soon have a different response format. '. |
|
| 369 | 369 | 'See https://w.wiki/6sMx for more information.' |
| 370 | 370 | ); |
| 371 | 371 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | // Send all to the template. |
| 176 | 176 | return $this->getFormattedResponse('topedits/result_article', [ |
| 177 | 177 | 'xtPage' => 'TopEdits', |
| 178 | - 'xtTitle' => $this->user->getUsername() . ' - ' . $this->page->getTitle(), |
|
| 178 | + 'xtTitle' => $this->user->getUsername().' - '.$this->page->getTitle(), |
|
| 179 | 179 | 'te' => $topEdits, |
| 180 | 180 | ]); |
| 181 | 181 | } |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | |
| 241 | 241 | $this->addFlash( |
| 242 | 242 | 'warning', |
| 243 | - 'This API endpoint will soon have a different response format. ' . |
|
| 243 | + 'This API endpoint will soon have a different response format. '. |
|
| 244 | 244 | 'See https://w.wiki/6sMx for more information.' |
| 245 | 245 | ); |
| 246 | 246 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | $actions = is_array($actionsQuery) ? $actionsQuery : explode('|', $actionsQuery); |
| 143 | 143 | |
| 144 | 144 | // Filter out any invalid section IDs. |
| 145 | - $actions = array_filter($actions, function ($action) use ($group) { |
|
| 145 | + $actions = array_filter($actions, function($action) use ($group) { |
|
| 146 | 146 | return in_array($action, $this->getActionNames($group)); |
| 147 | 147 | }); |
| 148 | 148 | |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | if (0 === preg_match('/\/api\/project\/(admin|patroller|steward)_groups/', $this->request->getRequestUri())) { |
| 248 | 248 | $this->addFlash( |
| 249 | 249 | 'warning', |
| 250 | - 'This API endpoint will soon be removed. Use /api/admin_groups, /api/patroller_groups ' . |
|
| 250 | + 'This API endpoint will soon be removed. Use /api/admin_groups, /api/patroller_groups '. |
|
| 251 | 251 | 'and /api/steward_groups instead. See https://w.wiki/6sMx for more information.' |
| 252 | 252 | ); |
| 253 | 253 | } |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | if ('/api/articleinfo' === substr($this->request->getRequestUri(), 0, 16)) { |
| 219 | 219 | $this->addFlash( |
| 220 | 220 | 'warning', |
| 221 | - 'This endpoint will soon be removed. Use /api/page/articleinfo instead. ' . |
|
| 221 | + 'This endpoint will soon be removed. Use /api/page/articleinfo instead. '. |
|
| 222 | 222 | 'See https://w.wiki/6sMx for more information.' |
| 223 | 223 | ); |
| 224 | 224 | } |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | $responseCode = Response::HTTP_OK; |
| 288 | 288 | $this->recordApiUsage('page/prose'); |
| 289 | 289 | $this->setupArticleInfo($articleInfoRepo, $autoEditsHelper); |
| 290 | - $this->addFlash('info', 'The algorithm used by this API has recently changed. ' . |
|
| 290 | + $this->addFlash('info', 'The algorithm used by this API has recently changed. '. |
|
| 291 | 291 | 'See https://www.mediawiki.org/wiki/XTools/Page_History#Prose for details.'); |
| 292 | 292 | $ret = $this->articleInfo->getProseStats(); |
| 293 | 293 | if (null === $ret) { |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | |
| 316 | 316 | $this->addFlash( |
| 317 | 317 | 'warning', |
| 318 | - 'This API endpoint will soon have results nested under the \'pages\' property. ' . |
|
| 318 | + 'This API endpoint will soon have results nested under the \'pages\' property. '. |
|
| 319 | 319 | 'See https://w.wiki/6sMx for more information.' |
| 320 | 320 | ); |
| 321 | 321 | |
@@ -244,13 +244,13 @@ discard block |
||
| 244 | 244 | if ('/api/user/' === substr($this->request->getRequestUri(), 0, 10)) { |
| 245 | 245 | $this->addFlash( |
| 246 | 246 | 'warning', |
| 247 | - 'This endpoint will soon be removed. Use /api/project/automated_tools instead. ' . |
|
| 247 | + 'This endpoint will soon be removed. Use /api/project/automated_tools instead. '. |
|
| 248 | 248 | 'See https://w.wiki/6sMx for more information.' |
| 249 | 249 | ); |
| 250 | 250 | } |
| 251 | 251 | $this->addFlash( |
| 252 | 252 | 'warning', |
| 253 | - 'This API endpoint will soon have results nested under the \'tools\' property. ' . |
|
| 253 | + 'This API endpoint will soon have results nested under the \'tools\' property. '. |
|
| 254 | 254 | 'See https://w.wiki/6sMx for more information.' |
| 255 | 255 | ); |
| 256 | 256 | return $this->getFormattedApiResponse($autoEditsRepo->getTools($this->project)); |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | 'total_editcount' => $this->autoEdits->getEditCount(), |
| 287 | 287 | 'automated_editcount' => $this->autoEdits->getAutomatedCount(), |
| 288 | 288 | ]; |
| 289 | - $ret['nonautomated_editcount'] = $ret['total_editcount'] - $ret['automated_editcount']; |
|
| 289 | + $ret['nonautomated_editcount'] = $ret['total_editcount']-$ret['automated_editcount']; |
|
| 290 | 290 | |
| 291 | 291 | if (isset($this->params['tools'])) { |
| 292 | 292 | $tools = $this->autoEdits->getToolCounts(); |