| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 8 | public function get_path() : string |
|
| 48 | { |
||
| 49 | 8 | if (empty($this->attachment->location)) { |
|
| 50 | 7 | $location = connection::generate_guid(); |
|
| 51 | 7 | $subdir1 = strtoupper($location[0]); |
|
| 52 | 7 | $subdir2 = strtoupper($location[1]); |
|
| 53 | 7 | $this->attachment->location = $subdir1 . DIRECTORY_SEPARATOR . $subdir2 . DIRECTORY_SEPARATOR . $location; |
|
| 54 | } |
||
| 55 | 8 | $blobdir = midgard_connection::get_instance()->config->blobdir; |
|
| 56 | 8 | return $blobdir . DIRECTORY_SEPARATOR . $this->attachment->location; |
|
| 57 | } |
||
| 64 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.