mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
Config: Fix coding style
This commit is contained in:
parent
599cb620d8
commit
87adbacb3b
@ -322,7 +322,7 @@ class Config implements Countable, Iterator
|
|||||||
*/
|
*/
|
||||||
public static function app($configname = 'config', $fromDisk = false)
|
public static function app($configname = 'config', $fromDisk = false)
|
||||||
{
|
{
|
||||||
if (!isset(self::$app[$configname]) || $fromDisk) {
|
if (! isset(self::$app[$configname]) || $fromDisk) {
|
||||||
self::$app[$configname] = static::fromIni(static::resolvePath($configname . '.ini'));
|
self::$app[$configname] = static::fromIni(static::resolvePath($configname . '.ini'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,12 +341,12 @@ class Config implements Countable, Iterator
|
|||||||
*/
|
*/
|
||||||
public static function module($modulename, $configname = 'config', $fromDisk = false)
|
public static function module($modulename, $configname = 'config', $fromDisk = false)
|
||||||
{
|
{
|
||||||
if (!isset(self::$modules[$modulename])) {
|
if (! isset(self::$modules[$modulename])) {
|
||||||
self::$modules[$modulename] = array();
|
self::$modules[$modulename] = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$moduleConfigs = self::$modules[$modulename];
|
$moduleConfigs = self::$modules[$modulename];
|
||||||
if (!isset($moduleConfigs[$configname]) || $fromDisk) {
|
if (! isset($moduleConfigs[$configname]) || $fromDisk) {
|
||||||
$moduleConfigs[$configname] = static::fromIni(
|
$moduleConfigs[$configname] = static::fromIni(
|
||||||
static::resolvePath('modules/' . $modulename . '/' . $configname . '.ini')
|
static::resolvePath('modules/' . $modulename . '/' . $configname . '.ini')
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user