This mapping has 3 multi-map groups: several pairings are equally correct there. The code view shows one arbitrary valid pairing, not the only one.

Before

…lines 1–695 unchanged (695 lines)
696 /**
697 * Appends an existing set of files/directories to the finder.
698 *
699 * The set can be another Finder, an Iterator, an IteratorAggregate, or even a plain array.
700 *
701 * @return $this
702 *
703 * @throws \InvalidArgumentException when the given argument is not iterable
704 */
705 public function append(iterable $iterator): static
706 {
707 if ($iterator instanceof \IteratorAggregate) {
708 $this->iterators[] = $iterator->getIterator();
709 } elseif ($iterator instanceof \Iterator) {
710 $this->iterators[] = $iterator;
711 } elseif (is_iterable($iterator)) {
712 $it = new \ArrayIterator();
713 foreach ($iterator as $file) {
714 $file = $file instanceof \SplFileInfo ? $file : new \SplFileInfo($file);
715 $it[$file->getPathname()] = $file;
716 }
717 $this->iterators[] = $it;
718 } else {
719 throw new \InvalidArgumentException('Finder::append() method wrong argument type.');
720 }
721
722 return $this;
723 }
724
725 /**
726 * Check if any results were found.
…lines 727–857 unchanged (131 lines)

After

…lines 1–688 unchanged (688 lines)
689 if ($this->sort || $this->reverseSorting) {
690 $iterator = (new SortableIterator($iterator, $this->sort, $this->reverseSorting))->getIterator();
691 }
692
693 return $iterator;
694 }
695
696 /**
697 * Appends an existing set of files/directories to the finder.
698 *
699 * The set can be another Finder, an Iterator, an IteratorAggregate, or even a plain array.
700 *
701 * @return $this
702 */
703 public function append(iterable $iterator): static
704 {
705 if ($iterator instanceof \IteratorAggregate) {
706 $this->iterators[] = $iterator->getIterator();
707 } elseif ($iterator instanceof \Iterator) {
708 $this->iterators[] = $iterator;
709 } else {
710 $it = new \ArrayIterator();
711 foreach ($iterator as $file) {
712 $file = $file instanceof \SplFileInfo ? $file : new \SplFileInfo($file);
713 $it[$file->getPathname()] = $file;
714 }
715 $this->iterators[] = $it;
716 }
717
718 return $this;
719 }
720
721 /**
722 * Check if any results were found.
…lines 723–853 unchanged (131 lines)

Before

program
php_tag "<?php"
comment "/*\n * This file is part of the Symfony package.\n *\n * (c) Fa"...
namespace_definition
namespace "namespace"
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Comparator"
\ "\\"
name "DateComparator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Comparator"
\ "\\"
name "NumberComparator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Exception"
\ "\\"
name "DirectoryNotFoundException"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "CustomFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "DateRangeFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "DepthRangeFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "ExcludeDirectoryFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "FilecontentFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "FilenameFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "LazyIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "SizeRangeFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "SortableIterator"
; ";"
comment "/**\n * Finder allows to build rules to find files and direct"...
class_declaration
class "class"
name "Finder"
class_interface_clause
implements "implements"
qualified_name
\ "\\"
name "IteratorAggregate"
, ","
qualified_name
\ "\\"
name "Countable"
declaration_list
{ "{"
const_declaration
visibility_modifier
public "public"
const "const"
const_element
name "IGNORE_VCS_FILES"
= "="
integer "1"
; ";"
const_declaration
visibility_modifier
public "public"
const "const"
const_element
name "IGNORE_DOT_FILES"
= "="
integer "2"
; ";"
const_declaration
visibility_modifier
public "public"
const "const"
const_element
name "IGNORE_VCS_IGNORED_FILES"
= "="
integer "4"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
int "int"
property_element
variable_name
$ "$"
name "mode"
= "="
integer "0"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "names"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "notNames"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "exclude"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "filters"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "pruneFilters"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "depths"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "sizes"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
bool "bool"
property_element
variable_name
$ "$"
name "followLinks"
= "="
boolean "false"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
bool "bool"
property_element
variable_name
$ "$"
name "reverseSorting"
= "="
boolean "false"
; ";"
property_declaration
visibility_modifier
private "private"
union_type
named_type
qualified_name
\ "\\"
name "Closure"
| "|"
primitive_type
int "int"
| "|"
primitive_type "false"
property_element
variable_name
$ "$"
name "sort"
= "="
boolean "false"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
int "int"
property_element
variable_name
$ "$"
name "ignore"
= "="
integer "0"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "dirs"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "dates"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "iterators"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "contains"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "notContains"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "paths"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "notPaths"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
bool "bool"
property_element
variable_name
$ "$"
name "ignoreUnreadableDirs"
= "="
boolean "false"
; ";"
property_declaration (+69 nodes collapsed)
method_declaration (+33 nodes collapsed)
comment "/**\n * Creates a new Finder.\n */"
method_declaration (+25 nodes collapsed)
comment "/**\n * Restricts the matching to directories only.\n "...
method_declaration (+38 nodes collapsed)
comment "/**\n * Restricts the matching to files only.\n *\n "...
method_declaration (+38 nodes collapsed)
comment "/**\n * Adds tests for the directory depth.\n *\n *"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Adds tests for file dates (last modified).\n *"...
method_declaration (+71 nodes collapsed)
comment "/**\n * Adds rules that files must match.\n *\n * Y"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds rules that files must not match.\n *\n "...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds tests that file contents must match.\n *\n"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds tests that file contents must not match.\n "...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds rules that filenames must match.\n *\n "...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds rules that filenames must not match.\n *\n"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds tests for file sizes.\n *\n * $fin"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Excludes directories.\n *\n * Directories p"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Excludes \"hidden\" directories and files (starting"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Forces the finder to ignore version control direc"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Forces Finder to obey .gitignore and ignore files"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Adds VCS patterns.\n *\n * @see ignoreVCS()"...
method_declaration (+84 nodes collapsed)
comment "/**\n * Sorts files and directories by an anonymous funct"...
method_declaration (+41 nodes collapsed)
comment "/**\n * Sorts files and directories by extension.\n *\n"...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by name.\n *\n "...
method_declaration (+52 nodes collapsed)
comment "/**\n * Sorts files and directories by name case insensit"...
method_declaration (+52 nodes collapsed)
comment "/**\n * Sorts files and directories by size.\n *\n "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by type (directories "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by the last accessed "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Reverses the sorting.\n *\n * @return $this"...
method_declaration (+31 nodes collapsed)
comment "/**\n * Sorts files and directories by the last inode cha"...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by the last modified "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Filters the iterator with an anonymous function.\n"...
method_declaration (+80 nodes collapsed)
comment "/**\n * Forces the following of symlinks.\n *\n * @"...
method_declaration (+31 nodes collapsed)
comment "/**\n * Tells finder to ignore unreadable directories.\n "...
method_declaration (+41 nodes collapsed)
comment "/**\n * Searches files and directories which match define"...
method_declaration (+263 nodes collapsed)
comment "/**\n * Returns an Iterator for the current Finder config"...
method_declaration (+399 nodes collapsed)
comment "/**\n * Appends an existing set of files/directories to t"...
method_declaration
visibility_modifier
public "public"
function "function"
name "append"
formal_parameters
( "("
simple_parameter
primitive_type "iterable"
variable_name
$ "$"
name "iterator"
) ")"
: ":"
named_type
name "static"
compound_statement
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
variable_name
$ "$"
name "iterator"
instanceof "instanceof"
qualified_name
\ "\\"
name "IteratorAggregate"
) ")"
compound_statement (+25 nodes collapsed)
else_if_clause (+32 nodes collapsed)
else_if_clause
elseif "elseif"
parenthesized_expression
( "("
function_call_expression
name "is_iterable"
arguments
( "("
argument
variable_name
$ "$"
name "iterator"
) ")"
) ")"
compound_statement any 2:1
{ "{" any 2:1
expression_statement
assignment_expression
variable_name
$ "$"
name "it"
= "="
object_creation_expression
new "new"
qualified_name
\ "\\"
name "ArrayIterator"
arguments
( "("
) ")"
; ";"
foreach_statement (+69 nodes collapsed)
expression_statement
assignment_expression
subscript_expression
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "iterators"
[ "["
] "]"
= "="
variable_name
$ "$"
name "it"
; ";"
} "}" any 2:1
else_clause
else "else"
compound_statement any 2:1
{ "{" any 2:1
expression_statement
throw_expression
throw "throw"
object_creation_expression
new "new"
qualified_name
\ "\\"
name "InvalidArgumentException"
arguments
( "("
argument
string
' "'"
string_content "Finder::append() method wrong argument type."
' "'"
) ")"
; ";"
} "}" any 2:1
return_statement
return "return"
variable_name
$ "$"
name "this"
; ";"
} "}"
comment "/**\n * Check if any results were found.\n */"
method_declaration (+42 nodes collapsed)
comment "/**\n * Counts all the results collected by the iterators"...
method_declaration (+32 nodes collapsed)
method_declaration (+944 nodes collapsed)
comment "/**\n * Normalizes given directory names by removing trai"...
method_declaration (+110 nodes collapsed)
} "}"

After

program
php_tag "<?php"
comment "/*\n * This file is part of the Symfony package.\n *\n * (c) Fa"...
namespace_definition
namespace "namespace"
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Comparator"
\ "\\"
name "DateComparator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Comparator"
\ "\\"
name "NumberComparator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Exception"
\ "\\"
name "DirectoryNotFoundException"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "CustomFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "DateRangeFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "DepthRangeFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "ExcludeDirectoryFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "FilecontentFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "FilenameFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "LazyIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "SizeRangeFilterIterator"
; ";"
namespace_use_declaration
use "use"
namespace_use_clause
qualified_name
namespace_name
name "Symfony"
\ "\\"
name "Component"
\ "\\"
name "Finder"
\ "\\"
name "Iterator"
\ "\\"
name "SortableIterator"
; ";"
comment "/**\n * Finder allows to build rules to find files and direct"...
class_declaration
class "class"
name "Finder"
class_interface_clause
implements "implements"
qualified_name
\ "\\"
name "IteratorAggregate"
, ","
qualified_name
\ "\\"
name "Countable"
declaration_list
{ "{"
const_declaration
visibility_modifier
public "public"
const "const"
const_element
name "IGNORE_VCS_FILES"
= "="
integer "1"
; ";"
const_declaration
visibility_modifier
public "public"
const "const"
const_element
name "IGNORE_DOT_FILES"
= "="
integer "2"
; ";"
const_declaration
visibility_modifier
public "public"
const "const"
const_element
name "IGNORE_VCS_IGNORED_FILES"
= "="
integer "4"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
int "int"
property_element
variable_name
$ "$"
name "mode"
= "="
integer "0"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "names"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "notNames"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "exclude"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "filters"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "pruneFilters"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "depths"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "sizes"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
bool "bool"
property_element
variable_name
$ "$"
name "followLinks"
= "="
boolean "false"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
bool "bool"
property_element
variable_name
$ "$"
name "reverseSorting"
= "="
boolean "false"
; ";"
property_declaration
visibility_modifier
private "private"
union_type
named_type
qualified_name
\ "\\"
name "Closure"
| "|"
primitive_type
int "int"
| "|"
primitive_type "false"
property_element
variable_name
$ "$"
name "sort"
= "="
boolean "false"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
int "int"
property_element
variable_name
$ "$"
name "ignore"
= "="
integer "0"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "dirs"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "dates"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "iterators"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "contains"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "notContains"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "paths"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "notPaths"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
bool "bool"
property_element
variable_name
$ "$"
name "ignoreUnreadableDirs"
= "="
boolean "false"
; ";"
property_declaration (+69 nodes collapsed)
method_declaration (+33 nodes collapsed)
comment "/**\n * Creates a new Finder.\n */"
method_declaration (+25 nodes collapsed)
comment "/**\n * Restricts the matching to directories only.\n "...
method_declaration (+38 nodes collapsed)
comment "/**\n * Restricts the matching to files only.\n *\n "...
method_declaration (+38 nodes collapsed)
comment "/**\n * Adds tests for the directory depth.\n *\n *"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Adds tests for file dates (last modified).\n *"...
method_declaration (+71 nodes collapsed)
comment "/**\n * Adds rules that files must match.\n *\n * Y"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds rules that files must not match.\n *\n "...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds tests that file contents must match.\n *\n"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds tests that file contents must not match.\n "...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds rules that filenames must match.\n *\n "...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds rules that filenames must not match.\n *\n"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds tests for file sizes.\n *\n * $fin"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Excludes directories.\n *\n * Directories p"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Excludes \"hidden\" directories and files (starting"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Forces the finder to ignore version control direc"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Forces Finder to obey .gitignore and ignore files"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Adds VCS patterns.\n *\n * @see ignoreVCS()"...
method_declaration (+84 nodes collapsed)
comment "/**\n * Sorts files and directories by an anonymous funct"...
method_declaration (+41 nodes collapsed)
comment "/**\n * Sorts files and directories by extension.\n *\n"...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by name.\n *\n "...
method_declaration (+52 nodes collapsed)
comment "/**\n * Sorts files and directories by name case insensit"...
method_declaration (+52 nodes collapsed)
comment "/**\n * Sorts files and directories by size.\n *\n "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by type (directories "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by the last accessed "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Reverses the sorting.\n *\n * @return $this"...
method_declaration (+31 nodes collapsed)
comment "/**\n * Sorts files and directories by the last inode cha"...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by the last modified "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Filters the iterator with an anonymous function.\n"...
method_declaration (+80 nodes collapsed)
comment "/**\n * Forces the following of symlinks.\n *\n * @"...
method_declaration (+31 nodes collapsed)
comment "/**\n * Tells finder to ignore unreadable directories.\n "...
method_declaration (+41 nodes collapsed)
comment "/**\n * Searches files and directories which match define"...
method_declaration (+263 nodes collapsed)
comment "/**\n * Returns an Iterator for the current Finder config"...
method_declaration (+399 nodes collapsed)
comment "/**\n * Appends an existing set of files/directories to t"...
method_declaration
visibility_modifier
public "public"
function "function"
name "append"
formal_parameters
( "("
simple_parameter
primitive_type "iterable"
variable_name
$ "$"
name "iterator"
) ")"
: ":"
named_type
name "static"
compound_statement
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
variable_name
$ "$"
name "iterator"
instanceof "instanceof"
qualified_name
\ "\\"
name "IteratorAggregate"
) ")"
compound_statement (+25 nodes collapsed)
else_if_clause (+32 nodes collapsed)
else_clause
else "else"
compound_statement any 2:1
{ "{" any 2:1
expression_statement
assignment_expression
variable_name
$ "$"
name "it"
= "="
object_creation_expression
new "new"
qualified_name
\ "\\"
name "ArrayIterator"
arguments
( "("
) ")"
; ";"
foreach_statement (+69 nodes collapsed)
expression_statement
assignment_expression
subscript_expression
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "iterators"
[ "["
] "]"
= "="
variable_name
$ "$"
name "it"
; ";"
} "}" any 2:1
return_statement
return "return"
variable_name
$ "$"
name "this"
; ";"
} "}"
comment "/**\n * Check if any results were found.\n */"
method_declaration (+42 nodes collapsed)
comment "/**\n * Counts all the results collected by the iterators"...
method_declaration (+32 nodes collapsed)
method_declaration (+944 nodes collapsed)
comment "/**\n * Normalizes given directory names by removing trai"...
method_declaration (+110 nodes collapsed)
} "}"