@@ -90,20 +90,20 @@ discard block  | 
                                                    ||
| 90 | 90 | |
| 91 | 91 | // MULTIPLIERS (to review)  | 
                                                        
| 92 | 92 | $multipliers = [  | 
                                                        
| 93 | - 'account-age-mult' => 1.25, # 0 if = 365 jours  | 
                                                        |
| 94 | - 'edit-count-mult' => 1.25, # 0 if = 10 000  | 
                                                        |
| 95 | - 'user-page-mult' => 0.1, # 0 if =  | 
                                                        |
| 96 | - 'patrols-mult' => 1, # 0 if =  | 
                                                        |
| 97 | - 'blocks-mult' => 1.4, # 0 if = 10  | 
                                                        |
| 93 | + 'account-age-mult' => 1.25, # 0 if = 365 jours  | 
                                                        |
| 94 | + 'edit-count-mult' => 1.25, # 0 if = 10 000  | 
                                                        |
| 95 | + 'user-page-mult' => 0.1, # 0 if =  | 
                                                        |
| 96 | + 'patrols-mult' => 1, # 0 if =  | 
                                                        |
| 97 | + 'blocks-mult' => 1.4, # 0 if = 10  | 
                                                        |
| 98 | 98 | 'afd-mult' => 1.15,  | 
                                                        
| 99 | - 'recent-activity-mult' => 0.9, # 0 if =  | 
                                                        |
| 99 | + 'recent-activity-mult' => 0.9, # 0 if =  | 
                                                        |
| 100 | 100 | 'aiv-mult' => 1.15,  | 
                                                        
| 101 | - 'edit-summaries-mult' => 0.8, # 0 if =  | 
                                                        |
| 102 | - 'namespaces-mult' => 1.0, # 0 if =  | 
                                                        |
| 103 | - 'pages-created-live-mult' => 1.4, # 0 if =  | 
                                                        |
| 104 | - 'pages-created-deleted-mult' => 1.4, # 0 if =  | 
                                                        |
| 105 | - 'rpp-mult' => 1.15, # 0 if =  | 
                                                        |
| 106 | - 'user-rights-mult' => 0.75, # 0 if =  | 
                                                        |
| 101 | + 'edit-summaries-mult' => 0.8, # 0 if =  | 
                                                        |
| 102 | + 'namespaces-mult' => 1.0, # 0 if =  | 
                                                        |
| 103 | + 'pages-created-live-mult' => 1.4, # 0 if =  | 
                                                        |
| 104 | + 'pages-created-deleted-mult' => 1.4, # 0 if =  | 
                                                        |
| 105 | + 'rpp-mult' => 1.15, # 0 if =  | 
                                                        |
| 106 | + 'user-rights-mult' => 0.75, # 0 if =  | 
                                                        |
| 107 | 107 | ];  | 
                                                        
| 108 | 108 | |
| 109 | 109 | // Grab the connection to the replica database (which is separate from the above)  | 
                                                        
@@ -185,13 +185,13 @@ discard block  | 
                                                    ||
| 185 | 185 | $now = new DateTime();  | 
                                                        
| 186 | 186 | $date = new DateTime($value);  | 
                                                        
| 187 | 187 | $diff = $date->diff($now);  | 
                                                        
| 188 | -                    $formula = 365 * $diff->format('%y') + 30 * $diff->format('%m') + $diff->format('%d'); | 
                                                        |
| 189 | - $value = $formula - 365;  | 
                                                        |
| 188 | +                    $formula = 365 * $diff->format('%y')+30 * $diff->format('%m')+$diff->format('%d'); | 
                                                        |
| 189 | + $value = $formula-365;  | 
                                                        |
| 190 | 190 | |
| 191 | 191 | }  | 
                                                        
| 192 | 192 | }  | 
                                                        
| 193 | 193 | |
| 194 | - $multiplierKey = $row['source'] . '-mult';  | 
                                                        |
| 194 | + $multiplierKey = $row['source'].'-mult';  | 
                                                        |
| 195 | 195 | $multiplier = isset($multipliers[$multiplierKey]) ? $multipliers[$multiplierKey] : 1;  | 
                                                        
| 196 | 196 | $score = max(min($value * $multiplier, 100), -100);  | 
                                                        
| 197 | 197 | $master[$key]['mult'] = $multiplier;  |