@@ -335,7 +335,7 @@ |
||
| 335 | 335 | 'total_editcount' => $this->autoEdits->getEditCount(), |
| 336 | 336 | 'automated_editcount' => $this->autoEdits->getAutomatedCount(), |
| 337 | 337 | ]; |
| 338 | - $ret['nonautomated_editcount'] = $ret['total_editcount'] - $ret['automated_editcount']; |
|
| 338 | + $ret['nonautomated_editcount'] = $ret['total_editcount']-$ret['automated_editcount']; |
|
| 339 | 339 | |
| 340 | 340 | if ($this->getBoolVal('tools')) { |
| 341 | 341 | $tools = $this->autoEdits->getToolCounts(); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace App\Repository; |
| 6 | 6 | |
@@ -161,10 +161,10 @@ discard block |
||
| 161 | 161 | ])->fetchAllAssociative(); |
| 162 | 162 | |
| 163 | 163 | $logCounts = array_combine( |
| 164 | - array_map(function ($e) { |
|
| 164 | + array_map(function($e) { |
|
| 165 | 165 | return $e['source']; |
| 166 | 166 | }, $results), |
| 167 | - array_map(function ($e) { |
|
| 167 | + array_map(function($e) { |
|
| 168 | 168 | return (int)$e['value']; |
| 169 | 169 | }, $results) |
| 170 | 170 | ); |
@@ -244,10 +244,10 @@ discard block |
||
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | $counts = array_combine( |
| 247 | - array_map(function ($e) { |
|
| 247 | + array_map(function($e) { |
|
| 248 | 248 | return $e['key']; |
| 249 | 249 | }, $results), |
| 250 | - array_map(function ($e) { |
|
| 250 | + array_map(function($e) { |
|
| 251 | 251 | return (int)$e['val']; |
| 252 | 252 | }, $results) |
| 253 | 253 | ); |
@@ -429,9 +429,9 @@ discard block |
||
| 429 | 429 | |
| 430 | 430 | $results = $this->executeProjectsQuery($project, $sql, $params)->fetchAll(); |
| 431 | 431 | |
| 432 | - $namespaceTotals = array_combine(array_map(function ($e) { |
|
| 432 | + $namespaceTotals = array_combine(array_map(function($e) { |
|
| 433 | 433 | return $e['namespace']; |
| 434 | - }, $results), array_map(function ($e) { |
|
| 434 | + }, $results), array_map(function($e) { |
|
| 435 | 435 | return (int)$e['total']; |
| 436 | 436 | }, $results)); |
| 437 | 437 | |