From 6926c007754301bbdfa4a6eef7278aaa85a4c814 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 27 Apr 2019 09:42:30 +0200 Subject: [PATCH] Add docblock --- Controller/ApiController.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index bfacd54..955723a 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -117,6 +117,15 @@ final class ApiController extends Controller return $mediaCreated; } + /** + * Create a random file path to store media files + * + * @param string $basePath Base path for file storage + * + * @return string Random path to store media files + * + * @since 1.0.0 + */ public static function createMediaPath(string $basePath = 'Modules/Media/Files') : string { $rndPath = \str_pad(\dechex(\mt_rand(0, 65535)), 4, '0', STR_PAD_LEFT);