Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
pce committed May 24, 2012
1 parent baf1f62 commit 692a8c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Config/Lite.php
Expand Up @@ -336,9 +336,9 @@ public function getString($sec, $key, $default = null)
*/
public function get($sec = null, $key = null, $default = null)
{
// handle get without parameters, because we can
if ((null === $sec) && (null === $key) && (null === $default))
return $this; // or $this->sections;
// handle get without parameters, because we can
if ((null === $sec) && (null === $key) && (null === $default))
return $this; // arrayaccess or $this->sections;

if ((null !== $sec) && array_key_exists($sec, $this->sections)
&& isset($this->sections[$sec][$key])
Expand Down
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -7,7 +7,7 @@ Description
a simple, lightweight and fast class for ini style configuration files,
with the native PHP function `parse_ini_file' under the hood.

Config_Lite is inspired by Pythons ConfigParser. +
Config_Lite is inspired by Pythons ConfigParser.


A "Config_Lite" file consists of global key/value pair (KVP) entries and optional sections,
Expand Down Expand Up @@ -230,6 +230,4 @@ Create an Issue with a Link to your forked branch.

https://github.com/pce/config_lite

http://pear.php.net/pepr/pepr-proposal-show.php?id=645


http://pear.php.net/package/Config_Lite

0 comments on commit 692a8c6

Please sign in to comment.