File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 33on :
44 push :
55 branches : [ main ]
6+ pull_request :
67
78concurrency :
89 group : ${{ github.workflow }}-${{ github.ref }}
Original file line number Diff line number Diff line change 44
55namespace TicketSwap \PHPstanErrorFormatter ;
66
7- use Override ;
87use PHPStan \Command \AnalysisResult ;
98use PHPStan \Command \ErrorFormatter \CiDetectedErrorFormatter ;
109use PHPStan \Command \ErrorFormatter \ErrorFormatter ;
1312
1413final readonly class TicketSwapErrorFormatter implements ErrorFormatter
1514{
16- private const string FORMAT = "{message} \n{links} " ;
17- private const string LINK_FORMAT_DEFAULT = "↳ <href={editorUrl}>{shortPath}:{line}</> \n" ;
18- private const string LINK_FORMAT_GITHUB_ACTIONS = "↳ {relativePath}:{line} \n" ;
19- private const string LINK_FORMAT_WARP = "↳ {relativePath}:{line} \n" ;
20- private const string LINK_FORMAT_PHPSTORM = "↳ file://{absolutePath}:{line} \n" ;
21- private const string LINK_FORMAT_WITHOUT_EDITOR = "↳ {relativePath}:{line} \n" ;
15+ private const FORMAT = "{message} \n{links} " ;
16+ private const LINK_FORMAT_DEFAULT = "↳ <href={editorUrl}>{shortPath}:{line}</> \n" ;
17+ private const LINK_FORMAT_GITHUB_ACTIONS = "↳ {relativePath}:{line} \n" ;
18+ private const LINK_FORMAT_WARP = "↳ {relativePath}:{line} \n" ;
19+ private const LINK_FORMAT_PHPSTORM = "↳ file://{absolutePath}:{line} \n" ;
20+ private const LINK_FORMAT_WITHOUT_EDITOR = "↳ {relativePath}:{line} \n" ;
2221
2322 private string $ linkFormat ;
2423
@@ -40,7 +39,6 @@ public static function getLinkFormatFromEnv() : string
4039 };
4140 }
4241
43- #[Override]
4442 public function formatErrors (AnalysisResult $ analysisResult , Output $ output ) : int
4543 {
4644 if (! $ analysisResult ->hasErrors ()) {
You can’t perform that action at this time.
0 commit comments