Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #256 from midasplatform/analysis-z42xmk
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
mgrauer authored Aug 3, 2016
2 parents 29adfad + 953bf4c commit 60decaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/tracker/controllers/components/ApiComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public function submissionValidate($args)
foreach ($populatedMetricUnassigned as $key => $unassignedValue) {
if (isset($metric->$key)) {
$populatedMetric[$key] = $metric->$key;
} elseif(isset($defaults->$key)) {
} elseif (isset($defaults->$key)) {
$populatedMetric[$key] = $defaults->$key;
} else {
$populatedMetric[$key] = $unassignedValue;
Expand All @@ -455,6 +455,7 @@ public function submissionValidate($args)
$populatedMetric['lower_is_better'] =
$populatedMetric['warning'] < $populatedMetric['fail'];
}

return $populatedMetric;
};

Expand Down

0 comments on commit 60decaa

Please sign in to comment.