@@ -17,11 +17,11 @@ discard block |
||
| 17 | 17 | public function ifExists($key) |
| 18 | 18 | { |
| 19 | 19 | $verifParams = verifTypeData([['type' => 'string', 'data' => $key]]); |
| 20 | - if(!$verifParams) { |
|
| 20 | + if (!$verifParams) { |
|
| 21 | 21 | throw new \Exception('The $key parameters must be a string'); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - if($this->get($key) === false) { |
|
| 24 | + if ($this->get($key) === false) { |
|
| 25 | 25 | return false; |
| 26 | 26 | } |
| 27 | 27 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | ['type' => 'int', 'data' => $expire] |
| 46 | 46 | ]); |
| 47 | 47 | |
| 48 | - if(!$verifParams) { |
|
| 48 | + if (!$verifParams) { |
|
| 49 | 49 | throw new \Exception( |
| 50 | 50 | 'Once of parameters $key or $expire not have a correct type.' |
| 51 | 51 | ); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | //On la "modifie" en remettant la même valeur mais en changeant le temps |
| 57 | 57 | //avant expiration si une valeur a été retournée |
| 58 | - if($value !== false && $this->replace($key, $value, 0, $expire)) { |
|
| 58 | + if ($value !== false && $this->replace($key, $value, 0, $expire)) { |
|
| 59 | 59 | return true; |
| 60 | 60 | } |
| 61 | 61 | |