src/Events/recursive_event_filter_iterator.php
public function accept()
	{
		$relative_path = str_replace(DIRECTORY_SEPARATOR, '/', $this->current());
		$filename      = $this->current()->getFilename();

		return (substr($relative_path, -4) === '.php' || $this->current()->isDir())
		&& $filename[0] !== '.'
		&& strpos($relative_path, $this->root_path . 'cache/') !== 0
		&& strpos($relative_path, $this->root_path . 'develop/') !== 0
		&& strpos($relative_path, $this->root_path . 'docs/') !== 0
		&& strpos($relative_path, $this->root_path . 'ext/') !== 0
		&& strpos($relative_path, $this->root_path . 'files/') !== 0
		&& strpos($relative_path, $this->root_path . 'includes/utf/') !== 0
		&& strpos($relative_path, $this->root_path . 'language/') !== 0
		&& strpos($relative_path, $this->root_path . 'phpbb/db/migration/data/') !== 0
		&& strpos($relative_path, $this->root_path . 'phpbb/event/') !== 0
		&& strpos($relative_path, $this->root_path . 'store/') !== 0
		&& strpos($relative_path, $this->root_path . 'tests/') !== 0
		&& strpos($relative_path, $this->root_path . 'vendor/') !== 0;
	}
public function accept()
	{
		$relative_path = str_replace(DIRECTORY_SEPARATOR, '/', $this->current());
		$filename      = $this->current()->getFilename();

		return (substr($relative_path, -4) === '.php' || $this->current()->isDir())
		&& $filename[0] !== '.'
		&& strpos($relative_path, $this->root_path . 'cache/') !== 0
		&& strpos($relative_path, $this->root_path . 'develop/') !== 0
		&& strpos($relative_path, $this->root_path . 'docs/') !== 0
		&& strpos($relative_path, $this->root_path . 'ext/') !== 0
		&& strpos($relative_path, $this->root_path . 'files/') !== 0
		&& strpos($relative_path, $this->root_path . 'includes/utf/') !== 0
		&& strpos($relative_path, $this->root_path . 'language/') !== 0
		&& strpos($relative_path, $this->root_path . 'phpbb/db/migration/data/') !== 0
		&& strpos($relative_path, $this->root_path . 'phpbb/event/') !== 0
		&& strpos($relative_path, $this->root_path . 'store/') !== 0
		&& strpos($relative_path, $this->root_path . 'tests/') !== 0
		&& strpos($relative_path, $this->root_path . 'vendor/') !== 0;
	}
{@inheritDoc}