mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
- Make readable
This commit is contained in:
parent
193ae05edd
commit
ea9487249b
@ -18,7 +18,16 @@ class DirectoryGraphIterator extends DirectoryTreeIterator
|
||||
{
|
||||
function __construct($path)
|
||||
{
|
||||
RecursiveIteratorIterator::__construct(new RecursiveCachingIterator(new ParentIterator(new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME)), CachingIterator::CALL_TOSTRING|CachingIterator::CATCH_GET_CHILD), 1);
|
||||
RecursiveIteratorIterator::__construct(
|
||||
new RecursiveCachingIterator(
|
||||
new ParentIterator(
|
||||
new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME
|
||||
)
|
||||
),
|
||||
CachingIterator::CALL_TOSTRING|CachingIterator::CATCH_GET_CHILD
|
||||
),
|
||||
parent::SELF_FIRST
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,14 @@ class DirectoryTreeIterator extends RecursiveIteratorIterator
|
||||
*/
|
||||
function __construct($path)
|
||||
{
|
||||
parent::__construct(new RecursiveCachingIterator(new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME), CachingIterator::CALL_TOSTRING|CachingIterator::CATCH_GET_CHILD), 1);
|
||||
parent::__construct(
|
||||
new RecursiveCachingIterator(
|
||||
new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME
|
||||
),
|
||||
CachingIterator::CALL_TOSTRING|CachingIterator::CATCH_GET_CHILD
|
||||
),
|
||||
parent::SELF_FIRST
|
||||
);
|
||||
}
|
||||
|
||||
/** @return the current element prefixed with ASCII graphics
|
||||
|
Loading…
Reference in New Issue
Block a user