Conditions | 4 |
Paths | 6 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function addFiles($filePaths): Manifest |
||
41 | { |
||
42 | if (is_string($filePaths)) { |
||
43 | $filePaths = [$filePaths]; |
||
44 | } |
||
45 | |||
46 | foreach ($filePaths as $filePath) { |
||
47 | if (! empty($filePath)) { |
||
48 | file_put_contents($this->manifestPath, $filePath.PHP_EOL, FILE_APPEND); |
||
49 | } |
||
50 | } |
||
51 | |||
52 | return $this; |
||
53 | } |
||
54 | |||
80 |