@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | /** |
36 | 36 | * @since 9.0.0 |
37 | 37 | */ |
38 | - const EQ = ExpressionBuilder::EQ; |
|
38 | + const EQ = ExpressionBuilder::EQ; |
|
39 | 39 | /** |
40 | 40 | * @since 9.0.0 |
41 | 41 | */ |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * @since 9.0.0 |
45 | 45 | */ |
46 | - const LT = ExpressionBuilder::LT; |
|
46 | + const LT = ExpressionBuilder::LT; |
|
47 | 47 | /** |
48 | 48 | * @since 9.0.0 |
49 | 49 | */ |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * @since 9.0.0 |
53 | 53 | */ |
54 | - const GT = ExpressionBuilder::GT; |
|
54 | + const GT = ExpressionBuilder::GT; |
|
55 | 55 | /** |
56 | 56 | * @since 9.0.0 |
57 | 57 | */ |
@@ -57,6 +57,6 @@ |
||
57 | 57 | * @since 7.0.0 |
58 | 58 | */ |
59 | 59 | public function __toString() { |
60 | - return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; |
|
60 | + return __CLASS__.": [{$this->code}]: {$this->message}\n"; |
|
61 | 61 | } |
62 | 62 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | * @since 5.0.0 |
70 | 70 | */ |
71 | 71 | public static function register($method, $url, $action, $app, $authLevel = self::USER_AUTH, |
72 | - $defaults = array(), $requirements = array()){ |
|
72 | + $defaults = array(), $requirements = array()) { |
|
73 | 73 | \OC_API::register($method, $url, $action, $app, $authLevel, $defaults, $requirements); |
74 | 74 | } |
75 | 75 |
@@ -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 | } |
@@ -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 | /** |
68 | 68 | * get the current installed version of ownCloud |
@@ -117,11 +117,11 @@ discard block |
||
117 | 117 | $message->setSubject($subject); |
118 | 118 | $message->setPlainBody($mailtext); |
119 | 119 | $message->setFrom([$fromaddress => $fromname]); |
120 | - if($html === 1) { |
|
120 | + if ($html === 1) { |
|
121 | 121 | $message->setHTMLBody($altbody); |
122 | 122 | } |
123 | 123 | |
124 | - if($altbody === '') { |
|
124 | + if ($altbody === '') { |
|
125 | 125 | $message->setHTMLBody($mailtext); |
126 | 126 | $message->setPlainBody(''); |
127 | 127 | } else { |
@@ -129,14 +129,14 @@ discard block |
||
129 | 129 | $message->setPlainBody($altbody); |
130 | 130 | } |
131 | 131 | |
132 | - if(!empty($ccaddress)) { |
|
133 | - if(!empty($ccname)) { |
|
132 | + if (!empty($ccaddress)) { |
|
133 | + if (!empty($ccname)) { |
|
134 | 134 | $message->setCc([$ccaddress => $ccname]); |
135 | 135 | } else { |
136 | 136 | $message->setCc([$ccaddress]); |
137 | 137 | } |
138 | 138 | } |
139 | - if(!empty($bcc)) { |
|
139 | + if (!empty($bcc)) { |
|
140 | 140 | $message->setBcc([$bcc]); |
141 | 141 | } |
142 | 142 | |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * @param int $level |
151 | 151 | * @since 4.0.0 |
152 | 152 | */ |
153 | - public static function writeLog( $app, $message, $level ) { |
|
153 | + public static function writeLog($app, $message, $level) { |
|
154 | 154 | $context = ['app' => $app]; |
155 | 155 | \OC::$server->getLogger()->log($level, $message, $context); |
156 | 156 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * @since ....0.0 - parameter $level was added in 7.0.0 |
164 | 164 | * @deprecated 8.2.0 use logException of \OCP\ILogger |
165 | 165 | */ |
166 | - public static function logException( $app, \Exception $ex, $level = \OCP\Util::FATAL ) { |
|
166 | + public static function logException($app, \Exception $ex, $level = \OCP\Util::FATAL) { |
|
167 | 167 | \OC::$server->getLogger()->logException($ex, ['app' => $app]); |
168 | 168 | } |
169 | 169 | |
@@ -198,8 +198,8 @@ discard block |
||
198 | 198 | * @param string $file |
199 | 199 | * @since 4.0.0 |
200 | 200 | */ |
201 | - public static function addStyle( $application, $file = null ) { |
|
202 | - \OC_Util::addStyle( $application, $file ); |
|
201 | + public static function addStyle($application, $file = null) { |
|
202 | + \OC_Util::addStyle($application, $file); |
|
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
@@ -208,8 +208,8 @@ discard block |
||
208 | 208 | * @param string $file |
209 | 209 | * @since 4.0.0 |
210 | 210 | */ |
211 | - public static function addScript( $application, $file = null ) { |
|
212 | - \OC_Util::addScript( $application, $file ); |
|
211 | + public static function addScript($application, $file = null) { |
|
212 | + \OC_Util::addScript($application, $file); |
|
213 | 213 | } |
214 | 214 | |
215 | 215 | /** |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | * @param string $text the text content for the element |
232 | 232 | * @since 4.0.0 |
233 | 233 | */ |
234 | - public static function addHeader($tag, $attributes, $text=null) { |
|
234 | + public static function addHeader($tag, $attributes, $text = null) { |
|
235 | 235 | \OC_Util::addHeader($tag, $attributes, $text); |
236 | 236 | } |
237 | 237 | |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | * @deprecated 8.0.0 Use \OC::$server->query('DateTimeFormatter') instead |
246 | 246 | * @since 4.0.0 |
247 | 247 | */ |
248 | - public static function formatDate($timestamp, $dateOnly=false, $timeZone = null) { |
|
248 | + public static function formatDate($timestamp, $dateOnly = false, $timeZone = null) { |
|
249 | 249 | return(\OC_Util::formatDate($timestamp, $dateOnly, $timeZone)); |
250 | 250 | } |
251 | 251 | |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | * @return string the url |
270 | 270 | * @since 4.0.0 - parameter $args was added in 4.5.0 |
271 | 271 | */ |
272 | - public static function linkToAbsolute( $app, $file, $args = array() ) { |
|
272 | + public static function linkToAbsolute($app, $file, $args = array()) { |
|
273 | 273 | $urlGenerator = \OC::$server->getURLGenerator(); |
274 | 274 | return $urlGenerator->getAbsoluteURL( |
275 | 275 | $urlGenerator->linkTo($app, $file, $args) |
@@ -282,11 +282,11 @@ discard block |
||
282 | 282 | * @return string the url |
283 | 283 | * @since 4.0.0 |
284 | 284 | */ |
285 | - public static function linkToRemote( $service ) { |
|
285 | + public static function linkToRemote($service) { |
|
286 | 286 | $urlGenerator = \OC::$server->getURLGenerator(); |
287 | - $remoteBase = $urlGenerator->linkTo('', 'remote.php') . '/' . $service; |
|
287 | + $remoteBase = $urlGenerator->linkTo('', 'remote.php').'/'.$service; |
|
288 | 288 | return $urlGenerator->getAbsoluteURL( |
289 | - $remoteBase . (($service[strlen($service) - 1] != '/') ? '/' : '') |
|
289 | + $remoteBase.(($service[strlen($service) - 1] != '/') ? '/' : '') |
|
290 | 290 | ); |
291 | 291 | } |
292 | 292 | |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->linkToRoute($route, $parameters) |
310 | 310 | * @since 5.0.0 |
311 | 311 | */ |
312 | - public static function linkToRoute( $route, $parameters = array() ) { |
|
312 | + public static function linkToRoute($route, $parameters = array()) { |
|
313 | 313 | return \OC::$server->getURLGenerator()->linkToRoute($route, $parameters); |
314 | 314 | } |
315 | 315 | |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->linkTo($app, $file, $args) |
324 | 324 | * @since 4.0.0 - parameter $args was added in 4.5.0 |
325 | 325 | */ |
326 | - public static function linkTo( $app, $file, $args = array() ) { |
|
326 | + public static function linkTo($app, $file, $args = array()) { |
|
327 | 327 | return \OC::$server->getURLGenerator()->linkTo($app, $file, $args); |
328 | 328 | } |
329 | 329 | |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->imagePath($app, $image) |
423 | 423 | * @since 4.0.0 |
424 | 424 | */ |
425 | - public static function imagePath( $app, $image ) { |
|
425 | + public static function imagePath($app, $image) { |
|
426 | 426 | return \OC::$server->getURLGenerator()->imagePath($app, $image); |
427 | 427 | } |
428 | 428 | |
@@ -432,8 +432,8 @@ discard block |
||
432 | 432 | * @return string a human readable file size |
433 | 433 | * @since 4.0.0 |
434 | 434 | */ |
435 | - public static function humanFileSize( $bytes ) { |
|
436 | - return(\OC_Helper::humanFileSize( $bytes )); |
|
435 | + public static function humanFileSize($bytes) { |
|
436 | + return(\OC_Helper::humanFileSize($bytes)); |
|
437 | 437 | } |
438 | 438 | |
439 | 439 | /** |
@@ -444,8 +444,8 @@ discard block |
||
444 | 444 | * Inspired by: http://www.php.net/manual/en/function.filesize.php#92418 |
445 | 445 | * @since 4.0.0 |
446 | 446 | */ |
447 | - public static function computerFileSize( $str ) { |
|
448 | - return(\OC_Helper::computerFileSize( $str )); |
|
447 | + public static function computerFileSize($str) { |
|
448 | + return(\OC_Helper::computerFileSize($str)); |
|
449 | 449 | } |
450 | 450 | |
451 | 451 | /** |
@@ -462,8 +462,8 @@ discard block |
||
462 | 462 | * TODO: write example |
463 | 463 | * @since 4.0.0 |
464 | 464 | */ |
465 | - static public function connectHook($signalClass, $signalName, $slotClass, $slotName ) { |
|
466 | - return(\OC_Hook::connect($signalClass, $signalName, $slotClass, $slotName )); |
|
465 | + static public function connectHook($signalClass, $signalName, $slotClass, $slotName) { |
|
466 | + return(\OC_Hook::connect($signalClass, $signalName, $slotClass, $slotName)); |
|
467 | 467 | } |
468 | 468 | |
469 | 469 | /** |
@@ -476,8 +476,8 @@ discard block |
||
476 | 476 | * TODO: write example |
477 | 477 | * @since 4.0.0 |
478 | 478 | */ |
479 | - static public function emitHook( $signalclass, $signalname, $params = array()) { |
|
480 | - return(\OC_Hook::emit( $signalclass, $signalname, $params )); |
|
479 | + static public function emitHook($signalclass, $signalname, $params = array()) { |
|
480 | + return(\OC_Hook::emit($signalclass, $signalname, $params)); |
|
481 | 481 | } |
482 | 482 | |
483 | 483 | /** |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | * @since 4.5.0 |
494 | 494 | */ |
495 | 495 | public static function callRegister() { |
496 | - if(self::$token === '') { |
|
496 | + if (self::$token === '') { |
|
497 | 497 | self::$token = \OC::$server->getCsrfTokenManager()->getToken()->getEncryptedValue(); |
498 | 498 | } |
499 | 499 | return self::$token; |
@@ -505,7 +505,7 @@ discard block |
||
505 | 505 | * @deprecated 9.0.0 Use annotations based on the app framework. |
506 | 506 | */ |
507 | 507 | public static function callCheck() { |
508 | - if(!\OC::$server->getRequest()->passesStrictCookieCheck()) { |
|
508 | + if (!\OC::$server->getRequest()->passesStrictCookieCheck()) { |
|
509 | 509 | header('Location: '.\OC::$WEBROOT); |
510 | 510 | exit(); |
511 | 511 | } |
@@ -696,7 +696,7 @@ discard block |
||
696 | 696 | */ |
697 | 697 | public static function needUpgrade() { |
698 | 698 | if (!isset(self::$needUpgradeCache)) { |
699 | - self::$needUpgradeCache=\OC_Util::needUpgrade(\OC::$server->getConfig()); |
|
699 | + self::$needUpgradeCache = \OC_Util::needUpgrade(\OC::$server->getConfig()); |
|
700 | 700 | } |
701 | 701 | return self::$needUpgradeCache; |
702 | 702 | } |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | * @see \OCP\IURLGenerator::imagePath |
50 | 50 | * @deprecated 8.0.0 Use \OCP\Template::image_path() instead |
51 | 51 | */ |
52 | -function image_path( $app, $image ) { |
|
53 | - return(\image_path( $app, $image )); |
|
52 | +function image_path($app, $image) { |
|
53 | + return(\image_path($app, $image)); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | |
@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | * @return string to the image of this file type. |
61 | 61 | * @deprecated 8.0.0 Use \OCP\Template::mimetype_icon() instead |
62 | 62 | */ |
63 | -function mimetype_icon( $mimetype ) { |
|
64 | - return(\mimetype_icon( $mimetype )); |
|
63 | +function mimetype_icon($mimetype) { |
|
64 | + return(\mimetype_icon($mimetype)); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | * @return string to the preview of the image |
71 | 71 | * @deprecated 8.0.0 Use \OCP\Template::preview_icon() instead |
72 | 72 | */ |
73 | -function preview_icon( $path ) { |
|
74 | - return(\preview_icon( $path )); |
|
73 | +function preview_icon($path) { |
|
74 | + return(\preview_icon($path)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | * @return string link to the preview |
83 | 83 | * @deprecated 8.0.0 Use \OCP\Template::publicPreview_icon() instead |
84 | 84 | */ |
85 | -function publicPreview_icon ( $path, $token ) { |
|
86 | - return(\publicPreview_icon( $path, $token )); |
|
85 | +function publicPreview_icon($path, $token) { |
|
86 | + return(\publicPreview_icon($path, $token)); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -93,8 +93,8 @@ discard block |
||
93 | 93 | * @return string size as string |
94 | 94 | * @deprecated 8.0.0 Use \OCP\Template::human_file_size() instead |
95 | 95 | */ |
96 | -function human_file_size( $bytes ) { |
|
97 | - return(\human_file_size( $bytes )); |
|
96 | +function human_file_size($bytes) { |
|
97 | + return(\human_file_size($bytes)); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * |
107 | 107 | * @deprecated 8.0.0 Use \OCP\Template::relative_modified_date() instead |
108 | 108 | */ |
109 | -function relative_modified_date( $timestamp, $dateOnly = false ) { |
|
109 | +function relative_modified_date($timestamp, $dateOnly = false) { |
|
110 | 110 | return(\relative_modified_date($timestamp, null, $dateOnly)); |
111 | 111 | } |
112 | 112 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * @return string html options |
131 | 131 | * @deprecated 8.0.0 Use \OCP\Template::html_select_options() instead |
132 | 132 | */ |
133 | -function html_select_options($options, $selected, $params=array()) { |
|
133 | +function html_select_options($options, $selected, $params = array()) { |
|
134 | 134 | return(\html_select_options($options, $selected, $params)); |
135 | 135 | } |
136 | 136 | |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * @return string html options |
226 | 226 | * @since 8.0.0 |
227 | 227 | */ |
228 | - public static function html_select_options($options, $selected, $params=array()) { |
|
228 | + public static function html_select_options($options, $selected, $params = array()) { |
|
229 | 229 | return \html_select_options($options, $selected, $params); |
230 | 230 | } |
231 | 231 | } |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | * @return bool |
51 | 51 | * @since 5.0.0 |
52 | 52 | */ |
53 | - static function rmdirr( $dir ) { |
|
54 | - return \OC_Helper::rmdirr( $dir ); |
|
53 | + static function rmdirr($dir) { |
|
54 | + return \OC_Helper::rmdirr($dir); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * does NOT work for ownClouds filesystem, use OC_FileSystem::getMimeType instead |
62 | 62 | * @since 5.0.0 |
63 | 63 | */ |
64 | - static function getMimeType( $path ) { |
|
64 | + static function getMimeType($path) { |
|
65 | 65 | return \OC::$server->getMimeTypeDetector()->detect($path); |
66 | 66 | } |
67 | 67 | |
@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | * @return array |
72 | 72 | * @since 6.0.0 |
73 | 73 | */ |
74 | - static public function searchByMime( $mimetype ) { |
|
75 | - return(\OC\Files\Filesystem::searchByMime( $mimetype )); |
|
74 | + static public function searchByMime($mimetype) { |
|
75 | + return(\OC\Files\Filesystem::searchByMime($mimetype)); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | * @return int the number of bytes copied |
83 | 83 | * @since 5.0.0 |
84 | 84 | */ |
85 | - public static function streamCopy( $source, $target ) { |
|
86 | - list($count, ) = \OC_Helper::streamCopy( $source, $target ); |
|
85 | + public static function streamCopy($source, $target) { |
|
86 | + list($count,) = \OC_Helper::streamCopy($source, $target); |
|
87 | 87 | return $count; |
88 | 88 | } |
89 | 89 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * @deprecated 8.1.0 use getTemporaryFile() of \OCP\ITempManager - \OC::$server->getTempManager() |
97 | 97 | * @since 5.0.0 |
98 | 98 | */ |
99 | - public static function tmpFile( $postfix='' ) { |
|
99 | + public static function tmpFile($postfix = '') { |
|
100 | 100 | return \OC::$server->getTempManager()->getTemporaryFile($postfix); |
101 | 101 | } |
102 | 102 | |
@@ -119,8 +119,8 @@ discard block |
||
119 | 119 | * @return string |
120 | 120 | * @since 5.0.0 |
121 | 121 | */ |
122 | - public static function buildNotExistingFileName( $path, $filename ) { |
|
123 | - return(\OC_Helper::buildNotExistingFileName( $path, $filename )); |
|
122 | + public static function buildNotExistingFileName($path, $filename) { |
|
123 | + return(\OC_Helper::buildNotExistingFileName($path, $filename)); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * @return \OC\Files\View |
131 | 131 | * @since 5.0.0 |
132 | 132 | */ |
133 | - public static function getStorage( $app ) { |
|
134 | - return \OC_App::getStorage( $app ); |
|
133 | + public static function getStorage($app) { |
|
134 | + return \OC_App::getStorage($app); |
|
135 | 135 | } |
136 | 136 | } |
@@ -84,7 +84,7 @@ |
||
84 | 84 | * @since 9.0.0 |
85 | 85 | */ |
86 | 86 | public function getGroups() { |
87 | - return array_map(function ($group) { |
|
87 | + return array_map(function($group) { |
|
88 | 88 | /** @var \OCP\IGroup $group */ |
89 | 89 | return $group->getGID(); |
90 | 90 | }, $this->groups); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * @deprecated 8.1.0 use prepare() of \OCP\IDBConnection - \OC::$server->getDatabaseConnection() |
57 | 57 | * @since 4.5.0 |
58 | 58 | */ |
59 | - static public function prepare( $query, $limit=null, $offset=null ) { |
|
59 | + static public function prepare($query, $limit = null, $offset = null) { |
|
60 | 60 | return(\OC_DB::prepare($query, $limit, $offset)); |
61 | 61 | } |
62 | 62 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * @deprecated 8.1.0 use lastInsertId() of \OCP\IDBConnection - \OC::$server->getDatabaseConnection() |
90 | 90 | * @since 4.5.0 |
91 | 91 | */ |
92 | - public static function insertid($table=null) { |
|
92 | + public static function insertid($table = null) { |
|
93 | 93 | return \OC::$server->getDatabaseConnection()->lastInsertId($table); |
94 | 94 | } |
95 | 95 |