Skip to content

Commit eae8262

Browse files
committed
Add some @return static
Signed-off-by: Jack Cherng <[email protected]>
1 parent caaaba7 commit eae8262

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/Renderer/AbstractRenderer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public function __construct(array $options = [])
7777
* options.
7878
*
7979
* @param array $options the options
80+
*
81+
* @return static
8082
*/
8183
public function setOptions(array $options): self
8284
{
@@ -150,6 +152,8 @@ abstract protected function renderWoker(Differ $differ): string;
150152
*
151153
* @param string|string[] $old the old language
152154
* @param string|string[] $new the new language
155+
*
156+
* @return static
153157
*/
154158
protected function updateLanguage($old, $new): self
155159
{

src/Renderer/Html/AbstractHtml.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ public function getChanges(Differ $differ): array
135135
* @param string $new the new line
136136
*
137137
* @throws \InvalidArgumentException
138+
*
139+
* @return static
138140
*/
139141
protected function renderChangedExtent(AbstractLineRenderer $lineRenderer, string &$old, string &$new): self
140142
{

src/Renderer/Html/LineRenderer/AbstractLineRenderer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public function __construct(array $differOptions, array $rendererOptions)
4545
* Set the differ options.
4646
*
4747
* @param array $differOptions the differ options
48+
*
49+
* @return static
4850
*/
4951
public function setDifferOptions(array $differOptions): self
5052
{
@@ -58,6 +60,8 @@ public function setDifferOptions(array $differOptions): self
5860
* Set the renderer options.
5961
*
6062
* @param array $rendererOptions the renderer options
63+
*
64+
* @return static
6165
*/
6266
public function setRendererOptions(array $rendererOptions): self
6367
{

src/Renderer/Html/LineRenderer/LineRendererInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ interface LineRendererInterface
1313
*
1414
* @param MbString $mbOld the old megabytes line
1515
* @param MbString $mbNew the new megabytes line
16+
*
17+
* @return static
1618
*/
1719
public function render(MbString $mbOld, MbString $mbNew): self;
1820
}

0 commit comments

Comments
 (0)