Skip to content

Commit

Permalink
Merge branch 'release-1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
corpsee committed Mar 11, 2019
2 parents 3887862 + 183f07a commit 71aedd2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/View/Build/errors.phtml
Expand Up @@ -17,7 +17,13 @@ foreach ($errors as $error):
$link = str_replace('{BASEFILE}', basename($error->getFile()), $linkTemplate);
$link = str_replace('{FILE}', $error->getFile(), $link);
$link = str_replace('{LINE}', $error->getLineStart(), $link);
$link = str_replace('{LINE_END}', $error->getLineEnd(), $link);

if ($error->getLineStart() == $error->getLineEnd() || !$error->getLineEnd()) {
# For Github
$link = str_replace('-L{LINE_END}', '', $link);
} else {
$link = str_replace('{LINE_END}', $error->getLineEnd(), $link);
}
?>
<tr>
<td>
Expand Down

0 comments on commit 71aedd2

Please sign in to comment.