Fixes
This commit is contained in:
parent
d46ecce159
commit
d07e98178e
|
@ -202,6 +202,10 @@ class GithubBuild extends RemoteGitBuild
|
|||
$lineStart = null,
|
||||
$lineEnd = null
|
||||
) {
|
||||
$allowCommentCommit = (boolean)Config::getInstance()->get('php-censor.github.comments.commit', false);
|
||||
$allowCommentPullRequest = (boolean)Config::getInstance()->get('php-censor.github.comments.pull_request', false);
|
||||
|
||||
if ($allowCommentCommit || $allowCommentPullRequest) {
|
||||
$diffLineNumber = $this->getDiffLineNumber($builder, $file, $lineStart);
|
||||
|
||||
if (!is_null($diffLineNumber)) {
|
||||
|
@ -224,6 +228,7 @@ class GithubBuild extends RemoteGitBuild
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return parent::reportError($builder, $plugin, $message, $severity, $file, $lineStart, $lineEnd);
|
||||
}
|
||||
|
|
|
@ -145,7 +145,7 @@ class PhpUnit extends Plugin implements ZeroConfigPluginInterface
|
|||
protected function runConfigFile($configFile)
|
||||
{
|
||||
$options = clone $this->options;
|
||||
$buildPath = $this->build->getBuildPath() . DIRECTORY_SEPARATOR;
|
||||
$buildPath = $this->build->getBuildPath();
|
||||
|
||||
// Save the results into a json file
|
||||
$jsonFile = tempnam(RUNTIME_DIR, 'jLog_');
|
||||
|
|
Loading…
Reference in a new issue