Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,22 @@ public function __construct($name)

parent::__construct(Config::get($name, []));
}

/**
* Return self to allow chain of set and save.
*
* @param array|string $key
* @param null $value
*

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace found at end of line

* @return $this
*/
public function set($key, $value = null)
{
parent::set($key, $value);

return $this;
}

public function save($from = null, $to = null, $validate = true)
{
if ($from === null) {
Expand Down