| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function getFileName($source_name, $type, $tmp_name, $index, $content_range, FileUpload $upload) |
||
| 20 | { |
||
| 21 | $sourceNameArray = explode(".", $source_name); |
||
| 22 | $ext = $sourceNameArray[count($sourceNameArray) - 1]; |
||
| 23 | if (is_string($this->generator) && !is_callable($this->generator)) { |
||
| 24 | return $this->generator.".".$ext; |
||
| 25 | } |
||
| 26 | |||
| 27 | return call_user_func_array( |
||
| 28 | $this->generator, |
||
| 29 | func_get_args() |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |