summaryrefslogtreecommitdiffstats
path: root/config/config.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-21 18:19:23 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-21 18:19:23 +0200
commit66c73a96ac2dda076bcfe0dc0a1ca2a7e169149d (patch)
treedc0318fa459e4f313217ee38e4bc63524513d721 /config/config.php
parentf5e64d35c05b14016eb4fffff7199386a97a9b43 (diff)
first try to set indention limit at 80 characters in php
Diffstat (limited to 'config/config.php')
-rw-r--r--config/config.php37
1 files changed, 24 insertions, 13 deletions
diff --git a/config/config.php b/config/config.php
index 25e8a2294..44650c3ac 100644
--- a/config/config.php
+++ b/config/config.php
@@ -156,8 +156,10 @@ class Config {
$configValues = parse_ini_string($content);
if($configValues === false || count($configValues) === 0) {
- $this->logger->warning('Configuration invalid. Ignoring values.',
- $this->loggerParams);
+ $this->logger->warning(
+ 'Configuration invalid. Ignoring values.',
+ $this->loggerParams
+ );
} else {
foreach($configValues as $key => $value) {
@@ -166,8 +168,11 @@ class Config {
settype($value, $type);
$this->$key = $value;
} else {
- $this->logger->warning('Configuration value "' . $key .
- '" does not exist. Ignored value.' , $this->loggerParams);
+ $this->logger->warning(
+ 'Configuration value "' . $key .
+ '" does not exist. Ignored value.' ,
+ $this->loggerParams
+ );
}
}
@@ -178,15 +183,21 @@ class Config {
public function write($configPath) {
$ini =
- "autoPurgeMinimumInterval = " . $this->autoPurgeMinimumInterval . "\n" .
- "autoPurgeCount = " . $this->autoPurgeCount . "\n" .
- "simplePieCacheDuration = " . $this->simplePieCacheDuration . "\n" .
- "feedFetcherTimeout = " . $this->feedFetcherTimeout . "\n" .
- "useCronUpdates = " . var_export($this->useCronUpdates, true) . "\n" .
- "proxyHost = " . $this->proxyHost . "\n" .
- "proxyPort = " . $this->proxyPort . "\n" .
- "proxyUser = " . $this->proxyUser . "\n" .
- "proxyPassword = " . $this->proxyPassword;
+ 'autoPurgeMinimumInterval = ' .
+ $this->autoPurgeMinimumInterval . "\n" .
+ 'autoPurgeCount = ' .
+ $this->autoPurgeCount . "\n" .
+ 'simplePieCacheDuration = ' .
+ $this->simplePieCacheDuration . "\n" .
+ 'feedFetcherTimeout = ' .
+ $this->feedFetcherTimeout . "\n" .
+ 'useCronUpdates = ' .
+ var_export($this->useCronUpdates, true) . "\n" .
+
+ 'proxyHost = ' . $this->proxyHost . "\n" .
+ 'proxyPort = ' . $this->proxyPort . "\n" .
+ 'proxyUser = ' . $this->proxyUser . "\n" .
+ 'proxyPassword = ' . $this->proxyPassword;
;
$this->fileSystem->file_put_contents($configPath, $ini);