This commit is contained in:
Yuri Kuznetsov
2024-02-05 16:19:07 +02:00
parent 91b50cdcc4
commit b2f1f00875
+8 -6
View File
@@ -170,13 +170,15 @@ class SystemHelper extends System
return $isFile ? $commands[0] : $commands[1]; return $isFile ? $commands[0] : $commands[1];
} }
public function getFullPath($path) private function getFullPath($path)
{ {
if (is_array($path)) { if (is_array($path)) {
$pathList = array(); $pathList = [];
foreach ($path as $pathItem) { foreach ($path as $pathItem) {
$pathList[] = $this->getFullPath($pathItem); $pathList[] = $this->getFullPath($pathItem);
} }
return $pathList; return $pathList;
} }
@@ -190,10 +192,10 @@ class SystemHelper extends System
/** /**
* Get permission commands * Get permission commands
* *
* @param string | array $path * @param string|array $path
* @param string | array $permissions * @param string|array $permissions
* @param boolean $isSudo * @param boolean $isSudo
* @param bool $isFile * @param bool $isFile
* @return string * @return string
*/ */
public function getPermissionCommands( public function getPermissionCommands(