ref
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user