summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/ajax/appconfig.php2
-rw-r--r--core/minimizer.php4
-rw-r--r--core/templates/403.php2
-rw-r--r--core/templates/404.php2
-rw-r--r--core/templates/exception.php2
-rw-r--r--core/templates/layout.guest.php2
-rw-r--r--core/templates/layout.user.php6
7 files changed, 10 insertions, 10 deletions
diff --git a/core/ajax/appconfig.php b/core/ajax/appconfig.php
index 3ad9e2326c3..1b43afa74fb 100644
--- a/core/ajax/appconfig.php
+++ b/core/ajax/appconfig.php
@@ -11,7 +11,7 @@ OCP\JSON::callCheck();
$action=isset($_POST['action'])?$_POST['action']:$_GET['action'];
$result=false;
-switch($action){
+switch($action) {
case 'getValue':
$result=OC_Appconfig::getValue($_GET['app'], $_GET['key'], $_GET['defaultValue']);
break;
diff --git a/core/minimizer.php b/core/minimizer.php
index 0abbca75027..4da9037c413 100644
--- a/core/minimizer.php
+++ b/core/minimizer.php
@@ -3,12 +3,12 @@ session_write_close();
OC_App::loadApps();
-if ($service == 'core.css'){
+if ($service == 'core.css') {
$minimizer = new OC_Minimizer_CSS();
$files = OC_TemplateLayout::findStylesheetFiles(OC_Util::$core_styles);
$minimizer->output($files, $service);
}
-else if ($service == 'core.js'){
+else if ($service == 'core.js') {
$minimizer = new OC_Minimizer_JS();
$files = OC_TemplateLayout::findJavascriptFiles(OC_Util::$core_scripts);
$minimizer->output($files, $service);
diff --git a/core/templates/403.php b/core/templates/403.php
index cdfef08ac76..fbf0e64fdb6 100644
--- a/core/templates/403.php
+++ b/core/templates/403.php
@@ -1,5 +1,5 @@
<?php
-if(!isset($_)){//also provide standalone error page
+if(!isset($_)) {//also provide standalone error page
require_once '../../lib/base.php';
$tmpl = new OC_Template( '', '403', 'guest' );
diff --git a/core/templates/404.php b/core/templates/404.php
index 13a81010343..c111fd70fa9 100644
--- a/core/templates/404.php
+++ b/core/templates/404.php
@@ -1,5 +1,5 @@
<?php
-if(!isset($_)){//also provide standalone error page
+if(!isset($_)) {//also provide standalone error page
require_once '../../lib/base.php';
$tmpl = new OC_Template( '', '404', 'guest' );
diff --git a/core/templates/exception.php b/core/templates/exception.php
index 7f58ce252cf..4b951fca51b 100644
--- a/core/templates/exception.php
+++ b/core/templates/exception.php
@@ -4,7 +4,7 @@
<summary class="error">We're sorry, but something went terribly wrong.<br></summary>
<p class="exception">
<?php
- if($_['showsysinfo'] == true){
+ if($_['showsysinfo'] == true) {
echo 'If you would like to support ownCloud\'s developers and report this error in our <a href="http://bugs.owncloud.org">Bugtracker</a>, please copy the following informations into the description. <br><br><textarea readonly>';
echo 'Message: ' . $_['message'] . "\n";
echo 'Error Code: ' . $_['code'] . "\n";
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 4cdbfd16e52..9a5a056eb2b 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -24,7 +24,7 @@
<?php foreach($_['headers'] as $header): ?>
<?php
echo '<'.$header['tag'].' ';
- foreach($header['attributes'] as $name=>$value){
+ foreach($header['attributes'] as $name=>$value) {
echo "$name='$value' ";
};
echo '/>';
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index a2560b755fa..89b8027fc0f 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -24,7 +24,7 @@
<?php foreach($_['headers'] as $header): ?>
<?php
echo '<'.$header['tag'].' ';
- foreach($header['attributes'] as $name=>$value){
+ foreach($header['attributes'] as $name=>$value) {
echo "$name='$value' ";
};
echo '/>';
@@ -33,7 +33,7 @@
<script type="text/javascript">
requesttoken = '<?php echo $_['requesttoken']; ?>';
OC.EventSource.requesttoken=requesttoken;
- $(document).bind('ajaxSend', function(elm, xhr, s){
+ $(document).bind('ajaxSend', function(elm, xhr, s) {
xhr.setRequestHeader('requesttoken', requesttoken);
});
</script>
@@ -44,7 +44,7 @@
<a href="<?php echo link_to('', 'index.php'); ?>" title="" id="owncloud"><img class="svg" src="<?php echo image_path('', 'logo-wide.svg'); ?>" alt="ownCloud" /></a>
<a class="header-right header-action" id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true"><img class="svg" alt="<?php echo $l->t('Log out');?>" title="<?php echo $l->t('Log out');?>" src="<?php echo image_path('', 'actions/logout.svg'); ?>" /></a>
<form class="searchbox header-right" action="#" method="post">
- <input id="searchbox" class="svg" type="search" name="query" value="<?php if(isset($_POST['query'])){echo OC_Util::sanitizeHTML($_POST['query']);};?>" autocomplete="off" x-webkit-speech />
+ <input id="searchbox" class="svg" type="search" name="query" value="<?php if(isset($_POST['query'])) {echo OC_Util::sanitizeHTML($_POST['query']);};?>" autocomplete="off" x-webkit-speech />
</form>
</div></header>