Skip to content

Commit

Permalink
Scrutinizer Auto-Fixes
Browse files Browse the repository at this point in the history
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
  • Loading branch information
scrutinizer-auto-fixer committed Jan 20, 2017
1 parent 64d7240 commit 783d0df
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion application/controllers/RegisterController.php
Expand Up @@ -443,7 +443,7 @@ public function getExtraAttributeInfo($iSurveyId)
/**
* Get the date if survey is future
* @param $iSurveyId
* @return localized date
* @return null|string date
*/
public function getStartDate($iSurveyId){
$aSurveyInfo=getSurveyInfo($iSurveyId,Yii::app()->language);
Expand Down
4 changes: 2 additions & 2 deletions application/controllers/admin/tokens.php
Expand Up @@ -649,10 +649,10 @@ public function addnew($iSurveyId)

/**
* Edit Tokens
* @param int $iSurveyID
* @param int $iSurveyId
* @param int $iTokenId
* @param boolean $ajax
* @return void
* @return false|null
* @todo When is this function used without Ajax?
*/
public function edit($iSurveyId, $iTokenId, $ajax = false)
Expand Down
1 change: 1 addition & 0 deletions application/helpers/expressions/em_core_helper.php
Expand Up @@ -1949,6 +1949,7 @@ public function sProcessStringContainingExpressionsHelper($src, $questionNum, $s

/**
* If the equation contains refernece to this, expand to comma separated list if needed.
* @param string $src
*/
function ExpandThisVar($src)
{
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/remotecontrol/remotecontrol_handle.php
Expand Up @@ -2155,7 +2155,7 @@ public function mail_registered_participants($sSessionKey, $iSurveyID, $override
* @access public
* @param string $sSessionKey Auth credentials
* @param int $iSurveyID ID of the survey that participants belong
* @param array $aTokenIDs Ids of the participant to invite
* @param array $aTokenIds Ids of the participant to invite
* @param bool $bEmail Send only pending invites (TRUE) or resend invites only (FALSE)
* @return array Result of the action
*/
Expand Down
2 changes: 1 addition & 1 deletion application/libraries/PluginManager/LimesurveyApi.php
Expand Up @@ -318,7 +318,7 @@ public function getUserByName($username)
/**
* Get the user object for a given email
*
* @param string $username
* @param string|null $email
* @return User|null Returns the user, or null when not found
*/
public function getUserByEmail($email)
Expand Down
2 changes: 1 addition & 1 deletion application/models/Question.php
Expand Up @@ -828,7 +828,7 @@ public function getOtherIcon()

/**
* Get an new title/code for a question
* @param integer|string $index base for question code (exemple : inde of question when survey import)
* @param integer $index base for question code (exemple : inde of question when survey import)
* @return string|null : new title, null if impossible
*/
public function getNewTitle($index=0)
Expand Down
4 changes: 4 additions & 0 deletions application/models/SurveyLink.php
Expand Up @@ -75,6 +75,10 @@ function getLinkInfo($participantid)
*
*
* */

/**
* @param integer $iSurveyId
*/
function rebuildLinksFromTokenTable($iSurveyId)
{
$this->deleteLinksBySurvey($iSurveyId);
Expand Down

0 comments on commit 783d0df

Please sign in to comment.