Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function store(string $destination, $origin, $options = []): string |
||
21 | { |
||
22 | $destination = $this->path($destination); |
||
23 | |||
24 | if ($this->filesystem()->disk($this->disk)->writeStream($destination, $origin, $options)) { |
||
25 | event(new MergeAdded($destination)); |
||
|
|||
26 | |||
27 | return $destination; |
||
28 | } |
||
29 | |||
30 | return false; |
||
31 | } |
||
33 |