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