| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function __invoke(array $post) { |
||
| 36 | |||
| 37 | # Declare variables |
||
| 38 | |||
| 39 | $contents = ''; |
||
| 40 | |||
| 41 | # Extract post array |
||
| 42 | |||
| 43 | extract($post); |
||
| 44 | |||
| 45 | # Rename item |
||
| 46 | |||
| 47 | if (false === $this->entity->putContents($contents)) return 'FILEMANAGER_ERROR_FILE_EDIT'; |
||
| 48 | |||
| 49 | # ------------------------ |
||
| 50 | |||
| 51 | return true; |
||
| 52 | } |
||
| 53 | } |
||
| 55 |