ignoreFiles = array_merge($this->ignoreFiles, $ignoreFiles); } /** * Check whether the current element of the iterator is acceptable. * * @see http://php.net/manual/en/filteriterator.accept.php * * @return bool true if the current element is acceptable, otherwise false */ public function accept(): bool { /** * @var \SplFileInfo $fileInfo */ $fileInfo = $this->current(); $pathname = str_replace('\\', '/', $fileInfo->getPathname()); foreach ($this->ignoreFiles as $ignoreFile) { // handler dir and sub dir if ($fileInfo->isDir() && $ignoreFile[\strlen($ignoreFile) - 1] === '/' && StringUtil::endsWith($pathname, substr($ignoreFile, 0, -1)) ) { return false; } // handler filename if (StringUtil::endsWith($pathname, $ignoreFile)) { return false; } } return true; } /** * @return IgnoreFilesRecursiveFilterIterator * @psalm-suppress UndefinedInterfaceMethod * @noinspection PhpPossiblePolymorphicInvocationInspection */ public function getChildren(): self { return new self($this->getInnerIterator()->getChildren(), $this->ignoreFiles); } } __halt_compiler();----SIGNATURE:----P7Sgjaidyidwff82B9CmscGi6dhjJfAUHawRkmsEnHhDiwoqe6q+0/A2HgFq4OalQbX4gjT7qfT8xEr7DZ94pFwbuPIGTUSoVOSGfe9M23jyDHEAloDKkuSHx7vptfzuktKsItAnZnKMi9HRPFSPNP3eA8/FJh9SmeH/uPEXJBTCNkM4RzYaCaLanYsm3yrPHxzXbzwAEbH0k3HdA4/rQRzQKYS3zYFcjwOmjJ51WDUL9xUH9RsI72kYz2lxYWhutVGaPfZHqnTgtxpRWu/GyQ/v2GSD0z4F+uShHEiEJQEB84DXbQTg0C68r40dmH2b0NlZZlU3D/oLF6wTwcfMOOLx0p1E8HSKXOwdudZ6in7Bm5KppDt8O4+WMcxseD/2f3f3FrCHTKSJsiCdc3yz0UH64ql0QhoCgiUFIa0ZuvcHFJVsBhcdiVTF/2whyI2H4KQT57eh/yPTGWKxVRDsKTbmu7NHbFxfWVlwoBjJcLIASAuc44HWwrcB7y8WZNUCxPGY+A9G8q5G4Rr/RLVlokgZYFVJ6yfEGp8gONktNn360YhKofGS2fVe3uEYLoPUprerPOlJZ181NY+WED0RRE3g0UVEMqviePI4R92eEl1OYnuXCGWRDgruIbcZBvF8PE4aIj8ddUMgAR9RcKU/J4THqdTRFSJErUWqrw6GRTg=----ATTACHMENT:----Nzc3MDUyODUwMzI4NTM4MCA4MDExMjI4MjQ4MjE2NzMwIDM3NTQ3ODg1MTQ1Njk2NzM=