Skip to content

Commit 6a5cd7b

Browse files
committed
$ composer fix
Signed-off-by: Jack Cherng <[email protected]>
1 parent d69a153 commit 6a5cd7b

15 files changed

+2
-110
lines changed

Diff for: src/DiffHelper.php

-6
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ private function __construct()
1818

1919
/**
2020
* Get the absolute path of the project root directory.
21-
*
22-
* @return string
2321
*/
2422
public static function getProjectDirectory(): string
2523
{
@@ -30,8 +28,6 @@ public static function getProjectDirectory(): string
3028

3129
/**
3230
* Get the information about available renderers.
33-
*
34-
* @return array
3531
*/
3632
public static function getRenderersInfo(): array
3733
{
@@ -92,8 +88,6 @@ public static function getAvailableRenderers(): array
9288
*
9389
* @throws \LogicException path is a directory
9490
* @throws \RuntimeException path cannot be opened
95-
*
96-
* @return string
9791
*/
9892
public static function getStyleSheet(): string
9993
{

Diff for: src/Differ.php

-16
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ public function __construct(array $old, array $new, array $options = [])
9090
*
9191
* @param string[] $old the old
9292
* @param string[] $new the new
93-
*
94-
* @return self
9593
*/
9694
public function setOldNew(array $old, array $new): self
9795
{
@@ -102,8 +100,6 @@ public function setOldNew(array $old, array $new): self
102100
* Set old.
103101
*
104102
* @param string[] $old the old
105-
*
106-
* @return self
107103
*/
108104
public function setOld(array $old): self
109105
{
@@ -119,8 +115,6 @@ public function setOld(array $old): self
119115
* Set new.
120116
*
121117
* @param string[] $new the new
122-
*
123-
* @return self
124118
*/
125119
public function setNew(array $new): self
126120
{
@@ -136,8 +130,6 @@ public function setNew(array $new): self
136130
* Set the options.
137131
*
138132
* @param array $options the options
139-
*
140-
* @return self
141133
*/
142134
public function setOptions(array $options): self
143135
{
@@ -193,8 +185,6 @@ public function getOptions(): array
193185

194186
/**
195187
* Compare the old and the new with the spaceship operator.
196-
*
197-
* @return int
198188
*/
199189
public function getOldNewComparison(): int
200190
{
@@ -203,8 +193,6 @@ public function getOldNewComparison(): int
203193

204194
/**
205195
* Get the singleton.
206-
*
207-
* @return self
208196
*/
209197
public static function getInstance(): self
210198
{
@@ -241,8 +229,6 @@ public function getGroupedOpcodes(): array
241229
* make suer that you will not get a outdated cached value.
242230
*
243231
* @internal
244-
*
245-
* @return self
246232
*/
247233
private function finalize(): self
248234
{
@@ -261,8 +247,6 @@ private function finalize(): self
261247

262248
/**
263249
* Reset cached results.
264-
*
265-
* @return self
266250
*/
267251
private function resetCachedResults(): self
268252
{

Diff for: src/Factory/LineRendererFactory.php

-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ private function __construct()
2828
*
2929
* @param string $type the type
3030
* @param mixed ...$ctorArgs the constructor arguments
31-
*
32-
* @return AbstractLineRenderer
3331
*/
3432
public static function getInstance(string $type, ...$ctorArgs): AbstractLineRenderer
3533
{
@@ -47,8 +45,6 @@ public static function getInstance(string $type, ...$ctorArgs): AbstractLineRend
4745
* @param mixed ...$ctorArgs the constructor arguments
4846
*
4947
* @throws \InvalidArgumentException
50-
*
51-
* @return AbstractLineRenderer
5248
*/
5349
public static function make(string $type, ...$ctorArgs): AbstractLineRenderer
5450
{

Diff for: src/Factory/RendererFactory.php

-6
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ private function __construct()
2828
*
2929
* @param string $renderer the renderer
3030
* @param mixed ...$ctorArgs the constructor arguments
31-
*
32-
* @return AbstractRenderer
3331
*/
3432
public static function getInstance(string $renderer, ...$ctorArgs): AbstractRenderer
3533
{
@@ -47,8 +45,6 @@ public static function getInstance(string $renderer, ...$ctorArgs): AbstractRend
4745
* @param mixed ...$ctorArgs the constructor arguments
4846
*
4947
* @throws \InvalidArgumentException
50-
*
51-
* @return AbstractRenderer
5248
*/
5349
public static function make(string $renderer, ...$ctorArgs): AbstractRenderer
5450
{
@@ -65,8 +61,6 @@ public static function make(string $renderer, ...$ctorArgs): AbstractRenderer
6561
* Resolve the renderer name into a FQCN.
6662
*
6763
* @param string $renderer the renderer
68-
*
69-
* @return null|string
7064
*/
7165
public static function resolveRenderer(string $renderer): ?string
7266
{

Diff for: src/Renderer/AbstractRenderer.php

+1-11
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ public function __construct(array $options = [])
7777
* options.
7878
*
7979
* @param array $options the options
80-
*
81-
* @return self
8280
*/
8381
public function setOptions(array $options): self
8482
{
@@ -118,18 +116,14 @@ public function getResultForIdenticals(): string
118116
$custom = $this->options['resultForIdenticals'];
119117

120118
if (isset($custom) && !\is_string($custom)) {
121-
throw new \InvalidArgumentException(
122-
'renderer option `resultForIdenticals` must be null or string.'
123-
);
119+
throw new \InvalidArgumentException('renderer option `resultForIdenticals` must be null or string.');
124120
}
125121

126122
return $custom ?? $this->getResultForIdenticalsDefault();
127123
}
128124

129125
/**
130126
* Get the renderer default result when the old and the new are the same.
131-
*
132-
* @return string
133127
*/
134128
abstract public function getResultForIdenticalsDefault(): string;
135129

@@ -148,8 +142,6 @@ final public function render(Differ $differ): string
148142
* The real worker for self::render().
149143
*
150144
* @param Differ $differ the differ object
151-
*
152-
* @return string
153145
*/
154146
abstract protected function renderWoker(Differ $differ): string;
155147

@@ -158,8 +150,6 @@ abstract protected function renderWoker(Differ $differ): string;
158150
*
159151
* @param string|string[] $old the old language
160152
* @param string|string[] $new the new language
161-
*
162-
* @return self
163153
*/
164154
protected function updateLanguage($old, $new): self
165155
{

Diff for: src/Renderer/Html/AbstractHtml.php

-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ public function getChanges(Differ $differ): array
135135
* @param string $new the new line
136136
*
137137
* @throws \InvalidArgumentException
138-
*
139-
* @return self
140138
*/
141139
protected function renderChangedExtent(AbstractLineRenderer $lineRenderer, string &$old, string &$new): self
142140
{

Diff for: src/Renderer/Html/Inline.php

-14
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ protected function renderWoker(Differ $differ): string
5555

5656
/**
5757
* Renderer the table header.
58-
*
59-
* @return string
6058
*/
6159
protected function renderTableHeader(): string
6260
{
@@ -73,8 +71,6 @@ protected function renderTableHeader(): string
7371

7472
/**
7573
* Renderer the table separate block.
76-
*
77-
* @return string
7874
*/
7975
protected function renderTableSeparateBlock(): string
8076
{
@@ -90,8 +86,6 @@ protected function renderTableSeparateBlock(): string
9086
* Renderer the table block.
9187
*
9288
* @param array $change the change
93-
*
94-
* @return string
9589
*/
9690
protected function renderTableBlock(array $change): string
9791
{
@@ -112,8 +106,6 @@ protected function renderTableBlock(array $change): string
112106
* Renderer the table block: equal.
113107
*
114108
* @param array $change the change
115-
*
116-
* @return string
117109
*/
118110
protected function renderTableEqual(array $change): string
119111
{
@@ -144,8 +136,6 @@ protected function renderTableEqual(array $change): string
144136
* Renderer the table block: insert.
145137
*
146138
* @param array $change the change
147-
*
148-
* @return string
149139
*/
150140
protected function renderTableInsert(array $change): string
151141
{
@@ -170,8 +160,6 @@ protected function renderTableInsert(array $change): string
170160
* Renderer the table block: delete.
171161
*
172162
* @param array $change the change
173-
*
174-
* @return string
175163
*/
176164
protected function renderTableDelete(array $change): string
177165
{
@@ -196,8 +184,6 @@ protected function renderTableDelete(array $change): string
196184
* Renderer the table block: replace.
197185
*
198186
* @param array $change the change
199-
*
200-
* @return string
201187
*/
202188
protected function renderTableReplace(array $change): string
203189
{

Diff for: src/Renderer/Html/LineRenderer/AbstractLineRenderer.php

-4
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ public function __construct(array $differOptions, array $rendererOptions)
4545
* Set the differ options.
4646
*
4747
* @param array $differOptions the differ options
48-
*
49-
* @return self
5048
*/
5149
public function setDifferOptions(array $differOptions): self
5250
{
@@ -60,8 +58,6 @@ public function setDifferOptions(array $differOptions): self
6058
* Set the renderer options.
6159
*
6260
* @param array $rendererOptions the renderer options
63-
*
64-
* @return self
6561
*/
6662
public function setRendererOptions(array $rendererOptions): self
6763
{

Diff for: src/Renderer/Html/LineRenderer/LineRendererInterface.php

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ interface LineRendererInterface
1313
*
1414
* @param MbString $mbOld the old megabytes line
1515
* @param MbString $mbNew the new megabytes line
16-
*
17-
* @return self
1816
*/
1917
public function render(MbString $mbOld, MbString $mbNew): self;
2018
}

Diff for: src/Renderer/Html/SideBySide.php

-14
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ protected function renderWoker(Differ $differ): string
5555

5656
/**
5757
* Renderer the table header.
58-
*
59-
* @return string
6058
*/
6159
protected function renderTableHeader(): string
6260
{
@@ -71,8 +69,6 @@ protected function renderTableHeader(): string
7169

7270
/**
7371
* Renderer the table separate block.
74-
*
75-
* @return string
7672
*/
7773
protected function renderTableSeparateBlock(): string
7874
{
@@ -88,8 +84,6 @@ protected function renderTableSeparateBlock(): string
8884
* Renderer the table block.
8985
*
9086
* @param array $change the change
91-
*
92-
* @return string
9387
*/
9488
protected function renderTableBlock(array $change): string
9589
{
@@ -110,8 +104,6 @@ protected function renderTableBlock(array $change): string
110104
* Renderer the table block: equal.
111105
*
112106
* @param array $change the change
113-
*
114-
* @return string
115107
*/
116108
protected function renderTableEqual(array $change): string
117109
{
@@ -142,8 +134,6 @@ protected function renderTableEqual(array $change): string
142134
* Renderer the table block: insert.
143135
*
144136
* @param array $change the change
145-
*
146-
* @return string
147137
*/
148138
protected function renderTableInsert(array $change): string
149139
{
@@ -168,8 +158,6 @@ protected function renderTableInsert(array $change): string
168158
* Renderer the table block: delete.
169159
*
170160
* @param array $change the change
171-
*
172-
* @return string
173161
*/
174162
protected function renderTableDelete(array $change): string
175163
{
@@ -194,8 +182,6 @@ protected function renderTableDelete(array $change): string
194182
* Renderer the table block: replace.
195183
*
196184
* @param array $change the change
197-
*
198-
* @return string
199185
*/
200186
protected function renderTableReplace(array $change): string
201187
{

Diff for: src/Renderer/RendererInterface.php

-4
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,13 @@ interface RendererInterface
1313
{
1414
/**
1515
* Get the renderer result when the old and the new are the same.
16-
*
17-
* @return string
1816
*/
1917
public function getResultForIdenticals(): string;
2018

2119
/**
2220
* Render the differ and return the result.
2321
*
2422
* @param Differ $differ the Differ object to be rendered
25-
*
26-
* @return string
2723
*/
2824
public function render(Differ $differ): string;
2925
}

0 commit comments

Comments
 (0)