Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace Dotenv\Store\File;
6
 
7
/**
8
 * @internal
9
 */
10
final class Paths
11
{
12
    /**
13
     * This class is a singleton.
14
     *
15
     * @codeCoverageIgnore
16
     *
17
     * @return void
18
     */
19
    private function __construct()
20
    {
21
        //
22
    }
23
 
24
    /**
25
     * Returns the full paths to the files.
26
     *
27
     * @param string[] $paths
28
     * @param string[] $names
29
     *
30
     * @return string[]
31
     */
32
    public static function filePaths(array $paths, array $names)
33
    {
34
        $files = [];
35
 
36
        foreach ($paths as $path) {
37
            foreach ($names as $name) {
38
                $files[] = \rtrim($path, \DIRECTORY_SEPARATOR).\DIRECTORY_SEPARATOR.$name;
39
            }
40
        }
41
 
42
        return $files;
43
    }
44
}