File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 99
1010final class DiffHelper
1111{
12+ /**
13+ * The constructor.
14+ */
15+ private function __construct ()
16+ {
17+ }
18+
1219 /**
1320 * Get the information about available templates.
1421 *
Original file line number Diff line number Diff line change 44
55namespace Jfcherng \Diff \Utility ;
66
7- use Generator ;
8-
97final 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
You can’t perform that action at this time.
0 commit comments