Skip to content

Commit 346b14b

Browse files
committed
fixed up ryansmith94 comments on pull request 643.
1 parent a57e63b commit 346b14b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

app/locker/data/dashboards/LrsDashboard.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,27 +55,27 @@ public function actorCount(){
5555
$count_array = ['mbox' => '', 'openid' => '', 'mbox_sha1sum' => '', 'account' => ''];
5656

5757
$count_array['mbox'] = $this->db->statements->aggregate(
58-
array('$match' => $this->getMatch( $this->lrs )),
59-
array('$group' => array('_id' => '$statement.actor.mbox')),
60-
array('$group' => array('_id' => 1, 'count' => array('$sum' => 1)))
61-
);
58+
['$match' => $this->getMatch( $this->lrs )],
59+
['$group' => ['_id' => '$statement.actor.mbox']],
60+
['$group' => ['_id' => 1, 'count' => ['$sum' => 1]]]
61+
);
6262

6363
$count_array['openid'] = $this->db->statements->aggregate(
64-
array('$match' => $this->getMatch( $this->lrs )),
65-
array('$group' => array('_id' => '$statement.actor.openid')),
66-
array('$group' => array('_id' => 1, 'count' => array('$sum' => 1)))
64+
['$match' => $this->getMatch( $this->lrs )],
65+
['$group' => ['_id' => '$statement.actor.openid']],
66+
['$group' => ['_id' => 1, 'count' => ['$sum' => 1]]]
6767
);
6868

6969
$count_array['mbox_sha1sum'] = $this->db->statements->aggregate(
70-
array('$match' => $this->getMatch( $this->lrs )),
71-
array('$group' => array('_id' => '$statement.actor.mbox_sha1sum')),
72-
array('$group' => array('_id' => 1, 'count' => array('$sum' => 1)))
70+
['$match' => $this->getMatch( $this->lrs )],
71+
['$group' => ['_id' => '$statement.actor.mbox_sha1sum']],
72+
['$group' => ['_id' => 1, 'count' => ['$sum' => 1]]]
7373
);
7474

7575
$count_array['account'] = $this->db->statements->aggregate(
76-
array('$match' => $this->getMatch( $this->lrs )),
77-
array('$group' => array('_id' => '$statement.actor.account.name')),
78-
array('$group' => array('_id' => 1, 'count' => array('$sum' => 1)))
76+
['$match' => $this->getMatch( $this->lrs )],
77+
['$group' => ['_id' => ['accountName' => '$statement.actor.account.name', 'accountHomePage' => '$statement.actor.account.homePage']]],
78+
['$group' => ['_id' => 1, 'count' => ['$sum' => 1]]]
7979
);
8080

8181
$summary = 0;

0 commit comments

Comments
 (0)