@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | * @deprecated 8.1.0 use method search() of \OCP\IUserManager - \OC::$server->getUserManager() |
66 | 66 | * @since 5.0.0 |
67 | 67 | */ |
68 | - public static function getUsers( $search = '', $limit = null, $offset = null ) { |
|
69 | - return \OC_User::getUsers( $search, $limit, $offset ); |
|
68 | + public static function getUsers($search = '', $limit = null, $offset = null) { |
|
69 | + return \OC_User::getUsers($search, $limit, $offset); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -77,8 +77,8 @@ discard block |
||
77 | 77 | * get() of \OCP\IUserManager - \OC::$server->getUserManager() |
78 | 78 | * @since 5.0.0 |
79 | 79 | */ |
80 | - public static function getDisplayName( $user = null ) { |
|
81 | - return \OC_User::getDisplayName( $user ); |
|
80 | + public static function getDisplayName($user = null) { |
|
81 | + return \OC_User::getDisplayName($user); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | * @deprecated 8.1.0 use method searchDisplayName() of \OCP\IUserManager - \OC::$server->getUserManager() |
91 | 91 | * @since 5.0.0 |
92 | 92 | */ |
93 | - public static function getDisplayNames( $search = '', $limit = null, $offset = null ) { |
|
94 | - return \OC_User::getDisplayNames( $search, $limit, $offset ); |
|
93 | + public static function getDisplayNames($search = '', $limit = null, $offset = null) { |
|
94 | + return \OC_User::getDisplayNames($search, $limit, $offset); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | * @deprecated 8.1.0 use method userExists() of \OCP\IUserManager - \OC::$server->getUserManager() |
112 | 112 | * @since 5.0.0 |
113 | 113 | */ |
114 | - public static function userExists( $uid, $excludingBackend = null ) { |
|
115 | - return \OC_User::userExists( $uid, $excludingBackend ); |
|
114 | + public static function userExists($uid, $excludingBackend = null) { |
|
115 | + return \OC_User::userExists($uid, $excludingBackend); |
|
116 | 116 | } |
117 | 117 | /** |
118 | 118 | * Logs the user out including all the session data |
@@ -134,8 +134,8 @@ discard block |
||
134 | 134 | * @deprecated 8.0.0 Use \OC::$server->getUserManager()->checkPassword(); |
135 | 135 | * @since 5.0.0 |
136 | 136 | */ |
137 | - public static function checkPassword( $uid, $password ) { |
|
138 | - return \OC_User::checkPassword( $uid, $password ); |
|
137 | + public static function checkPassword($uid, $password) { |
|
138 | + return \OC_User::checkPassword($uid, $password); |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
@@ -42,11 +42,11 @@ |
||
42 | 42 | const METHOD_STREAM = 'stream'; |
43 | 43 | const METHOD_MAIL = 'email'; |
44 | 44 | |
45 | - const PRIORITY_VERYLOW = 10; |
|
46 | - const PRIORITY_LOW = 20; |
|
47 | - const PRIORITY_MEDIUM = 30; |
|
48 | - const PRIORITY_HIGH = 40; |
|
49 | - const PRIORITY_VERYHIGH = 50; |
|
45 | + const PRIORITY_VERYLOW = 10; |
|
46 | + const PRIORITY_LOW = 20; |
|
47 | + const PRIORITY_MEDIUM = 30; |
|
48 | + const PRIORITY_HIGH = 40; |
|
49 | + const PRIORITY_VERYHIGH = 50; |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * The extension can return an array of additional notification types. |
@@ -58,11 +58,11 @@ discard block |
||
58 | 58 | */ |
59 | 59 | class Util { |
60 | 60 | // consts for Logging |
61 | - const DEBUG=0; |
|
62 | - const INFO=1; |
|
63 | - const WARN=2; |
|
64 | - const ERROR=3; |
|
65 | - const FATAL=4; |
|
61 | + const DEBUG = 0; |
|
62 | + const INFO = 1; |
|
63 | + const WARN = 2; |
|
64 | + const ERROR = 3; |
|
65 | + const FATAL = 4; |
|
66 | 66 | |
67 | 67 | /** \OCP\Share\IManager */ |
68 | 68 | private static $shareManager; |
@@ -118,11 +118,11 @@ discard block |
||
118 | 118 | $message->setSubject($subject); |
119 | 119 | $message->setPlainBody($mailtext); |
120 | 120 | $message->setFrom([$fromaddress => $fromname]); |
121 | - if($html === 1) { |
|
121 | + if ($html === 1) { |
|
122 | 122 | $message->setHTMLBody($altbody); |
123 | 123 | } |
124 | 124 | |
125 | - if($altbody === '') { |
|
125 | + if ($altbody === '') { |
|
126 | 126 | $message->setHTMLBody($mailtext); |
127 | 127 | $message->setPlainBody(''); |
128 | 128 | } else { |
@@ -130,14 +130,14 @@ discard block |
||
130 | 130 | $message->setPlainBody($altbody); |
131 | 131 | } |
132 | 132 | |
133 | - if(!empty($ccaddress)) { |
|
134 | - if(!empty($ccname)) { |
|
133 | + if (!empty($ccaddress)) { |
|
134 | + if (!empty($ccname)) { |
|
135 | 135 | $message->setCc([$ccaddress => $ccname]); |
136 | 136 | } else { |
137 | 137 | $message->setCc([$ccaddress]); |
138 | 138 | } |
139 | 139 | } |
140 | - if(!empty($bcc)) { |
|
140 | + if (!empty($bcc)) { |
|
141 | 141 | $message->setBcc([$bcc]); |
142 | 142 | } |
143 | 143 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * @param int $level |
152 | 152 | * @since 4.0.0 |
153 | 153 | */ |
154 | - public static function writeLog( $app, $message, $level ) { |
|
154 | + public static function writeLog($app, $message, $level) { |
|
155 | 155 | $context = ['app' => $app]; |
156 | 156 | \OC::$server->getLogger()->log($level, $message, $context); |
157 | 157 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * @since ....0.0 - parameter $level was added in 7.0.0 |
165 | 165 | * @deprecated 8.2.0 use logException of \OCP\ILogger |
166 | 166 | */ |
167 | - public static function logException( $app, \Exception $ex, $level = \OCP\Util::FATAL ) { |
|
167 | + public static function logException($app, \Exception $ex, $level = \OCP\Util::FATAL) { |
|
168 | 168 | \OC::$server->getLogger()->logException($ex, ['app' => $app]); |
169 | 169 | } |
170 | 170 | |
@@ -205,8 +205,8 @@ discard block |
||
205 | 205 | * @param string $file |
206 | 206 | * @since 4.0.0 |
207 | 207 | */ |
208 | - public static function addStyle( $application, $file = null ) { |
|
209 | - \OC_Util::addStyle( $application, $file ); |
|
208 | + public static function addStyle($application, $file = null) { |
|
209 | + \OC_Util::addStyle($application, $file); |
|
210 | 210 | } |
211 | 211 | |
212 | 212 | /** |
@@ -215,8 +215,8 @@ discard block |
||
215 | 215 | * @param string $file |
216 | 216 | * @since 4.0.0 |
217 | 217 | */ |
218 | - public static function addScript( $application, $file = null ) { |
|
219 | - \OC_Util::addScript( $application, $file ); |
|
218 | + public static function addScript($application, $file = null) { |
|
219 | + \OC_Util::addScript($application, $file); |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | /** |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * @param string $text the text content for the element |
239 | 239 | * @since 4.0.0 |
240 | 240 | */ |
241 | - public static function addHeader($tag, $attributes, $text=null) { |
|
241 | + public static function addHeader($tag, $attributes, $text = null) { |
|
242 | 242 | \OC_Util::addHeader($tag, $attributes, $text); |
243 | 243 | } |
244 | 244 | |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | * @deprecated 8.0.0 Use \OC::$server->query('DateTimeFormatter') instead |
253 | 253 | * @since 4.0.0 |
254 | 254 | */ |
255 | - public static function formatDate($timestamp, $dateOnly=false, $timeZone = null) { |
|
255 | + public static function formatDate($timestamp, $dateOnly = false, $timeZone = null) { |
|
256 | 256 | return(\OC_Util::formatDate($timestamp, $dateOnly, $timeZone)); |
257 | 257 | } |
258 | 258 | |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | * @return string the url |
277 | 277 | * @since 4.0.0 - parameter $args was added in 4.5.0 |
278 | 278 | */ |
279 | - public static function linkToAbsolute( $app, $file, $args = array() ) { |
|
279 | + public static function linkToAbsolute($app, $file, $args = array()) { |
|
280 | 280 | $urlGenerator = \OC::$server->getURLGenerator(); |
281 | 281 | return $urlGenerator->getAbsoluteURL( |
282 | 282 | $urlGenerator->linkTo($app, $file, $args) |
@@ -289,11 +289,11 @@ discard block |
||
289 | 289 | * @return string the url |
290 | 290 | * @since 4.0.0 |
291 | 291 | */ |
292 | - public static function linkToRemote( $service ) { |
|
292 | + public static function linkToRemote($service) { |
|
293 | 293 | $urlGenerator = \OC::$server->getURLGenerator(); |
294 | - $remoteBase = $urlGenerator->linkTo('', 'remote.php') . '/' . $service; |
|
294 | + $remoteBase = $urlGenerator->linkTo('', 'remote.php').'/'.$service; |
|
295 | 295 | return $urlGenerator->getAbsoluteURL( |
296 | - $remoteBase . (($service[strlen($service) - 1] != '/') ? '/' : '') |
|
296 | + $remoteBase.(($service[strlen($service) - 1] != '/') ? '/' : '') |
|
297 | 297 | ); |
298 | 298 | } |
299 | 299 | |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->linkToRoute($route, $parameters) |
317 | 317 | * @since 5.0.0 |
318 | 318 | */ |
319 | - public static function linkToRoute( $route, $parameters = array() ) { |
|
319 | + public static function linkToRoute($route, $parameters = array()) { |
|
320 | 320 | return \OC::$server->getURLGenerator()->linkToRoute($route, $parameters); |
321 | 321 | } |
322 | 322 | |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->linkTo($app, $file, $args) |
331 | 331 | * @since 4.0.0 - parameter $args was added in 4.5.0 |
332 | 332 | */ |
333 | - public static function linkTo( $app, $file, $args = array() ) { |
|
333 | + public static function linkTo($app, $file, $args = array()) { |
|
334 | 334 | return \OC::$server->getURLGenerator()->linkTo($app, $file, $args); |
335 | 335 | } |
336 | 336 | |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->imagePath($app, $image) |
430 | 430 | * @since 4.0.0 |
431 | 431 | */ |
432 | - public static function imagePath( $app, $image ) { |
|
432 | + public static function imagePath($app, $image) { |
|
433 | 433 | return \OC::$server->getURLGenerator()->imagePath($app, $image); |
434 | 434 | } |
435 | 435 | |
@@ -439,8 +439,8 @@ discard block |
||
439 | 439 | * @return string a human readable file size |
440 | 440 | * @since 4.0.0 |
441 | 441 | */ |
442 | - public static function humanFileSize( $bytes ) { |
|
443 | - return(\OC_Helper::humanFileSize( $bytes )); |
|
442 | + public static function humanFileSize($bytes) { |
|
443 | + return(\OC_Helper::humanFileSize($bytes)); |
|
444 | 444 | } |
445 | 445 | |
446 | 446 | /** |
@@ -451,8 +451,8 @@ discard block |
||
451 | 451 | * Inspired by: http://www.php.net/manual/en/function.filesize.php#92418 |
452 | 452 | * @since 4.0.0 |
453 | 453 | */ |
454 | - public static function computerFileSize( $str ) { |
|
455 | - return(\OC_Helper::computerFileSize( $str )); |
|
454 | + public static function computerFileSize($str) { |
|
455 | + return(\OC_Helper::computerFileSize($str)); |
|
456 | 456 | } |
457 | 457 | |
458 | 458 | /** |
@@ -469,8 +469,8 @@ discard block |
||
469 | 469 | * TODO: write example |
470 | 470 | * @since 4.0.0 |
471 | 471 | */ |
472 | - static public function connectHook($signalClass, $signalName, $slotClass, $slotName ) { |
|
473 | - return(\OC_Hook::connect($signalClass, $signalName, $slotClass, $slotName )); |
|
472 | + static public function connectHook($signalClass, $signalName, $slotClass, $slotName) { |
|
473 | + return(\OC_Hook::connect($signalClass, $signalName, $slotClass, $slotName)); |
|
474 | 474 | } |
475 | 475 | |
476 | 476 | /** |
@@ -483,8 +483,8 @@ discard block |
||
483 | 483 | * TODO: write example |
484 | 484 | * @since 4.0.0 |
485 | 485 | */ |
486 | - static public function emitHook( $signalclass, $signalname, $params = array()) { |
|
487 | - return(\OC_Hook::emit( $signalclass, $signalname, $params )); |
|
486 | + static public function emitHook($signalclass, $signalname, $params = array()) { |
|
487 | + return(\OC_Hook::emit($signalclass, $signalname, $params)); |
|
488 | 488 | } |
489 | 489 | |
490 | 490 | /** |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | * @since 4.5.0 |
501 | 501 | */ |
502 | 502 | public static function callRegister() { |
503 | - if(self::$token === '') { |
|
503 | + if (self::$token === '') { |
|
504 | 504 | self::$token = \OC::$server->getCsrfTokenManager()->getToken()->getEncryptedValue(); |
505 | 505 | } |
506 | 506 | return self::$token; |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | * @deprecated 9.0.0 Use annotations based on the app framework. |
513 | 513 | */ |
514 | 514 | public static function callCheck() { |
515 | - if(!\OC::$server->getRequest()->passesStrictCookieCheck()) { |
|
515 | + if (!\OC::$server->getRequest()->passesStrictCookieCheck()) { |
|
516 | 516 | header('Location: '.\OC::$WEBROOT); |
517 | 517 | exit(); |
518 | 518 | } |
@@ -703,7 +703,7 @@ discard block |
||
703 | 703 | */ |
704 | 704 | public static function needUpgrade() { |
705 | 705 | if (!isset(self::$needUpgradeCache)) { |
706 | - self::$needUpgradeCache=\OC_Util::needUpgrade(\OC::$server->getConfig()); |
|
706 | + self::$needUpgradeCache = \OC_Util::needUpgrade(\OC::$server->getConfig()); |
|
707 | 707 | } |
708 | 708 | return self::$needUpgradeCache; |
709 | 709 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | * remove all user backends |
69 | 69 | * @since 8.0.0 |
70 | 70 | */ |
71 | - public function clearBackends() ; |
|
71 | + public function clearBackends(); |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * get a user by user id |
@@ -61,7 +61,7 @@ |
||
61 | 61 | */ |
62 | 62 | public function addEntityCollection($name, \Closure $entityExistsFunction) { |
63 | 63 | if (isset($this->collections[$name])) { |
64 | - throw new \OutOfBoundsException('Duplicate entity name "' . $name . '"'); |
|
64 | + throw new \OutOfBoundsException('Duplicate entity name "'.$name.'"'); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | $this->collections[$name] = $entityExistsFunction; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @deprecated 8.1.0 Use \OC::$server->getNavigationManager()->setActiveEntry() instead |
83 | 83 | * @since 4.0.0 |
84 | 84 | */ |
85 | - public static function setActiveNavigationEntry( $id ) { |
|
85 | + public static function setActiveNavigationEntry($id) { |
|
86 | 86 | \OC::$server->getNavigationManager()->setActiveEntry($id); |
87 | 87 | return true; |
88 | 88 | } |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | * @return void |
95 | 95 | * @since 4.0.0 |
96 | 96 | */ |
97 | - public static function registerPersonal( $app, $page ) { |
|
98 | - \OC_App::registerPersonal( $app, $page ); |
|
97 | + public static function registerPersonal($app, $page) { |
|
98 | + \OC_App::registerPersonal($app, $page); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
@@ -105,8 +105,8 @@ discard block |
||
105 | 105 | * @return void |
106 | 106 | * @since 4.0.0 |
107 | 107 | */ |
108 | - public static function registerAdmin( $app, $page ) { |
|
109 | - \OC_App::registerAdmin( $app, $page ); |
|
108 | + public static function registerAdmin($app, $page) { |
|
109 | + \OC_App::registerAdmin($app, $page); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
@@ -116,8 +116,8 @@ discard block |
||
116 | 116 | * @return array|null |
117 | 117 | * @since 4.0.0 |
118 | 118 | */ |
119 | - public static function getAppInfo( $app, $path=false ) { |
|
120 | - return \OC_App::getAppInfo( $app, $path); |
|
119 | + public static function getAppInfo($app, $path = false) { |
|
120 | + return \OC_App::getAppInfo($app, $path); |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
@@ -128,8 +128,8 @@ discard block |
||
128 | 128 | * This function checks whether or not an app is enabled. |
129 | 129 | * @since 4.0.0 |
130 | 130 | */ |
131 | - public static function isEnabled( $app ) { |
|
132 | - return \OC_App::isEnabled( $app ); |
|
131 | + public static function isEnabled($app) { |
|
132 | + return \OC_App::isEnabled($app); |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * @since 4.0.0 |
140 | 140 | * @deprecated 9.0.0 ownCloud core will handle disabled apps and redirects to valid URLs |
141 | 141 | */ |
142 | - public static function checkAppEnabled( $app ) { |
|
142 | + public static function checkAppEnabled($app) { |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * @return string |
149 | 149 | * @since 4.0.0 |
150 | 150 | */ |
151 | - public static function getAppVersion( $app ) { |
|
152 | - return \OC_App::getAppVersion( $app ); |
|
151 | + public static function getAppVersion($app) { |
|
152 | + return \OC_App::getAppVersion($app); |
|
153 | 153 | } |
154 | 154 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | * @deprecated 9.1.0 Use the AppFramework |
73 | 73 | */ |
74 | 74 | public static function register($method, $url, $action, $app, $authLevel = self::USER_AUTH, |
75 | - $defaults = array(), $requirements = array()){ |
|
75 | + $defaults = array(), $requirements = array()) { |
|
76 | 76 | \OC_API::register($method, $url, $action, $app, $authLevel, $defaults, $requirements); |
77 | 77 | } |
78 | 78 |
@@ -159,7 +159,7 @@ |
||
159 | 159 | * @return bool Returns false on error. |
160 | 160 | * @since 6.0.0 |
161 | 161 | */ |
162 | - public function addMultiple($names, $sync=false, $id = null); |
|
162 | + public function addMultiple($names, $sync = false, $id = null); |
|
163 | 163 | |
164 | 164 | /** |
165 | 165 | * Delete tag/object relations from the db |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | * This function gets the value from config.php. If it does not exist, |
58 | 58 | * $default will be returned. |
59 | 59 | */ |
60 | - public static function getSystemValue( $key, $default = null ) { |
|
61 | - return \OC::$server->getConfig()->getSystemValue( $key, $default ); |
|
60 | + public static function getSystemValue($key, $default = null) { |
|
61 | + return \OC::$server->getConfig()->getSystemValue($key, $default); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -71,9 +71,9 @@ discard block |
||
71 | 71 | * This function sets the value and writes the config.php. If the file can |
72 | 72 | * not be written, false will be returned. |
73 | 73 | */ |
74 | - public static function setSystemValue( $key, $value ) { |
|
74 | + public static function setSystemValue($key, $value) { |
|
75 | 75 | try { |
76 | - \OC::$server->getConfig()->setSystemValue( $key, $value ); |
|
76 | + \OC::$server->getConfig()->setSystemValue($key, $value); |
|
77 | 77 | } catch (\Exception $e) { |
78 | 78 | return false; |
79 | 79 | } |
@@ -87,8 +87,8 @@ discard block |
||
87 | 87 | * |
88 | 88 | * This function deletes the value from config.php. |
89 | 89 | */ |
90 | - public static function deleteSystemValue( $key ) { |
|
91 | - \OC::$server->getConfig()->deleteSystemValue( $key ); |
|
90 | + public static function deleteSystemValue($key) { |
|
91 | + \OC::$server->getConfig()->deleteSystemValue($key); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -102,8 +102,8 @@ discard block |
||
102 | 102 | * This function gets a value from the appconfig table. If the key does |
103 | 103 | * not exist the default value will be returned |
104 | 104 | */ |
105 | - public static function getAppValue( $app, $key, $default = null ) { |
|
106 | - return \OC::$server->getConfig()->getAppValue( $app, $key, $default ); |
|
105 | + public static function getAppValue($app, $key, $default = null) { |
|
106 | + return \OC::$server->getConfig()->getAppValue($app, $key, $default); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
@@ -116,9 +116,9 @@ discard block |
||
116 | 116 | * |
117 | 117 | * Sets a value. If the key did not exist before it will be created. |
118 | 118 | */ |
119 | - public static function setAppValue( $app, $key, $value ) { |
|
119 | + public static function setAppValue($app, $key, $value) { |
|
120 | 120 | try { |
121 | - \OC::$server->getConfig()->setAppValue( $app, $key, $value ); |
|
121 | + \OC::$server->getConfig()->setAppValue($app, $key, $value); |
|
122 | 122 | } catch (\Exception $e) { |
123 | 123 | return false; |
124 | 124 | } |
@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | * This function gets a value from the preferences table. If the key does |
138 | 138 | * not exist the default value will be returned |
139 | 139 | */ |
140 | - public static function getUserValue( $user, $app, $key, $default = null ) { |
|
141 | - return \OC::$server->getConfig()->getUserValue( $user, $app, $key, $default ); |
|
140 | + public static function getUserValue($user, $app, $key, $default = null) { |
|
141 | + return \OC::$server->getConfig()->getUserValue($user, $app, $key, $default); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
@@ -153,9 +153,9 @@ discard block |
||
153 | 153 | * Adds a value to the preferences. If the key did not exist before, it |
154 | 154 | * will be added automagically. |
155 | 155 | */ |
156 | - public static function setUserValue( $user, $app, $key, $value ) { |
|
156 | + public static function setUserValue($user, $app, $key, $value) { |
|
157 | 157 | try { |
158 | - \OC::$server->getConfig()->setUserValue( $user, $app, $key, $value ); |
|
158 | + \OC::$server->getConfig()->setUserValue($user, $app, $key, $value); |
|
159 | 159 | } catch (\Exception $e) { |
160 | 160 | return false; |
161 | 161 | } |