You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// anasim analyse type is applied for services Magister and Copyright
195
+
// anasim-premium analyse type is applied for services Magister+ and Copyright+
196
+
$anasim = 'anasim';
197
+
if (isset($dataDocument['analyses']['anasim-premium'])) {
198
+
$anasim = 'anasim-premium';
199
+
if (isset($dataDocument['analyses']['anasim'])) {
200
+
if (isset($dataDocument['analyses']['anasim']['creation_launch_date']) && isset($dataDocument['analyses']['anasim-premium']['creation_launch_date'])) {
201
+
// if the 2 analyses type exist (which could happen technically but would be exceptional) then we present the most recent one.
202
+
if ($dataDocument['analyses']['anasim']['creation_launch_date'] > $dataDocument['analyses']['anasim-premium']['creation_launch_date']) {
203
+
$anasim = 'anasim';
204
+
}
205
+
}
206
+
}
197
207
}
198
-
199
-
if (isset($dataDocument['light_reports']['anasim']['scores']['global_score_percent'])) {
0 commit comments