Skip to content
Snippets Groups Projects
Commit 73e2bf7b authored by Thomas Müller's avatar Thomas Müller
Browse files

fixing PHPDoc

parent ab2c7e06
Branches
No related tags found
No related merge requests found
...@@ -39,9 +39,9 @@ class MetaData { ...@@ -39,9 +39,9 @@ class MetaData {
protected $sorting = false; protected $sorting = false;
/** /**
* @param string the uid of the current user * @param string $user the uid of the current user
* @param bool whether the current users is an admin * @param bool $isAdmin whether the current users is an admin
* @param \OC\Group\Manager * @param \OC\Group\Manager $groupManager
*/ */
public function __construct( public function __construct(
$user, $user,
...@@ -105,9 +105,9 @@ class MetaData { ...@@ -105,9 +105,9 @@ class MetaData {
} }
/** /**
* @brief sets the sort mode, currently 0 (none) and 1 (user entries, * sets the sort mode, currently 0 (none) and 1 (user entries,
* descending) are supported * descending) are supported
* @param int the sortMode (SORT_NONE, SORT_USERCOUNT) * @param int $sortMode (SORT_NONE, SORT_USERCOUNT)
*/ */
public function setSorting($sortMode) { public function setSorting($sortMode) {
if($sortMode >= 0 && $sortMode <= 1) { if($sortMode >= 0 && $sortMode <= 1) {
...@@ -118,11 +118,11 @@ class MetaData { ...@@ -118,11 +118,11 @@ class MetaData {
} }
/** /**
* @brief adds an group entry to the resulting array * adds an group entry to the resulting array
* @param array the resulting array, by reference * @param array $entries the resulting array, by reference
* @param array the sort key array, by reference * @param array $sortKeys the sort key array, by reference
* @param array the sort key index, by reference * @param int $sortIndex the sort key index, by reference
* @param array the group's meta data as returned by generateGroupMetaData() * @param array $data the group's meta data as returned by generateGroupMetaData()
* @return null * @return null
*/ */
private function addEntry(&$entries, &$sortKeys, &$sortIndex, $data) { private function addEntry(&$entries, &$sortKeys, &$sortIndex, $data) {
...@@ -134,7 +134,7 @@ class MetaData { ...@@ -134,7 +134,7 @@ class MetaData {
} }
/** /**
* @brief creates an array containing the group meta data * creates an array containing the group meta data
* @param \OC\Group\Group $group * @param \OC\Group\Group $group
* @param string $userSearch * @param string $userSearch
* @return array with the keys 'id', 'name' and 'usercount' * @return array with the keys 'id', 'name' and 'usercount'
...@@ -148,9 +148,9 @@ class MetaData { ...@@ -148,9 +148,9 @@ class MetaData {
} }
/** /**
* @brief sorts the result array, if applicable * sorts the result array, if applicable
* @param array the result array, by reference * @param array $entries the result array, by reference
* @param array the array containing the sort keys * @param array $sortKeys the array containing the sort keys
* @param return null * @param return null
*/ */
private function sort(&$entries, $sortKeys) { private function sort(&$entries, $sortKeys) {
...@@ -160,8 +160,8 @@ class MetaData { ...@@ -160,8 +160,8 @@ class MetaData {
} }
/** /**
* @brief returns the available groups * returns the available groups
* @param string a search string * @param string $search a search string
* @return \OC\Group\Group[] * @return \OC\Group\Group[]
*/ */
private function getGroups($search = '') { private function getGroups($search = '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment