@@ 313-316 (lines=4) @@ | ||
310 | */ |
|
311 | public static function filePath( $module, $folder, $file ) |
|
312 | { |
|
313 | if (! is_string($module) || ! is_string($folder) || ! is_string($file)) |
|
314 | { |
|
315 | throw new \InvalidArgumentException('Argument must be a string for Modules::filePath()'); |
|
316 | } |
|
317 | ||
318 | foreach ( self::$locations as $location ) |
|
319 | { |
|
@@ 343-346 (lines=4) @@ | ||
340 | */ |
|
341 | public static function path( $module, $folder = null ) |
|
342 | { |
|
343 | if (! is_string($module) || (! is_string($folder) && !is_null($folder) ) ) |
|
344 | { |
|
345 | throw new \InvalidArgumentException('Argument must be a string for Modules::path()'); |
|
346 | } |
|
347 | ||
348 | foreach ( self::$locations as $module_folder ) |
|
349 | { |