| @@ -330,9 +330,9 @@ | ||
| 330 | 330 |      { | 
| 331 | 331 | $pageTable = $this->getTableName($project->getDatabaseName(), 'page'); | 
| 332 | 332 | $query = "SELECT page_id " | 
| 333 | - . " FROM $pageTable " | |
| 334 | - . " WHERE page_namespace = :ns AND page_title = :title AND page_len > 0 " | |
| 335 | - . " LIMIT 1"; | |
| 333 | + . " FROM $pageTable " | |
| 334 | + . " WHERE page_namespace = :ns AND page_title = :title AND page_len > 0 " | |
| 335 | + . " LIMIT 1"; | |
| 336 | 336 | $params = [ | 
| 337 | 337 | 'ns' => $namespaceId, | 
| 338 | 338 |              'title' => str_replace(' ', '_', $pageTitle), | 
| @@ -1319,10 +1319,10 @@ | ||
| 1319 | 1319 | // Slice to the top 10. | 
| 1320 | 1320 | $topTenEditorsByAdded = array_keys(array_slice($topTenEditorsByAdded, 0, 10, true)); | 
| 1321 | 1321 | |
| 1322 | - // Get the sum of added text so that we can add in percentages. | |
| 1323 | -         $topTenTotalAdded = array_sum(array_map(function ($editor) { | |
| 1324 | - return $this->editors[$editor]['added']; | |
| 1325 | - }, $topTenEditorsByAdded)); | |
| 1322 | + // Get the sum of added text so that we can add in percentages. | |
| 1323 | +            $topTenTotalAdded = array_sum(array_map(function ($editor) { | |
| 1324 | + return $this->editors[$editor]['added']; | |
| 1325 | + }, $topTenEditorsByAdded)); | |
| 1326 | 1326 | |
| 1327 | 1327 | // Then build a new array of top 10 editors by added text in the data structure needed for the chart. | 
| 1328 | 1328 |          return array_map(function ($editor) use ($topTenTotalAdded) { |