Commit 97af2dbe by Scott

Fix trailing whitespace, add PHPCS rule

parent 47ad5a8a
......@@ -38,7 +38,7 @@ class Q2A_Recalc_CacheClearProcess extends Q2A_Recalc_AbstractStep
$this->state->transition('docacheclear_complete');
return false;
}
$deleted = $cacheDriver->clear($limit, $this->state->next, ($this->state->operation === 'docachetrim_process'));
$this->state->done += $deleted;
$this->state->next += $limit - $deleted; // skip files that weren't deleted on next iteration
......
......@@ -36,7 +36,7 @@ class Q2A_Recalc_DeleteHiddenAnswers extends Q2A_Recalc_AbstractStep
$this->state->transition('dodeletehidden_questions');
return false;
}
require_once QA_INCLUDE_DIR . 'app/posts.php';
$postid = $posts[0];
......
......@@ -36,7 +36,7 @@ class Q2A_Recalc_ReindexContentPageReindex extends Q2A_Recalc_AbstractStep
$this->state->transition('doreindexcontent_postcount');
return false;
}
require_once QA_INCLUDE_DIR . 'app/format.php';
$lastpageid = max(array_keys($pages));
......
......@@ -37,4 +37,10 @@
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="false"/>
</properties>
</rule>
</ruleset>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment