mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 22:09:23 +02:00
Applied fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
3663603b80
commit
fe1f144ec3
@@ -2,15 +2,11 @@
|
||||
|
||||
namespace DesignPatterns\More\Repository;
|
||||
|
||||
use DesignPatterns\More\Repository\Storage;
|
||||
|
||||
/**
|
||||
* Class MemoryStorage
|
||||
* @package DesignPatterns\Repository
|
||||
* Class MemoryStorage.
|
||||
*/
|
||||
class MemoryStorage implements Storage
|
||||
{
|
||||
|
||||
private $data;
|
||||
private $lastId;
|
||||
|
||||
@@ -26,6 +22,7 @@ class MemoryStorage implements Storage
|
||||
public function persist($data)
|
||||
{
|
||||
$this->data[++$this->lastId] = $data;
|
||||
|
||||
return $this->lastId;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user