summaryrefslogtreecommitdiffstats
path: root/lib/config.php
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 /lib/config.php
parent785aa751bb5f9a4bcdd677b96207550482e17d3c (diff)
downloadnextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.tar.gz
nextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.zip
adding space between) and {
Diffstat (limited to 'lib/config.php')
-rw-r--r--lib/config.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/config.php b/lib/config.php
index 390469beacf..032d401264c 100644
--- a/lib/config.php
+++ b/lib/config.php
@@ -52,7 +52,7 @@ class OC_Config{
* This function returns all keys saved in config.php. Please note that it
* does not return the values.
*/
- public static function getKeys(){
+ public static function getKeys() {
self::readData();
return array_keys( self::$cache );
@@ -67,7 +67,7 @@ class OC_Config{
* This function gets the value from config.php. If it does not exist,
* $default will be returned.
*/
- public static function getValue( $key, $default = null ){
+ public static function getValue( $key, $default = null ) {
self::readData();
if( array_key_exists( $key, self::$cache )) {
@@ -86,7 +86,7 @@ class OC_Config{
* This function sets the value and writes the config.php. If the file can
* not be written, false will be returned.
*/
- public static function setValue( $key, $value ){
+ public static function setValue( $key, $value ) {
self::readData();
// Add change
@@ -105,7 +105,7 @@ class OC_Config{
* This function removes a key from the config.php. If owncloud has no
* write access to config.php, the function will return false.
*/
- public static function deleteKey( $key ){
+ public static function deleteKey( $key ) {
self::readData();
if( array_key_exists( $key, self::$cache )) {
@@ -125,7 +125,7 @@ class OC_Config{
*
* Reads the config file and saves it to the cache
*/
- private static function readData(){
+ private static function readData() {
if( self::$init ) {
return true;
}
@@ -153,7 +153,7 @@ class OC_Config{
* Saves the config to the config file.
*
*/
- public static function writeData(){
+ public static function writeData() {
// Create a php file ...
$content = "<?php\n\$CONFIG = ";
$content .= var_export(self::$cache, true);