File tree 6 files changed +11
-11
lines changed
6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ there is no breaking change for you so you do not have to do anything.
41
41
two strings are the same. `AbstractRenderer::getResultForIdenticals()`
42
42
returns an empty string by default.
43
43
44
- - Now a `Renderer` should implement `protected function renderWoker (Differ $differ): string`
44
+ - Now a `Renderer` should implement `protected function renderWorker (Differ $differ): string`
45
45
rather than the previous `public function render(): string`. Note that
46
46
`$this- >diff` no longer works in `Renderer`s as it is now injected as a
47
- parameter to `Renderer::renderWoker ()`.
47
+ parameter to `Renderer::renderWorker ()`.
Original file line number Diff line number Diff line change @@ -139,30 +139,30 @@ final public function render(Differ $differ): string
139
139
// the "no difference" situation may happen frequently
140
140
return $ differ ->getOldNewComparison () === 0
141
141
? $ this ->getResultForIdenticals ()
142
- : $ this ->renderWoker ($ differ );
142
+ : $ this ->renderWorker ($ differ );
143
143
}
144
144
145
145
/**
146
146
* {@inheritdoc}
147
147
*/
148
148
final public function renderArray (array $ differArray ): string
149
149
{
150
- return $ this ->renderArrayWoker ($ differArray );
150
+ return $ this ->renderArrayWorker ($ differArray );
151
151
}
152
152
153
153
/**
154
154
* The real worker for self::render().
155
155
*
156
156
* @param Differ $differ the differ object
157
157
*/
158
- abstract protected function renderWoker (Differ $ differ ): string ;
158
+ abstract protected function renderWorker (Differ $ differ ): string ;
159
159
160
160
/**
161
161
* The real worker for self::renderArray().
162
162
*
163
163
* @param array $differArray the differ array
164
164
*/
165
- abstract protected function renderArrayWoker (array $ differArray ): string ;
165
+ abstract protected function renderArrayWorker (array $ differArray ): string ;
166
166
167
167
/**
168
168
* Update the Language object.
Original file line number Diff line number Diff line change @@ -130,15 +130,15 @@ public function getChanges(Differ $differ): array
130
130
/**
131
131
* {@inheritdoc}
132
132
*/
133
- protected function renderWoker (Differ $ differ ): string
133
+ protected function renderWorker (Differ $ differ ): string
134
134
{
135
135
return $ this ->redererChanges ($ this ->getChanges ($ differ ));
136
136
}
137
137
138
138
/**
139
139
* {@inheritdoc}
140
140
*/
141
- protected function renderArrayWoker (array $ differArray ): string
141
+ protected function renderArrayWorker (array $ differArray ): string
142
142
{
143
143
return $ this ->redererChanges ($ this ->ensureChangesUseIntTag ($ differArray ));
144
144
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function getResultForIdenticalsDefault(): string
28
28
/**
29
29
* {@inheritdoc}
30
30
*/
31
- public function renderArrayWoker (array $ differArray ): string
31
+ protected function renderArrayWorker (array $ differArray ): string
32
32
{
33
33
throw new UnsupportedFunctionException (__METHOD__ );
34
34
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ final class Context extends AbstractText
35
35
/**
36
36
* {@inheritdoc}
37
37
*/
38
- protected function renderWoker (Differ $ differ ): string
38
+ protected function renderWorker (Differ $ differ ): string
39
39
{
40
40
$ ret = '' ;
41
41
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ final class Unified extends AbstractText
25
25
/**
26
26
* {@inheritdoc}
27
27
*/
28
- protected function renderWoker (Differ $ differ ): string
28
+ protected function renderWorker (Differ $ differ ): string
29
29
{
30
30
$ ret = '' ;
31
31
You can’t perform that action at this time.
0 commit comments