File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
final class DiffHelper
11
11
{
12
+ /**
13
+ * The constructor.
14
+ */
15
+ private function __construct ()
16
+ {
17
+ }
18
+
12
19
/**
13
20
* Get the information about available templates.
14
21
*
Original file line number Diff line number Diff line change 4
4
5
5
namespace Jfcherng \Diff \Utility ;
6
6
7
- use Generator ;
8
-
9
7
final class ReverseIterator
10
8
{
11
9
const ITERATOR_GET_KEY = 1 << 1 ;
12
10
const ITERATOR_GET_BOTH = 1 << 2 ;
13
11
12
+ /**
13
+ * The constructor.
14
+ */
15
+ private function __construct ()
16
+ {
17
+ }
18
+
14
19
/**
15
20
* Iterate the array reversely.
16
21
*
17
22
* @param array $array the array
18
23
*
19
- * @return Generator
24
+ * @return \ Generator
20
25
*/
21
- public static function fromArray (array $ array , int $ flags = 0 ): Generator
26
+ public static function fromArray (array $ array , int $ flags = 0 ): \ Generator
22
27
{
23
28
// it may worth unrolling if-conditions to out of for-loop
24
29
// so it wont have to check multiple if-conditions inside each loop
You can’t perform that action at this time.
0 commit comments