| @@ 233-239 (lines=7) @@ | ||
| 230 | } |
|
| 231 | } |
|
| 232 | ||
| 233 | foreach ($this->_paths($plugin) as $path) { |
|
| 234 | foreach ($this->extensions as $extension) { |
|
| 235 | if (file_exists($path . $name . $extension)) { |
|
| 236 | return $this->_checkFilePath($path . $name . $extension, $path); |
|
| 237 | } |
|
| 238 | } |
|
| 239 | } |
|
| 240 | ||
| 241 | throw new MissingTemplateException(['file' => $name . $this->_ext]); |
|
| 242 | } |
|
| @@ 268-272 (lines=5) @@ | ||
| 265 | foreach ($this->_paths($plugin) as $path) { |
|
| 266 | foreach ($layoutPaths as $layoutPath) { |
|
| 267 | $currentPath = $path . $layoutPath; |
|
| 268 | foreach ($this->extensions as $extension) { |
|
| 269 | if (file_exists($currentPath . $name . $extension)) { |
|
| 270 | return $this->_checkFilePath($currentPath . $name . $extension, $currentPath); |
|
| 271 | } |
|
| 272 | } |
|
| 273 | } |
|
| 274 | } |
|
| 275 | throw new MissingLayoutException([ |
|