/** * Search through all bound paths to find the asset file * * @param string $key * @param array $paths * @return string */ protected function findInPaths($key, array $paths) { $found = false; foreach ($paths as $path) { if ($this->filesystem->isFile($asset = $path . $key)) { $found = $asset; break; } } return $found; }
protected function findInPaths($key, $paths) { $found = false; foreach ((array) $paths as $path) { if ($this->filesystem->isFile($template = $path . $key . '.php')) { $found = $template; break; } } return $found; }