| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 1 | protected function saveFileFromModel(): ?ExportStoredFile |
|
| 24 | { |
||
| 25 | 1 | $fileModel = null; |
|
| 26 | 1 | if ($this->fileModelData) { |
|
| 27 | 1 | $fileModel = unserialize($this->fileModelData); |
|
| 28 | 1 | if ($fileModel instanceof ExportStoredFile) { |
|
| 29 | 1 | $fileModel->save(); |
|
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | 1 | return $fileModel; |
|
| 34 | } |
||
| 36 |