summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-09-07 15:22:01 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-09-07 15:22:01 +0200
commit3829460ab8cbb6de65c53583a20fd04cbe7927dd (patch)
tree4dc24845a5eb31b17510a621e14c15b51f16bf7b /settings
parent785aa751bb5f9a4bcdd677b96207550482e17d3c (diff)
downloadnextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.tar.gz
nextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.zip
adding space between) and {
Diffstat (limited to 'settings')
-rwxr-xr-xsettings/admin.php4
-rw-r--r--settings/ajax/apps/ocs.php4
-rw-r--r--settings/ajax/createuser.php4
-rw-r--r--settings/ajax/togglesubadmins.php2
-rw-r--r--settings/apps.php2
-rw-r--r--settings/personal.php6
-rw-r--r--settings/settings.php2
-rw-r--r--settings/templates/admin.php8
-rw-r--r--settings/templates/personal.php2
-rw-r--r--settings/templates/settings.php2
-rw-r--r--settings/users.php6
11 files changed, 21 insertions, 21 deletions
diff --git a/settings/admin.php b/settings/admin.php
index 351c8a3fff1..a36f2190386 100755
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -20,7 +20,7 @@ $htaccessworking=OC_Util::ishtaccessworking();
$entries=OC_Log_Owncloud::getEntries(3);
$entriesremain=(count(OC_Log_Owncloud::getEntries(4)) > 3)?true:false;
-function compareEntries($a,$b){
+function compareEntries($a,$b) {
return $b->time - $a->time;
}
usort($entries, 'compareEntries');
@@ -35,7 +35,7 @@ $tmpl->assign('allowLinks', OC_Appconfig::getValue('core', 'shareapi_allow_links
$tmpl->assign('allowResharing', OC_Appconfig::getValue('core', 'shareapi_allow_resharing', 'yes'));
$tmpl->assign('sharePolicy', OC_Appconfig::getValue('core', 'shareapi_share_policy', 'global'));
$tmpl->assign('forms',array());
-foreach($forms as $form){
+foreach($forms as $form) {
$tmpl->append('forms',$form);
}
$tmpl->printPage();
diff --git a/settings/ajax/apps/ocs.php b/settings/ajax/apps/ocs.php
index 1f3e3b3dfea..71cb046fc8d 100644
--- a/settings/ajax/apps/ocs.php
+++ b/settings/ajax/apps/ocs.php
@@ -32,10 +32,10 @@ if(is_array($catagoryNames)) {
$page=0;
$filter='approved';
$externalApps=OC_OCSClient::getApplications($categories, $page, $filter);
- foreach($externalApps as $app){
+ foreach($externalApps as $app) {
// show only external apps that aren't enabled yet
$local=false;
- foreach($enabledApps as $a){
+ foreach($enabledApps as $a) {
if($a == $app['name']) {
$local=true;
}
diff --git a/settings/ajax/createuser.php b/settings/ajax/createuser.php
index 22320b870e8..bdf7e4983ac 100644
--- a/settings/ajax/createuser.php
+++ b/settings/ajax/createuser.php
@@ -21,7 +21,7 @@ if($isadmin) {
}else{
if(isset( $_POST["groups"] )) {
$groups = array();
- foreach($_POST["groups"] as $group){
+ foreach($_POST["groups"] as $group) {
if(OC_SubAdmin::isGroupAccessible(OC_User::getUser(), $group)) {
$groups[] = $group;
}
@@ -45,7 +45,7 @@ if( in_array( $username, OC_User::getUsers())) {
// Return Success story
try {
OC_User::createUser($username, $password);
- foreach( $groups as $i ){
+ foreach( $groups as $i ) {
if(!OC_Group::groupExists($i)) {
OC_Group::createGroup($i);
}
diff --git a/settings/ajax/togglesubadmins.php b/settings/ajax/togglesubadmins.php
index 82bb6ac45f3..5f7126dca34 100644
--- a/settings/ajax/togglesubadmins.php
+++ b/settings/ajax/togglesubadmins.php
@@ -10,7 +10,7 @@ $username = $_POST["username"];
$group = OC_Util::sanitizeHTML($_POST["group"]);
// Toggle group
-if(OC_SubAdmin::isSubAdminofGroup($username, $group)){
+if(OC_SubAdmin::isSubAdminofGroup($username, $group)) {
OC_SubAdmin::deleteSubAdmin($username, $group);
}else{
OC_SubAdmin::createSubAdmin($username, $group);
diff --git a/settings/apps.php b/settings/apps.php
index 686972c3343..e613814fe94 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -57,7 +57,7 @@ foreach($registeredApps as $app) {
}
}
-function app_sort($a, $b){
+function app_sort($a, $b) {
if ($a['active'] != $b['active']) {
return $b['active'] - $a['active'];
}
diff --git a/settings/personal.php b/settings/personal.php
index 2fa8cd4f5e3..4f92985c797 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -41,11 +41,11 @@ array_unshift($languageCodes, $lang);
$languageNames=include 'languageCodes.php';
$languages=array();
-foreach($languageCodes as $lang){
+foreach($languageCodes as $lang) {
$l=OC_L10N::get('settings', $lang);
if(substr($l->t('__language_name__'), 0, 1)!='_') {//first check if the language name is in the translation file
$languages[]=array('code'=>$lang,'name'=>$l->t('__language_name__'));
- }elseif(isset($languageNames[$lang])){
+ }elseif(isset($languageNames[$lang])) {
$languages[]=array('code'=>$lang,'name'=>$languageNames[$lang]);
}else{//fallback to language code
$languages[]=array('code'=>$lang,'name'=>$lang);
@@ -62,7 +62,7 @@ $tmpl->assign('languages', $languages);
$forms=OC_App::getForms('personal');
$tmpl->assign('forms', array());
-foreach($forms as $form){
+foreach($forms as $form) {
$tmpl->append('forms', $form);
}
$tmpl->printPage();
diff --git a/settings/settings.php b/settings/settings.php
index ae41fecaf9f..24099ef5742 100644
--- a/settings/settings.php
+++ b/settings/settings.php
@@ -14,7 +14,7 @@ OC_App::setActiveNavigationEntry( 'settings' );
$tmpl = new OC_Template( 'settings', 'settings', 'user');
$forms=OC_App::getForms('settings');
$tmpl->assign('forms', array());
-foreach($forms as $form){
+foreach($forms as $form) {
$tmpl->append('forms', $form);
}
$tmpl->printPage();
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 22e13571d0b..5fa9e26c9c7 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -23,17 +23,17 @@ if(!$_['htaccessworking']) {
?>
-<?php foreach($_['forms'] as $form){
+<?php foreach($_['forms'] as $form) {
echo $form;
};?>
<fieldset class="personalblock" id="backgroundjobs">
<legend><strong><?php echo $l->t('Cron');?></strong></legend>
- <input type="radio" name="mode" value="ajax" id="backgroundjobs_ajax" <?php if( $_['backgroundjobs_mode'] == "ajax" ){ echo 'checked="checked"'; } ?>>
+ <input type="radio" name="mode" value="ajax" id="backgroundjobs_ajax" <?php if( $_['backgroundjobs_mode'] == "ajax" ) { echo 'checked="checked"'; } ?>>
<label for="backgroundjobs_ajax" title="<?php echo $l->t("execute one task with each page loaded"); ?>">AJAX</label><br />
- <input type="radio" name="mode" value="webcron" id="backgroundjobs_webcron" <?php if( $_['backgroundjobs_mode'] == "webcron" ){ echo 'checked="checked"'; } ?>>
+ <input type="radio" name="mode" value="webcron" id="backgroundjobs_webcron" <?php if( $_['backgroundjobs_mode'] == "webcron" ) { echo 'checked="checked"'; } ?>>
<label for="backgroundjobs_webcron" title="<?php echo $l->t("cron.php is registered at a webcron service"); ?>">Webcron</label><br />
- <input type="radio" name="mode" value="cron" id="backgroundjobs_cron" <?php if( $_['backgroundjobs_mode'] == "cron" ){ echo 'checked="checked"'; } ?>>
+ <input type="radio" name="mode" value="cron" id="backgroundjobs_cron" <?php if( $_['backgroundjobs_mode'] == "cron" ) { echo 'checked="checked"'; } ?>>
<label for="backgroundjobs_cron" title="<?php echo $l->t("use systems cron service"); ?>">Cron</label><br />
</fieldset>
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index ee40120d724..4503f3d50b4 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -51,7 +51,7 @@
<em><?php echo $l->t('use this address to connect to your ownCloud in your file manager');?></em>
</p>
-<?php foreach($_['forms'] as $form){
+<?php foreach($_['forms'] as $form) {
echo $form;
};?>
diff --git a/settings/templates/settings.php b/settings/templates/settings.php
index 98acd541e36..12368a1cdb6 100644
--- a/settings/templates/settings.php
+++ b/settings/templates/settings.php
@@ -4,6 +4,6 @@
* See the COPYING-README file.
*/?>
-<?php foreach($_['forms'] as $form){
+<?php foreach($_['forms'] as $form) {
echo $form;
};?> \ No newline at end of file
diff --git a/settings/users.php b/settings/users.php
index f176977ade1..e76505cc78d 100644
--- a/settings/users.php
+++ b/settings/users.php
@@ -29,7 +29,7 @@ if($isadmin) {
$subadmins = false;
}
-foreach($accessibleusers as $i){
+foreach($accessibleusers as $i) {
$users[] = array(
"name" => $i,
"groups" => join( ", ", /*array_intersect(*/OC_Group::getUserGroups($i)/*, OC_SubAdmin::getSubAdminsGroups(OC_User::getUser()))*/),
@@ -37,13 +37,13 @@ foreach($accessibleusers as $i){
'subadmin'=>implode(', ', OC_SubAdmin::getSubAdminsGroups($i)));
}
-foreach( $accessiblegroups as $i ){
+foreach( $accessiblegroups as $i ) {
// Do some more work here soon
$groups[] = array( "name" => $i );
}
$quotaPreset=OC_Appconfig::getValue('files', 'quota_preset', 'default,none,1 GB, 5 GB, 10 GB');
$quotaPreset=explode(',',$quotaPreset);
-foreach($quotaPreset as &$preset){
+foreach($quotaPreset as &$preset) {
$preset=trim($preset);
}