File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Expand file tree Collapse file tree 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.
4141 two strings are the same. `AbstractRenderer::getResultForIdenticals()`
4242 returns an empty string by default.
4343
44- - Now a `Renderer` should implement `protected function renderWoker (Differ $differ): string`
44+ - Now a `Renderer` should implement `protected function renderWorker (Differ $differ): string`
4545 rather than the previous `public function render(): string`. Note that
4646 `$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
139139 // the "no difference" situation may happen frequently
140140 return $ differ ->getOldNewComparison () === 0
141141 ? $ this ->getResultForIdenticals ()
142- : $ this ->renderWoker ($ differ );
142+ : $ this ->renderWorker ($ differ );
143143 }
144144
145145 /**
146146 * {@inheritdoc}
147147 */
148148 final public function renderArray (array $ differArray ): string
149149 {
150- return $ this ->renderArrayWoker ($ differArray );
150+ return $ this ->renderArrayWorker ($ differArray );
151151 }
152152
153153 /**
154154 * The real worker for self::render().
155155 *
156156 * @param Differ $differ the differ object
157157 */
158- abstract protected function renderWoker (Differ $ differ ): string ;
158+ abstract protected function renderWorker (Differ $ differ ): string ;
159159
160160 /**
161161 * The real worker for self::renderArray().
162162 *
163163 * @param array $differArray the differ array
164164 */
165- abstract protected function renderArrayWoker (array $ differArray ): string ;
165+ abstract protected function renderArrayWorker (array $ differArray ): string ;
166166
167167 /**
168168 * Update the Language object.
Original file line number Diff line number Diff line change @@ -130,15 +130,15 @@ public function getChanges(Differ $differ): array
130130 /**
131131 * {@inheritdoc}
132132 */
133- protected function renderWoker (Differ $ differ ): string
133+ protected function renderWorker (Differ $ differ ): string
134134 {
135135 return $ this ->redererChanges ($ this ->getChanges ($ differ ));
136136 }
137137
138138 /**
139139 * {@inheritdoc}
140140 */
141- protected function renderArrayWoker (array $ differArray ): string
141+ protected function renderArrayWorker (array $ differArray ): string
142142 {
143143 return $ this ->redererChanges ($ this ->ensureChangesUseIntTag ($ differArray ));
144144 }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function getResultForIdenticalsDefault(): string
2828 /**
2929 * {@inheritdoc}
3030 */
31- public function renderArrayWoker (array $ differArray ): string
31+ protected function renderArrayWorker (array $ differArray ): string
3232 {
3333 throw new UnsupportedFunctionException (__METHOD__ );
3434
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ final class Context extends AbstractText
3535 /**
3636 * {@inheritdoc}
3737 */
38- protected function renderWoker (Differ $ differ ): string
38+ protected function renderWorker (Differ $ differ ): string
3939 {
4040 $ ret = '' ;
4141
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ final class Unified extends AbstractText
2525 /**
2626 * {@inheritdoc}
2727 */
28- protected function renderWoker (Differ $ differ ): string
28+ protected function renderWorker (Differ $ differ ): string
2929 {
3030 $ ret = '' ;
3131
You can’t perform that action at this time.
0 commit comments