Skip to content

Commit

Permalink
Remove stepKey property of the CacheStore has method
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 committed Jun 26, 2019
1 parent 15888ed commit c16543d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/Contracts/CacheStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ public function put(string $key, array $value, $lastIndex = null);
/**
* Checks if an a step data.
*
* @param string $stepKey
* @param string $key
* @return bool
*/
public function has(string $stepKey, string $key = '');
public function has(string $key);

/**
* Clear the store data.
Expand Down
5 changes: 2 additions & 3 deletions src/DatabaseStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,12 @@ public function put(string $key, array $value, $lastIndex = null)
/**
* Checks if an a step data.
*
* @param string $stepKey
* @param string $key
* @return bool
*/
public function has(string $stepKey, string $key = '')
public function has(string $key)
{
$data = $this->get($stepKey, $key);
$data = $this->get($key);
return isset($data);
}

Expand Down
5 changes: 2 additions & 3 deletions src/SessionStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,12 @@ public function put(string $key, array $value, $lastIndex = null)
/**
* Checks if an a step data.
*
* @param string $stepKey
* @param string $key
* @return bool
*/
public function has(string $stepKey, string $key = '')
public function has(string $key)
{
$data = $this->get($stepKey, $key);
$data = $this->get($key);
return isset($data);
}

Expand Down

0 comments on commit c16543d

Please sign in to comment.