Skip to content

Commit fac4dae

Browse files
committed
nits
Signed-off-by: Jack Cherng <[email protected]>
1 parent b6fa08d commit fac4dae

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/DiffHelper.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99

1010
final class DiffHelper
1111
{
12+
/**
13+
* The constructor.
14+
*/
15+
private function __construct()
16+
{
17+
}
18+
1219
/**
1320
* Get the information about available templates.
1421
*

src/Utility/ReverseIterator.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@
44

55
namespace Jfcherng\Diff\Utility;
66

7-
use Generator;
8-
97
final class ReverseIterator
108
{
119
const ITERATOR_GET_KEY = 1 << 1;
1210
const ITERATOR_GET_BOTH = 1 << 2;
1311

12+
/**
13+
* The constructor.
14+
*/
15+
private function __construct()
16+
{
17+
}
18+
1419
/**
1520
* Iterate the array reversely.
1621
*
1722
* @param array $array the array
1823
*
19-
* @return Generator
24+
* @return \Generator
2025
*/
21-
public static function fromArray(array $array, int $flags = 0): Generator
26+
public static function fromArray(array $array, int $flags = 0): \Generator
2227
{
2328
// it may worth unrolling if-conditions to out of for-loop
2429
// so it wont have to check multiple if-conditions inside each loop

0 commit comments

Comments
 (0)