Conditions | 4 |
Paths | 6 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function addFiles($filePaths): self |
||
36 | { |
||
37 | if (is_string($filePaths)) { |
||
38 | $filePaths = [$filePaths]; |
||
39 | } |
||
40 | |||
41 | foreach ($filePaths as $filePath) { |
||
42 | if (! empty($filePath)) { |
||
43 | file_put_contents($this->manifestPath, $filePath.PHP_EOL, FILE_APPEND); |
||
44 | } |
||
45 | } |
||
46 | |||
47 | return $this; |
||
48 | } |
||
49 | |||
75 |