We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 784d7fe commit 08f07e3Copy full SHA for 08f07e3
src/Processor/Processor.php
@@ -71,17 +71,12 @@ public function attachFiles($inputPath, $outputPath)
71
unset($files[0], $files[1]);
72
73
foreach ($files as $file) {
74
- $absolutePath = "$inputPath/$file";
75
- if (is_file($absolutePath)) {
76
- $this->files[] = new File($absolutePath, $outputPath);
77
- } else {
78
- $this->attachFiles($absolutePath, $outputPath);
79
- }
+ $this->attachFiles("$inputPath/$file", $outputPath);
80
}
81
} else if (is_file($inputPath)) {
82
$this->files[] = new File($inputPath, $outputPath);
83
} else {
84
- throw new \Exception('file doesn\'t exists');
+ throw new \Exception("file doesn't exists");
85
86
87
0 commit comments