Commit 64eb1643 authored by sun's avatar sun Committed by gdd

Fixed coding style.

parent 51cd608b
......@@ -5,4 +5,4 @@
/**
* @todo
*/
class ConfigException extends Exception {}
\ No newline at end of file
class ConfigException extends Exception {}
......@@ -7,4 +7,4 @@
/**
* @todo
*/
class ConfigFileStorageException extends ConfigException {}
\ No newline at end of file
class ConfigFileStorageException extends ConfigException {}
......@@ -7,4 +7,4 @@
/**
* @todo
*/
class ConfigFileStorageReadException extends ConfigFileStorageException {}
\ No newline at end of file
class ConfigFileStorageReadException extends ConfigFileStorageException {}
......@@ -7,4 +7,4 @@
/**
* @todo
*/
class ConfigFileStorageSignatureException extends ConfigFileStorageException {}
\ No newline at end of file
class ConfigFileStorageSignatureException extends ConfigFileStorageException {}
......@@ -58,23 +58,21 @@ public function isOverridden($key) {
* Gets data from this config object.
*
* @param $key
* A string that maps to a key within the configuration data.
* A string that maps to a key within the configuration data.
* For instance in the following XML:
*
* @code
* <foo>
* <bar>baz</bar>
* </foo>
*
* A key of 'foo.bar' would return the string 'baz'. However
* a key of 'foo' would return array('bar' => 'baz').
* @endcode
* A key of 'foo.bar' would return the string 'baz'. However, a key of 'foo'
* would return array('bar' => 'baz').
* If no key is specified, then the entire data array is returned.
*
* If no key is specified, then the entire data array is returned.
*
* Note that unlike variable_get(), the config system does not maintain
* type information, and everything saved into it gets cast to a string.
* In most cases this is not an issue, however it can cause tricky problems
* with booleans, which get cast to "1" (TRUE) or "" (FALSE). In particular,
* code relying on === or !== will no longer function properly.
* The configuration system does not retain data types. Every saved value is
* casted to a string. In most cases this is not an issue; however, it can
* cause issues with Booleans, which are casted to "1" (TRUE) or "0" (FALSE).
* In particular, code relying on === or !== will no longer function properly.
*
* @see http://php.net/manual/en/language.operators.comparison.php.
*
......@@ -94,7 +92,7 @@ public function get($key = '') {
$key_exists = NULL;
$value = drupal_array_get_nested_value($this->data, $parts, $key_exists);
return $key_exists ? $value : NULL;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment