Completed
Push — master ( 24f1b8...24292b )
by Morris
137:15 queued 117:07
created
lib/public/User.php 2 patches
Indentation   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -47,79 +47,79 @@
 block discarded – undo
47 47
  * @deprecated 13.0.0
48 48
  */
49 49
 class User {
50
-	/**
51
-	 * Get the user id of the user currently logged in.
52
-	 * @return string uid or false
53
-	 * @deprecated 8.0.0 Use \OC::$server->getUserSession()->getUser()->getUID()
54
-	 * @since 5.0.0
55
-	 */
56
-	public static function getUser() {
57
-		return \OC_User::getUser();
58
-	}
50
+    /**
51
+     * Get the user id of the user currently logged in.
52
+     * @return string uid or false
53
+     * @deprecated 8.0.0 Use \OC::$server->getUserSession()->getUser()->getUID()
54
+     * @since 5.0.0
55
+     */
56
+    public static function getUser() {
57
+        return \OC_User::getUser();
58
+    }
59 59
 
60
-	/**
61
-	 * Get a list of all users
62
-	 * @param string $search search pattern
63
-	 * @param int|null $limit
64
-	 * @param int|null $offset
65
-	 * @return array an array of all uids
66
-	 * @deprecated 8.1.0 use method search() of \OCP\IUserManager - \OC::$server->getUserManager()
67
-	 * @since 5.0.0
68
-	 */
69
-	public static function getUsers( $search = '', $limit = null, $offset = null ) {
70
-		return \OC_User::getUsers( $search, $limit, $offset );
71
-	}
60
+    /**
61
+     * Get a list of all users
62
+     * @param string $search search pattern
63
+     * @param int|null $limit
64
+     * @param int|null $offset
65
+     * @return array an array of all uids
66
+     * @deprecated 8.1.0 use method search() of \OCP\IUserManager - \OC::$server->getUserManager()
67
+     * @since 5.0.0
68
+     */
69
+    public static function getUsers( $search = '', $limit = null, $offset = null ) {
70
+        return \OC_User::getUsers( $search, $limit, $offset );
71
+    }
72 72
 
73
-	/**
74
-	 * Get the user display name of the user currently logged in.
75
-	 * @param string|null $user user id or null for current user
76
-	 * @return string display name
77
-	 * @deprecated 8.1.0 fetch \OCP\IUser (has getDisplayName()) by using method
78
-	 *                   get() of \OCP\IUserManager - \OC::$server->getUserManager()
79
-	 * @since 5.0.0
80
-	 */
81
-	public static function getDisplayName( $user = null ) {
82
-		return \OC_User::getDisplayName( $user );
83
-	}
73
+    /**
74
+     * Get the user display name of the user currently logged in.
75
+     * @param string|null $user user id or null for current user
76
+     * @return string display name
77
+     * @deprecated 8.1.0 fetch \OCP\IUser (has getDisplayName()) by using method
78
+     *                   get() of \OCP\IUserManager - \OC::$server->getUserManager()
79
+     * @since 5.0.0
80
+     */
81
+    public static function getDisplayName( $user = null ) {
82
+        return \OC_User::getDisplayName( $user );
83
+    }
84 84
 
85
-	/**
86
-	 * Check if the user is logged in
87
-	 * @return boolean
88
-	 * @since 5.0.0
89
-	 * @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
90
-	 */
91
-	public static function isLoggedIn() {
92
-		return \OC::$server->getUserSession()->isLoggedIn();
93
-	}
85
+    /**
86
+     * Check if the user is logged in
87
+     * @return boolean
88
+     * @since 5.0.0
89
+     * @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
90
+     */
91
+    public static function isLoggedIn() {
92
+        return \OC::$server->getUserSession()->isLoggedIn();
93
+    }
94 94
 
95
-	/**
96
-	 * Check if a user exists
97
-	 * @param string $uid the username
98
-	 * @param string $excludingBackend (default none)
99
-	 * @return boolean
100
-	 * @deprecated 8.1.0 use method userExists() of \OCP\IUserManager - \OC::$server->getUserManager()
101
-	 * @since 5.0.0
102
-	 */
103
-	public static function userExists($uid, $excludingBackend = null) {
104
-		return \OC::$server->getUserManager()->userExists($uid);
105
-	}
95
+    /**
96
+     * Check if a user exists
97
+     * @param string $uid the username
98
+     * @param string $excludingBackend (default none)
99
+     * @return boolean
100
+     * @deprecated 8.1.0 use method userExists() of \OCP\IUserManager - \OC::$server->getUserManager()
101
+     * @since 5.0.0
102
+     */
103
+    public static function userExists($uid, $excludingBackend = null) {
104
+        return \OC::$server->getUserManager()->userExists($uid);
105
+    }
106 106
 
107
-	/**
108
-	 * Check if the user is a admin, redirects to home if not
109
-	 * @since 5.0.0
110
-	 * @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
111
-	 */
112
-	public static function checkAdminUser() {
113
-		\OC_Util::checkAdminUser();
114
-	}
107
+    /**
108
+     * Check if the user is a admin, redirects to home if not
109
+     * @since 5.0.0
110
+     * @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
111
+     */
112
+    public static function checkAdminUser() {
113
+        \OC_Util::checkAdminUser();
114
+    }
115 115
 
116
-	/**
117
-	 * Check if the user is logged in, redirects to home if not. With
118
-	 * redirect URL parameter to the request URI.
119
-	 * @since 5.0.0
120
-	 * @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
121
-	 */
122
-	public static function checkLoggedIn() {
123
-		\OC_Util::checkLoggedIn();
124
-	}
116
+    /**
117
+     * Check if the user is logged in, redirects to home if not. With
118
+     * redirect URL parameter to the request URI.
119
+     * @since 5.0.0
120
+     * @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
121
+     */
122
+    public static function checkLoggedIn() {
123
+        \OC_Util::checkLoggedIn();
124
+    }
125 125
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 	 * @deprecated 8.1.0 use method search() of \OCP\IUserManager - \OC::$server->getUserManager()
67 67
 	 * @since 5.0.0
68 68
 	 */
69
-	public static function getUsers( $search = '', $limit = null, $offset = null ) {
70
-		return \OC_User::getUsers( $search, $limit, $offset );
69
+	public static function getUsers($search = '', $limit = null, $offset = null) {
70
+		return \OC_User::getUsers($search, $limit, $offset);
71 71
 	}
72 72
 
73 73
 	/**
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
 	 *                   get() of \OCP\IUserManager - \OC::$server->getUserManager()
79 79
 	 * @since 5.0.0
80 80
 	 */
81
-	public static function getDisplayName( $user = null ) {
82
-		return \OC_User::getDisplayName( $user );
81
+	public static function getDisplayName($user = null) {
82
+		return \OC_User::getDisplayName($user);
83 83
 	}
84 84
 
85 85
 	/**
Please login to merge, or discard this patch.