chg: add spaces before opening curly brackets

pull/1461/head
Andreas Ziegler 2016-08-22 02:57:56 +02:00
parent 30fb4e2b2e
commit 1c641b809e
2 changed files with 4 additions and 4 deletions

View File

@ -930,7 +930,7 @@ class User extends AppModel {
);
$orgs = $this->find('all', $params);
$usersPerOrg = [];
foreach ($orgs as $key => $value){
foreach ($orgs as $key => $value) {
$usersPerOrg[$value['User']['org_id']] = $value[0]['num_members'];
}
return $usersPerOrg;

View File

@ -58,7 +58,7 @@ class ApacheShibbAuthenticate extends BaseAuthenticate {
{
//If the url contains sso=disable we return false so the main misp authentication form is used to log in
if(array_key_exists('sso', $request->query) && $request->query['sso'] == 'disable' || $_SESSION["sso_disable"] === True){
if(array_key_exists('sso', $request->query) && $request->query['sso'] == 'disable' || $_SESSION["sso_disable"] === True) {
$_SESSION["sso_disable"]=True;
return false;
}
@ -126,11 +126,11 @@ class ApacheShibbAuthenticate extends BaseAuthenticate {
);
}
private function randPasswordGen($len){
private function randPasswordGen($len) {
$result = "";
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\$_?!-0123456789";
$charArray = str_split($chars);
for($i = 0; $i < $len; $i++){
for($i = 0; $i < $len; $i++) {
$randItem = array_rand($charArray);
$result .= "".$charArray[$randItem];
}