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 3
3
on :
4
4
push :
5
5
branches : [ main ]
6
+ pull_request :
6
7
7
8
concurrency :
8
9
group : ${{ github.workflow }}-${{ github.ref }}
Original file line number Diff line number Diff line change 4
4
5
5
namespace TicketSwap \PHPstanErrorFormatter ;
6
6
7
- use Override ;
8
7
use PHPStan \Command \AnalysisResult ;
9
8
use PHPStan \Command \ErrorFormatter \CiDetectedErrorFormatter ;
10
9
use PHPStan \Command \ErrorFormatter \ErrorFormatter ;
13
12
14
13
final readonly class TicketSwapErrorFormatter implements ErrorFormatter
15
14
{
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" ;
22
21
23
22
private string $ linkFormat ;
24
23
@@ -40,7 +39,6 @@ public static function getLinkFormatFromEnv() : string
40
39
};
41
40
}
42
41
43
- #[Override]
44
42
public function formatErrors (AnalysisResult $ analysisResult , Output $ output ) : int
45
43
{
46
44
if (! $ analysisResult ->hasErrors ()) {
You can’t perform that action at this time.
0 commit comments