@@ 73-83 (lines=11) @@ | ||
70 | * @return \FilesystemIterator |
|
71 | * @throws \EventEspresso\core\exceptions\InvalidDataTypeException |
|
72 | */ |
|
73 | public function locate($directory_paths) |
|
74 | { |
|
75 | if (! (is_string($directory_paths) || is_array($directory_paths))) { |
|
76 | throw new InvalidDataTypeException('$directory_paths', $directory_paths, 'string or array'); |
|
77 | } |
|
78 | foreach ((array) $directory_paths as $directory_path) { |
|
79 | foreach ($this->findFilesByPath($directory_path) as $key => $file) { |
|
80 | $this->filepaths[ $key ] = \EEH_File::standardise_directory_separators($file); |
|
81 | } |
|
82 | } |
|
83 | return $this->filepaths; |
|
84 | } |
|
85 | ||
86 |
@@ 79-89 (lines=11) @@ | ||
76 | * @throws InvalidClassException |
|
77 | * @throws InvalidDataTypeException |
|
78 | */ |
|
79 | public function locate($namespaces) |
|
80 | { |
|
81 | if (! (is_string($namespaces) || is_array($namespaces))) { |
|
82 | throw new InvalidDataTypeException('$namespaces', $namespaces, 'string or array'); |
|
83 | } |
|
84 | foreach ((array) $namespaces as $namespace) { |
|
85 | foreach ($this->findFQCNsByNamespace($namespace) as $key => $file) { |
|
86 | $this->FQCNs[ $key ] = $file; |
|
87 | } |
|
88 | } |
|
89 | return $this->FQCNs; |
|
90 | } |
|
91 | ||
92 |