| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 1 | public function getTemporaryFile($basePath = null) |
|
| 32 | { |
||
| 33 | 1 | $path = $basePath ?: '/tmp/file/'; |
|
| 34 | 1 | $file = $this->getBuilder()->build( |
|
| 35 | 1 | LocalFile::class, |
|
| 36 | sprintf( |
||
| 37 | 1 | '%s%s.tmp', |
|
| 38 | 1 | $this->addTrailingSlash($path), |
|
| 39 | 1 | uniqid('file') |
|
| 40 | ) |
||
| 41 | ); |
||
| 42 | |||
| 43 | 1 | return $file; |
|
| 44 | } |
||
| 45 | |||
| 56 |