Skip to content

Commit

Permalink
PHP_CodeSniffer cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxsauce committed Feb 8, 2015
1 parent 5c772ef commit 75a8e57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Check/Database/Size.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,14 @@ public function calculateScore() {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
} catch (PDOException $e) {
}
catch (PDOException $e) {
// Error executing the query.
$this->abort = TRUE;
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
}

// Other error.
// Empty database.
$this->abort = TRUE;
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL;
}
Expand Down
2 changes: 2 additions & 0 deletions Check/Insights/Analyze.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public function getResultPass() {
$ret_val .= PHP_EOL . str_repeat(' ', 6) . dt('Detailed results:');
}
$rendered_result_count = 0;
// @codingStandardsIgnoreStart
foreach ($this->registry['json_result']->formattedResults->ruleResults as $resultValues) {
rtrim($ret_val);
// Filter out based on impact threshold.
Expand Down Expand Up @@ -141,6 +142,7 @@ public function getResultPass() {

if (isset($resultValues->urlBlocks)) {
foreach ($resultValues->urlBlocks as $block) {
// @codingStandardsIgnoreEnd
// Header.
if (!isset($block->header->args)) {
$header = google_json_text_replacement($block->header->format);
Expand Down
2 changes: 1 addition & 1 deletion Check/Security/MenuRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public function calculateScore() {
$sql_query .= implode('OR ', $callback_sql);

$result = db_query($sql_query, array(
':callbacks' => array_keys($dangerous_callbacks)
':callbacks' => array_keys($dangerous_callbacks),
));
if (!$result->rowCount()) {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
Expand Down

0 comments on commit 75a8e57

Please sign in to comment.