Skip to content

Commit

Permalink
Dev: Code inspection app/models fix param type & closing tags (#820)
Browse files Browse the repository at this point in the history
Dev: Code inspection app/models fix param type
Dev: Code inspection app/models redundant closing tags
  • Loading branch information
TonisOrmisson authored and LouisGac committed Oct 9, 2017
1 parent ea2aca5 commit 703da1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions application/models/ParticipantAttributeName.php
Expand Up @@ -421,20 +421,20 @@ function getAttributesValues($attribute_id = null)
/**
* this is a very specific function used to get the attributes that are
* not present for the participant
* @param integer $attributeid
* @param array $attributeIds
* @return array
*/
function getNotAddedAttributes($attributeid)
function getNotAddedAttributes($attributeIds)
{
$output = array();
$notin=array();
foreach($attributeid as $row) {
foreach($attributeIds as $row) {
$notin[] = $row;
}

$criteria = new CDbCriteria();
$alias = $this->getTableAlias();
$criteria->addNotInCondition("$alias.attribute_id", $attributeid);
$criteria->addNotInCondition("$alias.attribute_id", $attributeIds);
$records = ParticipantAttributeName::model()->with('participant_attribute_names_lang')->findAll($criteria);
foreach($records as $row) { //Iterate through each attribute
$thisname="";
Expand Down
2 changes: 0 additions & 2 deletions application/models/SurveymenuEntryData.php
Expand Up @@ -132,5 +132,3 @@ private function _getValueForLinkData($getDataPair)
}

}

?>
1 change: 0 additions & 1 deletion application/models/behaviors/PluginEventBehavior.php
Expand Up @@ -57,4 +57,3 @@ public function dispatchPluginModelEvent($sEventName, $criteria = null)
return App()->getPluginManager()->dispatchEvent($oPluginEvent);
}
}
?>

0 comments on commit 703da1d

Please sign in to comment.