Conditions | 2 |
Paths | 2 |
Total Lines | 29 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function merge(): string |
||
25 | { |
||
26 | // Retrieve chunks |
||
27 | $chunks = $this->chunksManager->temporaryFiles( |
||
28 | $this->chunksFolder() |
||
29 | )->values(); |
||
30 | $chunk = $this->chunksManager->chunks( |
||
31 | $this->chunksFolder() |
||
32 | )->first(); |
||
33 | |||
34 | // Merge chunks |
||
35 | $this->mergeChunks($chunk->getPath(), $chunks->toArray()); |
||
36 | |||
37 | // Move chunks to destination |
||
38 | $origin = $this->chunksManager->chunk($chunk); |
||
39 | $path = $this->mergeManager->store( |
||
40 | $this->destination, |
||
41 | $origin, |
||
42 | $this->mergeManager->getMergeOptions() |
||
43 | ); |
||
44 | |||
45 | if (! $path) { |
||
46 | throw new StrategyException('An error occurred while moving merge to destination'); |
||
47 | } |
||
48 | |||
49 | // Cleanup |
||
50 | $this->chunksManager->deleteChunkFolder($this->folder); |
||
51 | |||
52 | return $path; |
||
53 | } |
||
60 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.