Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Fixing final nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpatrick committed Oct 1, 2015
1 parent a180d73 commit 2c2dab6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/tracker/models/dao/TrendDao.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
* @method array getScalars()
* @method void setScalars(array $scalarDaos)
* @method void setKeyMetric(int $keyMetric)
* @method int getKeyMetric()
*/
class Tracker_TrendDao extends Tracker_AppDao
{
Expand All @@ -59,10 +60,10 @@ class Tracker_TrendDao extends Tracker_AppDao

/**
* Alias for getKeyMetric.
* @return mixed
* @return bool
*/
public function isKeyMetric()
{
return $this->getKeyMetric();
return (int) $this->getKeyMetric() === 1;
}
}

0 comments on commit 2c2dab6

Please sign in to comment.