Display "Printable version" links in toolbox on special pages
[lhc/web/wiklou.git] / includes / api / ApiQueryAllUsers.php
index fe19790..1948a51 100644 (file)
@@ -37,7 +37,7 @@ class ApiQueryAllUsers extends ApiQueryBase {
        /**
         * This function converts the user name to a canonical form
         * which is stored in the database.
-        * @param String $name
+        * @param string $name
         * @return String
         */
        private function getCanonicalUserName( $name ) {
@@ -83,12 +83,12 @@ class ApiQueryAllUsers extends ApiQueryBase {
 
                if ( !is_null( $params['rights'] ) && count( $params['rights'] ) ) {
                        $groups = array();
-                       foreach( $params['rights'] as $r ) {
+                       foreach ( $params['rights'] as $r ) {
                                $groups = array_merge( $groups, User::getGroupsWithPermission( $r ) );
                        }
 
                        // no group with the given right(s) exists, no need for a query
-                       if( !count( $groups ) ) {
+                       if ( !count( $groups ) ) {
                                $this->getResult()->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), '' );
                                return;
                        }