@@ -43,8 +43,7 @@ discard block |
||
43 | 43 | * @return string |
44 | 44 | */ |
45 | 45 | public static function GUID() { |
46 | - if (function_exists('com_create_guid') === true) |
|
47 | - { |
|
46 | + if (function_exists('com_create_guid') === true) { |
|
48 | 47 | return trim(com_create_guid(), '{}'); |
49 | 48 | } |
50 | 49 | |
@@ -55,16 +54,16 @@ discard block |
||
55 | 54 | * @param $uid |
56 | 55 | * @return string |
57 | 56 | */ |
58 | - public static function getNameByUid($uid){ |
|
57 | + public static function getNameByUid($uid) { |
|
59 | 58 | $um = \OC::$server->getUserManager(); |
60 | 59 | $u = $um->get($uid); |
61 | 60 | return $u->getDisplayName(); |
62 | 61 | } |
63 | 62 | |
64 | - public static function getDirContents($dir, &$results = array()){ |
|
63 | + public static function getDirContents($dir, &$results = array()) { |
|
65 | 64 | $files = scandir($dir); |
66 | 65 | |
67 | - foreach($files as $key => $value){ |
|
66 | + foreach($files as $key => $value) { |
|
68 | 67 | $path = realpath($dir.DIRECTORY_SEPARATOR.$value); |
69 | 68 | if(!is_dir($path)) { |
70 | 69 | $results[] = $path; |