Skip to content

Commit

Permalink
Dev: make scrutinizer happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Nov 15, 2018
1 parent 3579c93 commit 6516f88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions application/models/LSActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,12 @@ public function deleteAllByAttributes($attributes, $condition = '', $params = ar
$modelEventName = get_class($this);
$eventParams = array();
if(is_subclass_of($this,'Dynamic')) {
/** @scrutinizer ignore-call since we test if exist by subclass */
$eventParams['dynamicId'] = $this->getDynamicId();
$modelEventName = get_parent_class($this);
}
$this->dispatchPluginModelEvent('before'.$modelEventName.'DeleteMany', $criteria,$eventParams);
$this->dispatchPluginModelEvent('beforeModelDeleteMany', $criteria,$eventParams);
$this->/** @scrutinizer ignore-call */dispatchPluginModelEvent('before'.$modelEventName.'DeleteMany', $criteria,$eventParams);
$this->/** @scrutinizer ignore-call */dispatchPluginModelEvent('beforeModelDeleteMany', $criteria,$eventParams);
return parent::deleteAllByAttributes(array(), $criteria, array());
}

Expand Down
4 changes: 2 additions & 2 deletions application/models/TokenDynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public function beforeSave()

/**
* @param integer $tokenid
* @return boolean
* @return integer the number of rows deleted
*/
public function deleteToken($tokenid)
{
Expand All @@ -452,7 +452,7 @@ public function deleteToken($tokenid)

/**
* @param integer[] $iTokenIds
* @return integer
* @return integer the number of rows deleted
*/
public function deleteRecords($iTokenIds)
{
Expand Down

0 comments on commit 6516f88

Please sign in to comment.