0); if ($command == DIFF_COMMAND && !$workflow->isRawDiffSource()) { $diffID = $workflow->getDiffId(); // When submitting a diff this code path gets executed multiple times in // a row. We only care about the case when ID for the diff is provided // because that's what we need to apply the diff and trigger the tests. if (strlen($diffID) > 0) { assert(is_numeric($diffID)); startTestsInSandcastle(true /* $applyDiff */, $workflow, $diffID); } } } }