@@ -23,7 +23,7 @@ |
||
23 | 23 | * @param mixed $value The data to store in state storage |
24 | 24 | * @param int $expire The expiration (in seconds) of the data |
25 | 25 | */ |
26 | - public function setValue($key, $value, $expire=0); |
|
26 | + public function setValue($key, $value, $expire = 0); |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Remove a value from the state storage |
@@ -51,8 +51,8 @@ |
||
51 | 51 | public function setValue($key, $value, $expire=0) |
52 | 52 | { |
53 | 53 | $envelope = array("expire"=>$expire, |
54 | - "createdAt"=>time(), |
|
55 | - "value"=>$value); |
|
54 | + "createdAt"=>time(), |
|
55 | + "value"=>$value); |
|
56 | 56 | $filename = $this->getFilenameByKey($key); |
57 | 57 | |
58 | 58 | if (!file_put_contents($filename, serialize($envelope))) { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * (non-PHPdoc) |
49 | 49 | * @see library/tiqr/Tiqr/StateStorage/Tiqr_StateStorage_Abstract::setValue() |
50 | 50 | */ |
51 | - public function setValue($key, $value, $expire=0) |
|
51 | + public function setValue($key, $value, $expire = 0) |
|
52 | 52 | { |
53 | 53 | $envelope = array("expire"=>$expire, |
54 | 54 | "createdAt"=>time(), |
@@ -99,8 +99,8 @@ discard block |
||
99 | 99 | |
100 | 100 | private function getPath(): string |
101 | 101 | { |
102 | - if (substr($this->path, -1)!=="/") { |
|
103 | - return $this->path . "/"; |
|
102 | + if (substr($this->path, -1) !== "/") { |
|
103 | + return $this->path."/"; |
|
104 | 104 | } |
105 | 105 | return $this->path; |
106 | 106 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * a state storage instance of a certain type. |
61 | 61 | * @param array $options An array of options for the state storage |
62 | 62 | */ |
63 | - public function __construct($options=array(), LoggerInterface $logger) |
|
63 | + public function __construct($options = array(), LoggerInterface $logger) |
|
64 | 64 | { |
65 | 65 | $this->logger = $logger; |
66 | 66 | $this->_options = $options; |