@@ -48,9 +48,13 @@ protected function createSimpleReport()
4848 return <<<'JSON'
4949 [{
5050 "description": "some_fixer_name_here",
51- "location.path": "someFile.php",
52- "location.lines.begin": 0,
53- "fingerprint": "ad098ea6ea7a28dd85dfcdfc9e2bded0"
51+ "fingerprint": "ad098ea6ea7a28dd85dfcdfc9e2bded0",
52+ "location": {
53+ "path": "someFile.php",
54+ "lines": {
55+ "begin": 0
56+ }
57+ }
5458 }]
5559JSON;
5660 }
@@ -71,14 +75,22 @@ protected function createWithAppliedFixersReport()
7175 return <<<'JSON'
7276 [{
7377 "description": "some_fixer_name_here_1",
74- "location.path": "someFile.php",
75- "location.lines.begin": 0,
76- "fingerprint": "b74e9385c8ae5b1f575c9c8226c7deff"
78+ "fingerprint": "b74e9385c8ae5b1f575c9c8226c7deff",
79+ "location": {
80+ "path": "someFile.php",
81+ "lines": {
82+ "begin": 0
83+ }
84+ }
7785 },{
7886 "description": "some_fixer_name_here_2",
79- "location.path": "someFile.php",
80- "location.lines.begin": 0,
81- "fingerprint": "acad4672140c737a83c18d1474d84074"
87+ "fingerprint": "acad4672140c737a83c18d1474d84074",
88+ "location": {
89+ "path": "someFile.php",
90+ "lines": {
91+ "begin": 0
92+ }
93+ }
8294 }]
8395JSON;
8496 }
@@ -99,19 +111,31 @@ protected function createComplexReport()
99111 return <<<'JSON'
100112 [{
101113 "description": "some_fixer_name_here_1",
102- "location.path": "someFile.php",
103- "location.lines.begin": 0,
104- "fingerprint": "b74e9385c8ae5b1f575c9c8226c7deff"
114+ "fingerprint": "b74e9385c8ae5b1f575c9c8226c7deff",
115+ "location": {
116+ "path": "someFile.php",
117+ "lines": {
118+ "begin": 0
119+ }
120+ }
105121 },{
106122 "description": "some_fixer_name_here_2",
107- "location.path": "someFile.php",
108- "location.lines.begin": 0,
109- "fingerprint": "acad4672140c737a83c18d1474d84074"
123+ "fingerprint": "acad4672140c737a83c18d1474d84074",
124+ "location": {
125+ "path": "someFile.php",
126+ "lines": {
127+ "begin": 0
128+ }
129+ }
110130 },{
111131 "description": "another_fixer_name_here",
112- "location.path": "anotherFile.php",
113- "location.lines.begin": 0,
114- "fingerprint": "30e86e533dac0f1b93bbc3a55c6908f8"
132+ "fingerprint": "30e86e533dac0f1b93bbc3a55c6908f8",
133+ "location": {
134+ "path": "anotherFile.php",
135+ "lines": {
136+ "begin": 0
137+ }
138+ }
115139 }]
116140JSON;
117141 }
0 commit comments