We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eae61dd commit 702d593Copy full SHA for 702d593
1 file changed
app/WikiDailyMetrics.php
@@ -25,5 +25,19 @@ class WikiDailyMetrics extends Model
25
'is_deleted',
26
];
27
28
+ // list of properties which are actual wiki metrics
29
+ static public $metricNames = [
30
+ 'pages',
31
+ 'is_deleted',
32
+ ];
33
+
34
+ public function areMetricsEqual(WikiDailyMetrics $wikiDailyMetrics) {
35
36
+ foreach(self::$metricNames as $field) {
37
+ if ($this->$field !== $wikiDailyMetrics->$field) {
38
+ return false;
39
+ }
40
41
+ return true;
42
43
}
0 commit comments