Commit 9e8f5d57 authored by Taylor Otwell's avatar Taylor Otwell

tweaking config class comments.

parent ee307657
...@@ -17,9 +17,9 @@ class Config { ...@@ -17,9 +17,9 @@ class Config {
*/ */
public static function get($key) public static function get($key)
{ {
// ----------------------------------------------------- // -----------------------------------------------------
// We are are just pulling in a file, skip loading a key // If a dot is not present, we will just return the
// entire configuration array.
// ----------------------------------------------------- // -----------------------------------------------------
if(strpos($key, '.') == 0) if(strpos($key, '.') == 0)
{ {
...@@ -29,7 +29,6 @@ class Config { ...@@ -29,7 +29,6 @@ class Config {
} }
list($file, $key) = static::parse($key); list($file, $key) = static::parse($key);
static::load($file); static::load($file);
if (array_key_exists($key, static::$items[$file])) if (array_key_exists($key, static::$items[$file]))
...@@ -50,7 +49,6 @@ class Config { ...@@ -50,7 +49,6 @@ class Config {
public static function set($key, $value) public static function set($key, $value)
{ {
list($file, $key) = static::parse($key); list($file, $key) = static::parse($key);
static::load($file); static::load($file);
static::$items[$file][$key] = $value; static::$items[$file][$key] = $value;
......
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